From: kernel test robot <lkp@intel.com>
To: Swarna Prabhu <sw.prabhu6@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Damien Le Moal <dlemoal@kernel.org>,
Pankaj Raghav <p.raghav@samsung.com>
Subject: [linux-next:master 1761/14297] drivers/scsi/sd.c:4493:2-17: WARNING: NULL check before some freeing functions is not needed.
Date: Tue, 21 Apr 2026 22:46:49 +0800 [thread overview]
Message-ID: <202604212233.FA0funYe-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 97e797263a5e963da3d1e66e743fd518567dfe37
commit: 7179e626b76eb42f2529c6f6dd6ba88ea2445372 [1761/14297] scsi: sd: Enable sector size > PAGE_SIZE in SCSI sd driver
config: powerpc-randconfig-r051-20260421 (https://download.01.org/0day-ci/archive/20260421/202604212233.FA0funYe-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 8.5.0
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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604212233.FA0funYe-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/scsi/sd.c:4493:2-17: WARNING: NULL check before some freeing functions is not needed.
vim +4493 drivers/scsi/sd.c
4478
4479 /**
4480 * exit_sd - exit point for this driver (when it is a module).
4481 *
4482 * Note: this function unregisters this driver from the scsi mid-level.
4483 **/
4484 static void __exit exit_sd(void)
4485 {
4486 int i;
4487
4488 SCSI_LOG_HLQUEUE(3, printk("exit_sd: exiting sd driver\n"));
4489
4490 scsi_unregister_driver(&sd_template);
4491 mempool_destroy(sd_page_pool);
4492 if (sd_large_page_pool)
> 4493 mempool_destroy(sd_large_page_pool);
4494
4495 class_unregister(&sd_disk_class);
4496
4497 for (i = 0; i < SD_MAJORS; i++)
4498 unregister_blkdev(sd_major(i), "sd");
4499 }
4500
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-21 14:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604212233.FA0funYe-lkp@intel.com \
--to=lkp@intel.com \
--cc=dlemoal@kernel.org \
--cc=martin.petersen@oracle.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=p.raghav@samsung.com \
--cc=sw.prabhu6@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.