summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2016-08-25 15:58:01 -0700
committerHemant Kumar <hemantk@codeaurora.org>2016-08-26 18:37:56 -0700
commit6237ba156202301f9b15e17291a842da2938c7b9 (patch)
tree2dad03dcbacd74a19d304cabb8e501e40a4b974e /include/linux/fpga/fpga-mgr.h
parente97b6a0e0217f7c072fdad6c50673cd7a64348e1 (diff)
usb: gadget: f_cdev: Handle notification request properly
Driver is setting notify request pointer to NULL in order to prevent re-queueing of notification request until it is completed. This results into NULL ptr dereference if ioctl happens before driver unbind tries to free the request buffer. Fix this issue by introduce a flag q_again to prevent re-queuing of same request instead of setting notify request pointer to NULL. Also add NULL check in usb_cser_free_req() and set the request pointer to NULL after freeing it. Change-Id: Id431f911d3bdebfeedd0a5c1e36218ce7467ba67 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions