cnic: Don't take cnic_dev_lock in cnic_alloc_uio_rings()
authorMichael Chan <mchan@broadcom.com>
Tue, 3 Jun 2014 06:08:47 +0000 (23:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jun 2014 06:16:41 +0000 (23:16 -0700)
commit437b8a26f9d057505e631b9b556e9d80c1987aca
tree8ae56824c481cde1fdb5504be48a21475e8d4272
parent20f30c2d5ea44925cb83b0fdae78b8600a76b66e
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: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c