apparmor: Fix uninitialized symbol 'array_size' in policy_unpack_test.c
authorJohn Johansen <john.johansen@canonical.com>
Tue, 1 Nov 2022 12:40:40 +0000 (05:40 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 2 Nov 2022 04:23:05 +0000 (21:23 -0700)
commit4295c60bbe9e63e35d330546eeaa1d2b62dae303
tree332521f205bb53b34033b303424e645613bc30f0
parentf6c64dc32ab91b4c37fa2a255d2270f4ff0b95ba
apparmor: Fix uninitialized symbol 'array_size' in policy_unpack_test.c

Make sure array_size is initialized in the kunit test to get rid of
compiler warnings. This will also make sure the following tests fail
consistently if the first test fails.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/policy_unpack_test.c