ipheth: potential null dereferences on error path
authorDan Carpenter <error27@gmail.com>
Mon, 26 Apr 2010 23:20:12 +0000 (23:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Apr 2010 21:49:07 +0000 (14:49 -0700)
commitd87ff58fda926fe5cb01214cccf1c72422ac776d
tree896ae06e804c24fd02b254896a884d2f5d30fe4a
parent2a9151572224ad5fe808058097be94106470a6dc
ipheth: potential null dereferences on error path

The calls to usb_free_buffer() dereference rx_urb and tx_urb in the
parameter list but those could be NULL.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: L. Alberto Giménez <agimenez@sysvalve.es>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/ipheth.c