From: kbuild test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [dhowells-fs:afs-operation 20/27] fs/afs/vl_alias.c:318:8-17: ERROR: reference preceded by free on line 316
Date: Sat, 30 May 2020 04:35:16 +0800 [thread overview]
Message-ID: <202005300413.Oa2Qadvi%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3118 bytes --]
CC: kbuild-all(a)lists.01.org
TO: "David, Howells," <dhowells@redhat.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git afs-operation
head: 028362346b339f27505b0eb27e7c7f68cd0fc8b9
commit: 298b5d29c83596b495250fdcc97d16183f67b895 [20/27] afs: Detect cell aliases 3 - YFS Cells with a canonical cell name op
:::::: branch date: 6 hours ago
:::::: commit date: 6 hours ago
config: nds32-randconfig-c021-20200529 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
coccinelle warnings: (new ones prefixed by >>)
>> fs/afs/vl_alias.c:318:8-17: ERROR: reference preceded by free on line 316
# https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=298b5d29c83596b495250fdcc97d16183f67b895
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git remote update dhowells-fs
git checkout 298b5d29c83596b495250fdcc97d16183f67b895
vim +318 fs/afs/vl_alias.c
298b5d29c83596b David Howells 2020-04-27 299
298b5d29c83596b David Howells 2020-04-27 300 static int yfs_check_canonical_cell_name(struct afs_cell *cell, struct key *key)
298b5d29c83596b David Howells 2020-04-27 301 {
298b5d29c83596b David Howells 2020-04-27 302 struct afs_cell *master;
298b5d29c83596b David Howells 2020-04-27 303 char *cell_name;
298b5d29c83596b David Howells 2020-04-27 304
298b5d29c83596b David Howells 2020-04-27 305 cell_name = afs_vl_get_cell_name(cell, key);
298b5d29c83596b David Howells 2020-04-27 306 if (IS_ERR(cell_name))
298b5d29c83596b David Howells 2020-04-27 307 return PTR_ERR(cell_name);
298b5d29c83596b David Howells 2020-04-27 308
298b5d29c83596b David Howells 2020-04-27 309 if (strcmp(cell_name, cell->name) == 0) {
298b5d29c83596b David Howells 2020-04-27 310 kfree(cell_name);
298b5d29c83596b David Howells 2020-04-27 311 return 0;
298b5d29c83596b David Howells 2020-04-27 312 }
298b5d29c83596b David Howells 2020-04-27 313
298b5d29c83596b David Howells 2020-04-27 314 master = afs_lookup_cell(cell->net, cell_name, strlen(cell_name),
298b5d29c83596b David Howells 2020-04-27 315 NULL, false);
298b5d29c83596b David Howells 2020-04-27 @316 kfree(cell_name);
298b5d29c83596b David Howells 2020-04-27 317 if (IS_ERR(master)) {
298b5d29c83596b David Howells 2020-04-27 @318 kfree(cell_name);
298b5d29c83596b David Howells 2020-04-27 319 return PTR_ERR(master);
298b5d29c83596b David Howells 2020-04-27 320 }
298b5d29c83596b David Howells 2020-04-27 321
298b5d29c83596b David Howells 2020-04-27 322 cell->alias_of = master; /* Transfer our ref */
298b5d29c83596b David Howells 2020-04-27 323 return 1;
298b5d29c83596b David Howells 2020-04-27 324 }
298b5d29c83596b David Howells 2020-04-27 325
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28360 bytes --]
reply other threads:[~2020-05-29 20:35 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=202005300413.Oa2Qadvi%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/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.