]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netconsole: enable netconsole can make net_device refcnt incorrent
authorGao feng <gaofeng@cn.fujitsu.com>
Tue, 11 Oct 2011 16:08:11 +0000 (16:08 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:18:02 +0000 (11:18 -0800)
commit1f4215f1dd55bb98b4b143cb34f1f94cfa85b321
treea28f7ff28715d28198024b48ec7da64a9b673d35
parent50df6c22a2f18c32d4a932687e7d14783dbdaa53
netconsole: enable netconsole can make net_device refcnt incorrent

[ Upstream commit d5123480b1d6f7d1a5fe1a13520cef88fb5d4c84 ]

There is no check if netconsole is enabled current.
so when exec echo 1 > enabled;
the reference of net_device will increment always.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/netconsole.c