]> 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)
commitab812fb1b997ba0e5a2784dbb958f30f38374bc0
treeda4fcaa9696231ff7bd84b0614706aefca7d7d6c
parentb6ea94727cce5956a4b6832fa41e3fc0b20179ed
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