Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3402a90f authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Gerrit - the friendly Code Review server
Browse files

USB: diag: Add check for ctxt in usb_diag_request_size()



Diag char driver calls usb_diag_request_size() to get max request
size supported by underlying USB hardware. If there is race between
disable() and this API call, it results in accessing NULL pointer
dereference. Hence fix this by returning zero in case ctxt is NULL.

Change-Id: I51274db0af4cfbc8ba975744f55ad17ec311e32e
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 06bc785f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment