From: Johan Hovold Date: Wed, 19 May 2010 20:13:17 +0000 (+0200) Subject: USB: mos7840: fix null-pointer dereference X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b41709f1263bb1ad37efc43fea0bb0b670c12e78;p=openwrt%2Fstaging%2Fblogic.git USB: mos7840: fix null-pointer dereference Fix null-pointer dereference on error path. Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index f8424d1bfc1b..585b7e663740 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c @@ -730,7 +730,6 @@ static void mos7840_bulk_in_callback(struct urb *urb) mos7840_port = urb->context; if (!mos7840_port) { dbg("%s", "NULL mos7840_port pointer"); - mos7840_port->read_urb_busy = false; return; }