net/ixgbe/base: fix error path to release lock
authorBeilei Xing <beilei.xing@intel.com>
Thu, 23 Jun 2016 07:22:20 +0000 (15:22 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 27 Jun 2016 14:17:53 +0000 (16:17 +0200)
commit4fe0982ee75f7397fd2d657d827eeb40606ad11c
tree498cb0a869e5376a40b3189edd7944f3d2d4c35f
parent64529722b3886994fb0b364224eb1991d1a80543
net/ixgbe/base: fix error path to release lock

When there is an error getting the PHY token, the error path
fails to release the locks that it has taken. Release those
locks in that failure case.

Fixes: 86b8fb293fdf ("ixgbe/base: add sw-firmware sync for resource sharing on X550em_a")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/ixgbe/base/ixgbe_x550.c