[driver-core:debugfs_lookup_fix 1/1] drivers/mtd/spi-nor/debugfs.c:254:2-16: WARNING: NULL check before some freeing functions is not needed.

kernel test robot <[email protected]>
Newsgroups org.linuxdriverproject.driverdev-devel,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_lookup_fix
head:   416ca04cc251b11c991d466dae592f7308f52079
commit: 416ca04cc251b11c991d466dae592f7308f52079 [1/1] mtd: spi-nor: fix memory leak when using debugfs_lookup()
config: sh-randconfig-c033-20230305 (https://download.01.org/0day-ci/archive/20230305/[email protected]/config)
compiler: sh4-linux-gcc (GCC) 12.1.0

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

cocci warnings: (new ones prefixed by >>)
>> drivers/mtd/spi-nor/debugfs.c:254:2-16: WARNING: NULL check before some freeing functions is not needed.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.