]> git.baikalelectronics.ru Git - kernel.git/commit
caif: Fix race when conditionally taking rtnl lock
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>
Wed, 1 Jun 2011 00:55:37 +0000 (00:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jun 2011 04:13:53 +0000 (21:13 -0700)
commit996def0a26a92100aaeb808ff3f59550b986e92b
treedcdfd3de6ee34d6467f26208ae431f9207769088
parentb8e6564030a751ddd0e2831e81a6e1db9ac9e63e
caif: Fix race when conditionally taking rtnl lock

Take the RTNL lock unconditionally when calling dev_close.
Taking the lock conditionally may cause race conditions.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/chnl_net.c