aoe: increase net_device reference count while using it
authorEd Cashin <ecashin@coraid.com>
Fri, 5 Oct 2012 00:16:34 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:27 +0000 (03:05 +0900)
commit1b86fda9adf1b691a76f8ceddfc59d0c8386257c
treeda4fcaa9696231ff7bd84b0614706aefca7d7d6c
parent64a80f5ac78a289f66c373ace61973205d960ee7
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/aoe/aoecmd.c
drivers/block/aoe/aoedev.c