diff options
author | 2009-08-14 15:49:47 +0000 | |
---|---|---|
committer | 2009-08-15 18:50:47 -0700 | |
commit | 7fc1ece40704b150477e548a7a98d285cc418790 (patch) | |
tree | fd7f72c1b92ddde327fb72235a256539ac193b8c /drivers/base/platform.c | |
parent | cnic: Fix locking in start/stop calls. (diff) | |
download | wireguard-linux-7fc1ece40704b150477e548a7a98d285cc418790.tar.xz wireguard-linux-7fc1ece40704b150477e548a7a98d285cc418790.zip |
cnic: Fix locking in init/exit calls.
The slow path ulp_init and ulp_exit calls to the bnx2i driver
are sleepable calls and therefore should not be protected using
rcu_read_lock. Fix it by using mutex and refcount during these
calls. cnic_unregister_driver() will now wait for the refcount
to go to zero before completing the call.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions