Skip to content
Commit 437b8a26 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller
Browse files

cnic: Don't take cnic_dev_lock in cnic_alloc_uio_rings()



We are allocating memory with GFP_KERNEL under spinlock.  Since this is
the only call manipulating the cnic_udev_list and it is always under
rtnl_lock, cnic_dev_lock can be safely removed.

Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 20f30c2d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment