staging: most: usb: check number of reported endpoints
authorChristian Gromm <christian.gromm@microchip.com>
Fri, 15 May 2020 09:21:01 +0000 (11:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 13:35:12 +0000 (15:35 +0200)
commitc1a57be08e734baf1b89e4a5027cf78c68f29771
tree9d861be1fd4e9e07c15519f141a4e35f67aba730
parentbffea154b24bd71851f883acb08399e43d598d01
staging: most: usb: check number of reported endpoints

This patch checks the number of endpoints reported by the USB
interface descriptor and throws an error if the number exceeds
MAX_NUM_ENDPOINTS.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/1589534465-7423-4-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/usb/usb.c