Merge git://git.denx.de/u-boot-usb

This commit is contained in:
Tom Rini 2018-05-03 09:20:13 -04:00
commit db13e05dda
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ static int config_buf(struct usb_configuration *config,
int len = USB_BUFSIZ - USB_DT_CONFIG_SIZE;
void *next = buf + USB_DT_CONFIG_SIZE;
struct usb_descriptor_header **descriptors;
struct usb_config_descriptor *c = buf;
struct usb_config_descriptor *c;
int status;
struct usb_function *f;

View File

@ -1744,7 +1744,7 @@ static int check_command(struct fsg_common *common, int cmnd_size,
common->lun, lun);
/* Check the LUN */
if (common->lun >= 0 && common->lun < common->nluns) {
if (common->lun < common->nluns) {
curlun = &common->luns[common->lun];
if (common->cmnd[0] != SC_REQUEST_SENSE) {
curlun->sense_data = SS_NO_SENSE;