Re: [PATCH] selftests/lsm: Fix memory leak in attr_lsm_count
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild |
|---|---|
| Message-ID | <[email protected]> |
:::::: :::::: Manual check reason: "low confidence bisect report" :::::: BCC: [email protected] CC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: Wang Yan <[email protected]> TO: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: [email protected] CC: Wang Yan <[email protected]> Hi Wang, kernel test robot noticed the following build warnings: [auto build test WARNING on shuah-kselftest/next] [also build test WARNING on shuah-kselftest/fixes pcmoore-selinux/next linus/master v7.2-rc7] [cannot apply to next-20260813] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Wang-Yan/selftests-lsm-Fix-memory-leak-in-attr_lsm_count/20260807-191039 base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next patch link: https://lore.kernel.org/r/20260703025247.940055-1-wangyan01%40kylinos.cn patch subject: [PATCH] selftests/lsm: Fix memory leak in attr_lsm_count :::::: branch date: 7 days ago :::::: commit date: 7 days ago config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260814/[email protected]/config) compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/ All warnings (new ones prefixed by >>): common.c: In function 'attr_lsm_count': >> common.c:78:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 78 | if (read_sysfs_lsms(names, sysconf(_SC_PAGESIZE))) | ^~ common.c:80:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 80 | return 0; | ^~~~~~ -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki