]> Git Repo - linux.git/commitdiff
fcoe: Fix missing mutex_unlock in fcoe_sysfs_fcf_add error path
authorNeil Horman <[email protected]>
Tue, 8 Oct 2013 23:43:58 +0000 (23:43 +0000)
committerRobert Love <[email protected]>
Mon, 14 Oct 2013 15:25:40 +0000 (08:25 -0700)
In this pending patch:
http://patchwork.open-fcoe.org/patch/104/

Tomas Henzl noted that the error path when fcoe_fcf_device_add fails, was
missing a mutex_unlock call.

Not sure what staet the integration of the above patch is in, but if you could
either merge this with it, or apply it on top of what you already have, that
would be great.  Thanks!

Signed-off-by: Neil Horman <[email protected]>
CC: [email protected]
Reported-by: [email protected]
Signed-off-by: Robert Love <[email protected]>
drivers/scsi/fcoe/fcoe_ctlr.c

index 75efdbc54ef8f5ce5aa36c23212af0dbdc806cce..2aba32f12f13a85b16ec934bbabbe650de165f47 100644 (file)
@@ -203,6 +203,7 @@ static int fcoe_sysfs_fcf_add(struct fcoe_fcf *new)
                fcf_dev = fcoe_fcf_device_add(ctlr_dev, temp);
                if (unlikely(!fcf_dev)) {
                        rc = -ENOMEM;
+                       mutex_unlock(&ctlr_dev->lock);
                        goto out;
                }
 
This page took 0.061297 seconds and 4 git commands to generate.