diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2017-03-24 13:38:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-27 09:24:13 +0200 |
commit | 1633682053a7ee8058e10c76722b9b28e97fb73f (patch) | |
tree | 7d62e7f9b7cb9f51e15063a6a51cf20642237f91 /tools/perf/scripts/python/stackcollapse.py | |
parent | c02ed2e75ef4c74e41e421acb4ef1494671585e8 (diff) |
USB: fix linked-list corruption in rh_call_control()
Using KASAN, Dmitry found a bug in the rh_call_control() routine: If
buffer allocation fails, the routine returns immediately without
unlinking its URB from the control endpoint, eventually leading to
linked-list corruption.
This patch fixes the problem by jumping to the end of the routine
(where the URB is unlinked) when an allocation failure occurs.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Dmitry Vyukov <dvyukov@google.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions