diff options
| author | Jerry Zhang <zhangjerry@google.com> | 2018-02-22 11:25:05 -0800 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-23 23:43:36 +0200 |
| commit | 405a9d3ef0ccd65d01621aea51a4549e3e09b55d (patch) | |
| tree | 610734a8aa3d8acf5b8fe4230c462e65f052bb59 /scripts/stackusage | |
| parent | 2e9e74df5578ebedcec07354791d98cd0ba18cc1 (diff) | |
ANDROID: usb: gadget: f_accessory: Also zero out rx_req on unbind
Prevents crash in the following sequence:
successful bind initializes all elements of rx_req
unbind frees all elements of rx_req but doesn't zero out rx_req
bind() -> failed create_bulk_endpoints() on allocating rx_req[0], tries
to free all elements of rx_req, double free on rx_req[1]
Bug: 73769117
Test: no crash
Change-Id: I69c538450ea52a1aa718d27a2a48629f66a7e8b6
Signed-off-by: Jerry Zhang <zhangjerry@google.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
