ISDN: hysdn, fix potential NULL dereference
authorJiri Slaby <jslaby@suse.cz>
Tue, 22 Jun 2010 01:41:36 +0000 (01:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jun 2010 05:12:02 +0000 (22:12 -0700)
Stanse found that lp is dereferenced earlier than checked for being
NULL in hysdn_rx_netpkt. Move the initialization below the test.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Patrick McHardy <kaber@trash.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found