]> git.baikalelectronics.ru Git - kernel.git/commit
sky2: Avoid rtnl_unlock without rtnl_lock
authorMike McCormack <mikem@ring3k.org>
Sat, 13 Mar 2010 20:24:18 +0000 (12:24 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Mar 2010 20:24:18 +0000 (12:24 -0800)
commit6dea4c7fad68e3b5c5ca17b026f4e4cd53cdd5c5
tree060b4f3595eecbdb9d670ed6da4c7892520a40a9
parentd7ffddcb476c46640bc8f00068602029ffc31168
sky2: Avoid rtnl_unlock without rtnl_lock

Make sure we always call rtnl_lock before going down the
error path in sky2_resume, which unlocks the rtnl lock.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c