]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: remove duplicate up_write on VF filter_sem
authorEdward Cree <ecree@solarflare.com>
Tue, 20 Jun 2017 12:08:51 +0000 (13:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 19:40:00 +0000 (15:40 -0400)
commitbbd4c51c071432653de3e517ae4d2972f2124f71
treeb51ba26f7cb76538a0261cb5577c66287b4880b3
parent02978ea0c11f603b7f26f3c16e7faf4ee2f8db1d
sfc: remove duplicate up_write on VF filter_sem

Somehow two copies of the line 'up_write(&vf->efx->filter_sem);' got into
 efx_ef10_sriov_set_vf_vlan().  This would put the mutex in a bad state and
 cause all subsequent down attempts to hang.

Fixes: e46ad7bc9e32 ("sfc: Ensure down_write(&filter_sem) and up_write() are matched before calling efx_net_open()")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10_sriov.c