diff options
author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | 2015-09-10 10:51:25 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-19 21:35:57 -0800 |
commit | 2e83ddb8b78f828073377aef6e90a7952e8b0fa3 (patch) | |
tree | f10f927bdebe31707100ef758bfd43c4c3bb73f5 /drivers/uwb/i1480/dfu | |
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.
CRs-Fixed: 891650
Change-Id: I79ce3967533d2a7cb7591ccfe50b095a540e9884
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Diffstat (limited to 'drivers/uwb/i1480/dfu')
0 files changed, 0 insertions, 0 deletions