mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
netconsole: remove a redundant netconsole_target_put()
commit72d3eb13b5upstream. 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: commit8d8fc29d02Author: 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>
This commit is contained in:
parent
8b2b69f4e7
commit
b0b5cee7c4
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user