Re: [PATCH v7 02/13] PCI/P2PDMA: Add sysfs group to display p2pmem stats

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

 



On Tue, 2018-09-25 at 10:22 -0600, Logan Gunthorpe wrote:
+AD4 +AEAAQA -83,9 +-132,14 +AEAAQA static int pci+AF8-p2pdma+AF8-setup(struct pci+AF8-dev +ACo-pdev)
+AD4  
+AD4  	pdev-+AD4-p2pdma +AD0 p2p+ADs
+AD4  
+AD4 +-	error +AD0 sysfs+AF8-create+AF8-group(+ACY-pdev-+AD4-dev.kobj, +ACY-p2pmem+AF8-group)+ADs
+AD4 +-	if (error)
+AD4 +-		goto out+AF8-pool+AF8-destroy+ADs
+AD4 +-
+AD4  	return 0+ADs
+AD4  
+AD4  out+AF8-pool+AF8-destroy:
+AD4 +-	pdev-+AD4-p2pdma +AD0 NULL+ADs
+AD4  	gen+AF8-pool+AF8-destroy(p2p-+AD4-pool)+ADs
+AD4  out:
+AD4  	devm+AF8-kfree(+ACY-pdev-+AD4-dev, p2p)+ADs

This doesn't look right to me. Shouldn't devm+AF8-remove+AF8-action() be called instead
of devm+AF8-kfree() if sysfs+AF8-create+AF8-group() fails?

Thanks,

Bart.




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux