diff options
| -rw-r--r-- | drivers/usb/class/cdc-acm.c | 3 | ||||
| -rw-r--r-- | drivers/usb/storage/isd200.c | 5 | ||||
| -rw-r--r-- | drivers/usb/typec/ucsi/ucsi.h | 1 | 
3 files changed, 8 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 5357d83bbda2..5e056064259c 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1829,6 +1829,9 @@ static const struct usb_device_id acm_ids[] = {  	{ USB_DEVICE(0x1576, 0x03b1), /* Maretron USB100 */  	.driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */  	}, +	{ USB_DEVICE(0xfff0, 0x0100), /* DATECS FP-2000 */ +	.driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */ +	},  	{ USB_DEVICE(0x2912, 0x0001), /* ATOL FPrint */  	.driver_info = CLEAR_HALT_CONDITIONS, diff --git a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c index fba4005dd737..6a7720e66595 100644 --- a/drivers/usb/storage/isd200.c +++ b/drivers/usb/storage/isd200.c @@ -1529,8 +1529,11 @@ static void isd200_ata_command(struct scsi_cmnd *srb, struct us_data *us)  	/* Make sure driver was initialized */ -	if (us->extra == NULL) +	if (us->extra == NULL) {  		usb_stor_dbg(us, "ERROR Driver not initialized\n"); +		srb->result = DID_ERROR << 16; +		return; +	}  	scsi_set_resid(srb, 0);  	/* scsi_bufflen might change in protocol translation to ata */ diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h index 6b0d2f0918c6..8a88f45822e3 100644 --- a/drivers/usb/typec/ucsi/ucsi.h +++ b/drivers/usb/typec/ucsi/ucsi.h @@ -3,6 +3,7 @@  #define __DRIVER_USB_TYPEC_UCSI_H  #include <linux/bitops.h> +#include <linux/device.h>  #include <linux/types.h>  /* -------------------------------------------------------------------------- */  | 
