]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: increase net_device reference count while using it
authorEd Cashin <ecashin@coraid.com>
Fri, 7 Sep 2012 00:25:12 +0000 (10:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:38 +0000 (15:36 +1000)
commitb5513bf212785b7233cd4369c216e3d4fa62172a
tree327433edd1d3bbfd99e7a3aa8e2c1a2cd0e828af
parent2527eb034fed4935883a63b0165603312480fb05
aoe: increase net_device reference count while using it

This change eliminates the danger that the user could rmmod the driver for
a network interface that is being used for AoE by the aoe driver.

Signed-off-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/aoe/aoecmd.c
drivers/block/aoe/aoedev.c