From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android15-6.6 2/2] fs/nfs/read.c:51:2-7: WARNING: NULL check before some freeing functions is not needed.
Date: Sat, 29 Mar 2025 05:23:03 +0800 [thread overview]
Message-ID: <202503290544.oB6bJzHH-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android15-6.6
head: b62ea68f41a901d5f07f48bd6f1d3a117d801411
commit: 303a78052091c81e9003915c521fdca1c7e117af [2/2] NFSv4.2: Rework scratch handling for READ_PLUS (again)
config: x86_64-randconfig-103-20250326 (https://download.01.org/0day-ci/archive/20250329/202503290544.oB6bJzHH-lkp@intel.com/config)
compiler: clang version 20.1.1 (https://github.com/llvm/llvm-project 424c2d9b7e4de40d0804dd374721e6411c27d1d1)
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/202503290544.oB6bJzHH-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> fs/nfs/read.c:51:2-7: WARNING: NULL check before some freeing functions is not needed.
vim +51 fs/nfs/read.c
47
48 static void nfs_readhdr_free(struct nfs_pgio_header *rhdr)
49 {
50 if (rhdr->res.scratch != NULL)
> 51 kfree(rhdr->res.scratch);
52 kmem_cache_free(nfs_rdata_cachep, rhdr);
53 }
54
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-03-28 21:24 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=202503290544.oB6bJzHH-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.