Re: pnfs/blocklayout: fix a memory leak after using vmalloc_to_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Kinglong,

[auto build test ERROR on v4.5-rc1]
[also build test ERROR on next-20160129]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Kinglong-Mee/pnfs-blocklayout-fix-a-memory-leak-after-using-vmalloc_to_page/20160131-205327
config: xtensa-allyesconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All errors (new ones prefixed by >>):

   fs/nfs/blocklayout/extent_tree.c: In function 'ext_tree_free_commitdata':
>> fs/nfs/blocklayout/extent_tree.c:479:12: error: 'struct nfs4_layoutcommit_args' has no member named 'start_p'
      vfree(arg->start_p);
               ^
   fs/nfs/blocklayout/extent_tree.c: In function 'ext_tree_prepare_commit':
   fs/nfs/blocklayout/extent_tree.c:566:6: error: 'struct nfs4_layoutcommit_args' has no member named 'start_p'
      arg->start_p = start_p;
         ^

vim +479 fs/nfs/blocklayout/extent_tree.c

   473	{
   474		if (arg->layoutupdate_pages != &arg->layoutupdate_page) {
   475			int nr_pages = DIV_ROUND_UP(buffer_size, PAGE_SIZE), i;
   476	
   477			for (i = 0; i < nr_pages; i++)
   478				put_page(arg->layoutupdate_pages[i]);
 > 479			vfree(arg->start_p);
   480			kfree(arg->layoutupdate_pages);
   481		} else {
   482			put_page(arg->layoutupdate_page);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux