mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
apparmor: fix uninitialize table variable in error in unpack_trans_table
The error path has one case where *table is uninitialized, initialize
it.
Fixes: a0792e2ced
("apparmor: make transition table unpack generic so it can be reused")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
5515a8e30e
commit
ee21a175ec
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ static struct aa_dfa *unpack_dfa(struct aa_ext *e, int flags)
|
||||||
static bool unpack_trans_table(struct aa_ext *e, struct aa_str_table *strs)
|
static bool unpack_trans_table(struct aa_ext *e, struct aa_str_table *strs)
|
||||||
{
|
{
|
||||||
void *saved_pos = e->pos;
|
void *saved_pos = e->pos;
|
||||||
char **table;
|
char **table = NULL;
|
||||||
|
|
||||||
/* exec table is optional */
|
/* exec table is optional */
|
||||||
if (unpack_nameX(e, AA_STRUCT, "xtable")) {
|
if (unpack_nameX(e, AA_STRUCT, "xtable")) {
|
||||||
|
|
Loading…
Reference in a new issue