Staging: ozwpan: prevent bogus dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 2 Mar 2012 06:59:55 +0000 (09:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2012 00:32:21 +0000 (16:32 -0800)
commit92a6253299d74833a36edb94d5a4bc541418b17a
tree2a1b9702e8e93c8e6877948b5b0fb6935e3dc7b0
parentf2e332662bd38d1656ff31cf398de5a4ab15684c
Staging: ozwpan: prevent bogus dereference

app_id comes from the network and can't be trusted.  If it's zero then
it will lead to a kernel crash.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Chris Kelly <ckelly@ozmodevices.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozpd.c