Skip to content

Commit 72d3eb1

Browse files
Amerigo Wangdavem330
authored andcommitted
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 8d8fc29 Author: Amerigo Wang <amwang@redhat.com> Date: Thu May 19 21:39:10 2011 +0000 netpoll: disable netpoll when enslave a device Cc: David Miller <davem@davemloft.net> (for all 3.x stable releases) Cc: stable@vger.kernel.org Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9d7b0fc commit 72d3eb1

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/net/netconsole.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,6 @@ static int netconsole_netdev_event(struct notifier_block *this,
643643
__netpoll_cleanup(&nt->np);
644644
dev_put(nt->np.dev);
645645
nt->np.dev = NULL;
646-
netconsole_target_put(nt);
647646
}
648647
nt->enabled = 0;
649648
stopped = true;

0 commit comments

Comments
 (0)