summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2016-01-12 15:57:01 +0800
committerMarek Vasut <[email protected]>2016-01-16 07:06:55 +0100
commit447b9cdf2c4d8d7c6cb1ff64426c1dfaf7396f93 (patch)
treeebd5fba4a4c40637f72a18cfab100a1d259566b3 /include/linux/string.h
parent08c11cb5df8c75c79b165e19531040cc36036252 (diff)
common: usb: fix checking condition
We support max USB_MAXENDPOINTS, so need to use "epno >= USB_MAXENDPOINTS", but not "epno > USB_MAXENDPOINTS". If use ">", we may exceeds the array of if_desc->ep_desc. Signed-off-by: Peng Fan <[email protected]> Cc: Simon Glass <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Paul Kocialkowski <[email protected]> Cc: "Stefan BrĂ¼ns" <[email protected]> Cc: Vincent Palatin <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions