generic: mvswitch: add detach callback
authorGabor Juhos <juhosg@openwrt.org>
Thu, 7 Feb 2013 15:18:34 +0000 (15:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 7 Feb 2013 15:18:34 +0000 (15:18 +0000)
commitc32d96d9e643452badd97a4edb2bb41a70d8ea60
treee652b02c08a6b8f3192a31ad77b102e3cde2ad5b
parentbabed81891ac2b751613176e910db10190121aea
generic: mvswitch: add detach callback

Use the detach callback to disable packet mangling
to avoid possible NULL pointer dereference.

Compile tested only.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35512 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/mvswitch.c