Skip to contentSkip to conversation

netconsole: remove a redundant netconsole_target_put()

PATCH Applied Cong Wang 2 participants 2 messages Aug 18, 2012 – Aug 20, 2012

Subsystems (3)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 netconsole: remove a redundant netconsole_target_put()

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 <[email protected]>
	Date:   Thu May 19 21:39:10 2011 +0000

	    netpoll: disable netpoll when enslave a device

Cc: David Miller <[email protected]>
(for all 3.x stable releases)

---

drivers/net/netconsole.c +0 -1
index f0ad56c..b332112 100644
@@ -643,7 +643,6 @@ static int netconsole_netdev_event(struct notifier_block *this,
 					__netpoll_cleanup(&nt->np);
 					dev_put(nt->np.dev);
 					nt->np.dev = NULL;
-					netconsole_target_put(nt);
 				}
 				nt->enabled = 0;
 				stopped = true;
maintainer Applied
#1 lore raw

From: Cong Wang <[email protected]>
Date: Sun, 19 Aug 2012 01:02:20 +0800

Quoted 12 lines

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 <[email protected]>
	Date:   Thu May 19 21:39:10 2011 +0000

	    netpoll: disable netpoll when enslave a device
Quoted 4 lines

Cc: David Miller <[email protected]>
(for all 3.x stable releases)

Applied, thanks.