From: Amerigo Wang Date: Sat, 18 Aug 2012 07:02:20 +0000 (+0000) Subject: netconsole: remove a redundant netconsole_target_put() X-Git-Tag: v3.0.44~99 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b0b5cee7c407680ffb2805e47d8c896cdae988b0;p=karo-tx-linux.git netconsole: remove a redundant netconsole_target_put() commit 72d3eb13b5c0abe7d63efac41f39c5b644c7bbaa upstream. This netconsole_target_put() is obviously redundant, and it causes a kernel segfault when removing a bridge device which has netconsole running on it. This is caused by: commit 8d8fc29d02a33e4bd5f4fa47823c1fd386346093 Author: Amerigo Wang Date: Thu May 19 21:39:10 2011 +0000 netpoll: disable netpoll when enslave a device Signed-off-by: Cong Wang Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 4840ab7e7f8a..4309296e8650 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -652,7 +652,6 @@ static int netconsole_netdev_event(struct notifier_block *this, flags); dev_put(nt->np.dev); nt->np.dev = NULL; - netconsole_target_put(nt); } nt->enabled = 0; stopped = true;