Skip to content
Snippets Groups Projects
Commit 789db485 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Siqi Lin
Browse files

USB: dwc3: debugfs: Add boundary check in dwc3_store_ep_num()


User can pass arguments as part of write to requests and endpoint number
will be calculated based on the arguments. There is a chance that driver
can access ep structue that is not allocated due to invalid arguments
passed by user. Hence fix the issue by having check and return error in
case of invalid arguments.

Bug: 28172322

Change-Id: I060ea878b55ce0f9983b91c50e58718c8a2c2fa1
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@qti.qualcomm.com>
parent 5792724f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment