OSDN Git Service

USB: f_qdss: Fix crash issue during connect_work
authorVijayavardhan Vennapusa <vvreddy@codeaurora.org>
Thu, 4 May 2017 11:55:01 +0000 (17:25 +0530)
committerVijayavardhan Vennapusa <vvreddy@codeaurora.org>
Wed, 10 May 2017 06:00:23 +0000 (11:30 +0530)
commitb100f8c33941acb2717fc6822463995935fdb403
tree4ab2d4cad565b7b31955fb730b5daa790271839e
parent406ab7d2d4f3a72f3ef1dd10f894e6c88ee3ac01
USB: f_qdss: Fix crash issue during connect_work

If it happens that usb_qdss_close() gets called before
completion of qdss_connect_work(), there is a chance that endless
request being accessed in connect_work(), which will be freed in
usb_qdss_close(). Fix that issue by having proper check for
endless request under spinlock protection.

Change-Id: Ied14137e01bf685547c093b907484b4dee583fda
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
drivers/usb/gadget/function/f_qdss.c