summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc2/core_intr.c
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2020-01-09 16:17:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-15 12:40:22 +0300
commitd710562e01c48d59be3f60d58b7a85958b39aeda (patch)
tree9b4c503cf335912b6c577807eaa917540a3a915c /drivers/usb/dwc2/core_intr.c
parent5b24c28cfe136597dc3913e1c00b119307a20c7e (diff)
downloadlinux-d710562e01c48d59be3f60d58b7a85958b39aeda.tar.xz
usb: gadget: f_ecm: Use atomic_t to track in-flight request
Currently ecm->notify_req is used to flag when a request is in-flight. ecm->notify_req is set to NULL and when a request completes it is subsequently reset. This is fundamentally buggy in that the unbind logic of the ECM driver will unconditionally free ecm->notify_req leading to a NULL pointer dereference. Fixes: da741b8c56d6 ("usb ethernet gadget: split CDC Ethernet function") Cc: stable <stable@vger.kernel.org> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Felipe Balbi <balbi@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc2/core_intr.c')
0 files changed, 0 insertions, 0 deletions