be2net: release mcc-lock in a failure case in be_cmd_notify_wait()
authorSuresh Reddy <Suresh.Reddy@avagotech.com>
Mon, 12 Oct 2015 07:47:18 +0000 (03:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 11:32:42 +0000 (04:32 -0700)
commit0c8845679f3b8f030f3bafcdf226ed92545fa2a9
tree955c3a1fc2896accc9377dc8cc7e117c8bd402b6
parentae4a9d6a6362df4e4e492c297157498d299bdb68
be2net: release mcc-lock in a failure case in be_cmd_notify_wait()

The mcc/mbox lock is not being released when be_cmd_copy() returns
an error.

Signed-off-by: Suresh Reddy <suresh.reddy@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c