diff options
author | Mark Brown <broonie@kernel.org> | 2018-07-18 13:37:19 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-18 13:37:19 +0100 |
commit | faf34726275b225a9954f2901364c053e6e3d1f0 (patch) | |
tree | 3ac169b40a37387cf986331b9371db8b0c5b7af7 /drivers/usb/host | |
parent | 77c2bedd8f1658a47e015e77ee1f86b619707735 (diff) | |
parent | cff26c95b24c7b7147db17b623dee946bd25ec95 (diff) |
Merge tag 'v4.14.56' into linux-linaro-lsk-v4.14
This is the 4.14.56 stable release
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 00b710016d21..b7b55eb82714 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -604,7 +604,7 @@ struct xhci_ring *xhci_stream_id_to_ring( if (!ep->stream_info) return NULL; - if (stream_id > ep->stream_info->num_streams) + if (stream_id >= ep->stream_info->num_streams) return NULL; return ep->stream_info->stream_rings[stream_id]; } |