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
|
@ -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)
|
||||
{
|
||||
void *saved_pos = e->pos;
|
||||
char **table;
|
||||
char **table = NULL;
|
||||
|
||||
/* exec table is optional */
|
||||
if (unpack_nameX(e, AA_STRUCT, "xtable")) {
|
||||
|
|
Loading…
Reference in New Issue