|
@@ -468,6 +468,9 @@ static void mos7840_control_callback(struct urb *urb)
|
|
|
}
|
|
|
|
|
|
dev_dbg(dev, "%s urb buffer size is %d\n", __func__, urb->actual_length);
|
|
|
+ if (urb->actual_length < 1)
|
|
|
+ goto out;
|
|
|
+
|
|
|
dev_dbg(dev, "%s mos7840_port->MsrLsr is %d port %d\n", __func__,
|
|
|
mos7840_port->MsrLsr, mos7840_port->port_num);
|
|
|
data = urb->transfer_buffer;
|