Messages in this thread | | | Date | Fri, 20 Nov 2015 03:52:12 -0800 | From | Christoph Hellwig <> | Subject | Re: [PATCH] Fix a memory leak in scsi_host_dev_release() |
| |
Hi Bart,
the memory leak looks real, and your fix looks corret, but I still don't like it.
I think it's reasonable for SCSI to assume that the final put_device fully frees the struct device including the name pointer that is assigned entirely behind the back of the caller.
So I think the fix for this probably should be in the driver core.
| |