diff options
author | Will Deacon <willdeacon@google.com> | 2020-12-15 14:24:17 +0000 |
---|---|---|
committer | Giuliano Procida <gprocida@google.com> | 2020-12-30 10:15:54 +0000 |
commit | 300d539b8e6e297ffd986afec63a88415eced57d (patch) | |
tree | 17486592e3bc99e81acc2f231059015cf9ba4da5 /drivers/hsi | |
parent | 01eeae3561930ab88fa3aabc96ec6b3141d50859 (diff) |
ANDROID: usb: f_accessory: Wrap '_acc_dev' in get()/put() accessors
The '_acc_dev' global variable is a fancy use-after-free factory. Wrap
it in some get()/put() functions in preparation for introducing some
refcounting.
Bug: 173789633
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I4c839627648c209341a81efa0c001c8d71b878d4
Signed-off-by: Giuliano Procida <gprocida@google.com>
Diffstat (limited to 'drivers/hsi')
0 files changed, 0 insertions, 0 deletions