]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7d21dbbbb2ebfd1061cf45db723744ecc7200e7
treeda4fcaa9696231ff7bd84b0614706aefca7d7d6c
parenta842f047efc7852571fbe87e6b892d3d473d4080
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