diff options
author | Amerigo Wang <amwang@redhat.com> | 2012-08-18 07:02:20 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 10:29:51 -0700 |
commit | 25941570aadb0f03270acab13bab1378eec5ea21 (patch) | |
tree | 4c8c9bee1a21658a5a6a69898585246e31675f4e /drivers/net | |
parent | f92e8b0ddb85dfe7d8d2547516c873ec8dd9838e (diff) | |
download | linux-3.10-25941570aadb0f03270acab13bab1378eec5ea21.tar.gz linux-3.10-25941570aadb0f03270acab13bab1378eec5ea21.tar.bz2 linux-3.10-25941570aadb0f03270acab13bab1378eec5ea21.zip |
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 <amwang@redhat.com>
Date: Thu May 19 21:39:10 2011 +0000
netpoll: disable netpoll when enslave a device
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/netconsole.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index f9347ea3d38..63ffbdfe36c 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -648,7 +648,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; |