Skip to content
Snippets Groups Projects
Commit db13e05d authored by Tom Rini's avatar Tom Rini
Browse files
parents 9f881a59 48cdfa2f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment