commit | 1077960495b9f6776311ea93822d396b26a7c4e4 | [log] [tgz] |
---|---|---|
author | Will Deacon <willdeacon@google.com> | Tue Dec 15 14:24:17 2020 +0000 |
committer | Giuliano Procida <gprocida@google.com> | Tue Jan 05 10:12:26 2021 +0000 |
tree | 617ad6150b5d1babd69788c7636f7977dac48375 | |
parent | 1edd54563125bc813f486c3786b3dde5dd0d6a9a [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>