]> git.baikalelectronics.ru Git - kernel.git/commit
NET: netpoll, fix potential NULL ptr dereference
authorJiri Slaby <jslaby@suse.cz>
Tue, 16 Mar 2010 05:29:54 +0000 (05:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2010 21:15:45 +0000 (14:15 -0700)
commit984144b7850a985306af25fdf651902bde390f3c
treeb159ba512fdbdfe92d896a77109e7c0dadd36f87
parent5f2add0ba6ea5e78a4cd762b1399c86734835181
NET: netpoll, fix potential NULL ptr dereference

Stanse found that one error path in netpoll_setup dereferences npinfo
even though it is NULL. Avoid that by adding new label and go to that
instead.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Daniel Borkmann <danborkmann@googlemail.com>
Cc: David S. Miller <davem@davemloft.net>
Acked-by: chavey@google.com
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c