Re: [v2] cxl: Fix unbalanced pci_dev_get in cxl_probe

2015-09-16 Thread Michael Ellerman
On Tue, 2015-15-09 at 05:04:07 UTC, Daniel Axtens wrote: > Currently the first thing we do in cxl_probe is to grab a reference > on the pci device. Later on, we call device_register on our adapter. > In our remove path, we call device_unregister, but we never call > pci_dev_put. We therefore leak t

Re: [PATCH v2] cxl: Fix unbalanced pci_dev_get in cxl_probe

2015-09-14 Thread Ian Munsie
Acked-by: Ian Munsie ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH v2] cxl: Fix unbalanced pci_dev_get in cxl_probe

2015-09-14 Thread Daniel Axtens
Currently the first thing we do in cxl_probe is to grab a reference on the pci device. Later on, we call device_register on our adapter. In our remove path, we call device_unregister, but we never call pci_dev_put. We therefore leak the device every time we do a reflash. device_register/unregister