hamradio: avoid null deref v3
authorDan Carpenter <error27@gmail.com>
Mon, 28 Dec 2009 06:54:55 +0000 (06:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2010 05:42:50 +0000 (21:42 -0800)
commitf65d1f082c8fb1bfae3f2cb51ec270da9b6366cf
tree724e6ecc523064138a3e8037b826852a848ca528
parentc064efca9211d12bb9e6de8718fc39884eb883f2
hamradio: avoid null deref v3

This should address the problems in version 1 (lazy) and version 2 (ugly).

Bump the stats on orig_dev not on the newly assigned NULL dev variable.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/bpqether.c