Fix a potential NULL pointer dereference in write_bulk_callback() in drivers/net...
authorMicah Gruber <micah.gruber@gmail.com>
Mon, 23 Jul 2007 08:05:52 +0000 (16:05 +0800)
committerJeff Garzik <jeff@garzik.org>
Mon, 30 Jul 2007 19:44:50 +0000 (15:44 -0400)
commit9351982b25ace7ee5ed82b6f4a7ea1151f31d267
treec12bba41d41a68e44bf8fdaeb9780fc17a0c647d
parent80ba80a9bf25d251237694c3fcee850a73324532
Fix a potential NULL pointer dereference in write_bulk_callback() in drivers/net/usb/pegasus.c

This patch fixes a potential null dereference bug where we dereference
pegasus before a null check. This patch simply moves the dereferencing
after the null check.

Signed-off-by: Micah Gruber <micah.gruber@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/usb/pegasus.c