]> git.karo-electronics.de Git - karo-tx-linux.git/commit
aoe: increase net_device reference count while using it
authorEd Cashin <ecashin@coraid.com>
Thu, 13 Sep 2012 01:01:35 +0000 (11:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 20 Sep 2012 07:05:29 +0000 (17:05 +1000)
commit982f0276c1cf8b6b12549a0db99e27059485c013
treea1ec8e08bbe309f7d0dacfdfe981f16a0bbc68f5
parentcdb05ef8e051591bc67624c317adff2ee3f53a5e
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