sfc: Ensure down_write(&filter_sem) and up_write() are matched before calling efx_net...
authorShradha Shah <sshah@solarflare.com>
Wed, 8 Jul 2015 09:12:45 +0000 (10:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 23:18:52 +0000 (16:18 -0700)
commit671b53eec2edcbfac3e53d02cf3d0c6d9ecc07de
treee18d141536a5c3ef18ff8a8dacf16ed67fffe466
parentf1158b74e54f2e2462ba5e2f45a118246d9d5b43
sfc: Ensure down_write(&filter_sem) and up_write() are matched before calling efx_net_open()

This patch avoids the double up_write to filter_sem if
efx_net_open() fails.

Resolves: 2d432f20d27c1813a2746008e16dd6ce12a14dc1

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10_sriov.c