Commit ee21a175 authored by John Johansen's avatar John Johansen
Browse files

apparmor: fix uninitialize table variable in error in unpack_trans_table



The error path has one case where *table is uninitialized, initialize
it.

Fixes: a0792e2c ("apparmor: make transition table unpack generic so it can be reused")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 5515a8e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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")) {