diff options
author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2016-07-21 15:00:49 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-19 21:14:58 -0800 |
commit | c8023ef763c56210f62dbddcc16cf6275215dcf7 (patch) | |
tree | 82caa898e6e00998531e00979ec56202a0732ed7 /include/linux/uio.h | |
parent | fdddc49ef25b6efe57e7a6e15b59dfb253dc496b (diff) |
USB: gadget: mass_storage: Fix Null pointer access during disconnect
There is a chance that completion handler and ep disable race each other
and it might happen that completion handler gets called after driver_data
is set to NULL as part of function disable. This results in crash. Hence
add check in completion handler to check if driver_data is NULL or not
to fix the issue.
Change-Id: I3496811f52af79e8dccb701b2753a81f5d5a2340
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'include/linux/uio.h')
0 files changed, 0 insertions, 0 deletions