All of lore.kernel.org
 help / color / mirror / Atom feed
* [dhowells-fs:afs-operation 20/27] fs/afs/vl_alias.c:318:8-17: ERROR: reference preceded by free on line 316
@ 2020-05-29 20:35 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-29 20:35 UTC (permalink / raw)
  To: kbuild

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-29 20:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29 20:35 [dhowells-fs:afs-operation 20/27] fs/afs/vl_alias.c:318:8-17: ERROR: reference preceded by free on line 316 kbuild test robot

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.