CC: [email protected]
TO: "David, Howells," <[email protected]>

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 <[email protected]>
Reported-by: Julia Lawall <[email protected]>


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/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to