net: usb: raw-ip: check invalid reference
authorShawn Joo(Seongho) <sjoo@nvidia.com>
Thu, 8 Mar 2012 08:46:26 +0000 (17:46 +0900)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 05:55:26 +0000 (10:55 +0530)
commit636e4efcaa437dd6edf90fee84cf80ea9a1eb22f
tree108130ad1ecb501ab8d27d06ef0fa2a585be7d9a
parent0e3fb29eaead5cf4975596bca37595a2b98eaf47
net: usb: raw-ip: check invalid reference

before point reference check valid.
it prevents null point reference panic.

Bug 954883

Signed-off-by: Shawn Joo(Seongho) <sjoo@nvidia.com>
Reviewed-on: http://git-master/r/88781
(cherry picked from commit aac87c7d9c7cf7563bb79a29d517a6ffdba5874f)

Change-Id: Ica17acb6cc2a1a7ed03f41d8b569fdb6e2098fc9
Reviewed-on: http://git-master/r/96464
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/net/usb/raw_ip_net.c