Thread (78 messages) 78 messages, 4 authors, 2015-09-23

Re: [PATCH v2 04/30] cxlflash: Fix potential oops following LUN removal

flat view

From: Matthew R. Ochs <hidden>
Date: 2015-09-18 23:18:30
Also in: linux-scsi

On Sep 17, 2015, at 8:26 PM, Brian King [off-list ref] =
wrote:
=20
On 09/16/2015 04:27 PM, Matthew R. Ochs wrote:
quoted
=20
	lun_access =3D kzalloc(sizeof(*lun_access), GFP_KERNEL);
	if (unlikely(!lun_access)) {
		dev_err(dev, "%s: Unable to allocate lun_access!\n", =
__func__);
quoted
+		scsi_device_put(sdev);
=20
Looks like you've got a double scsi_device_put in this path, since =
there is another put
in the the err0 path.
Good catch! I'll fix in v3.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help