diff options
| author | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-05-25 05:26:54 +0000 |
|---|---|---|
| committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-05-28 04:27:03 +0000 |
| commit | 4178de898c341e6c259851a2be1c7649ac4f40ad (patch) | |
| tree | 752075b614b3acb4de46c068107cf0c1fcdbe11d /scripts/Makefile.thinlto | |
| parent | 6c1977b1f760d7ec71da78781f1d9eeb7a0e21f2 (diff) | |
platform/chrome: cros_ec_chardev: Introduce rwsem for protecting ec_dev
Introduce a rwsem for protecting `ec_dev` to prevent Use-After-Free on
the `ec_dev`.
- Writers: In driver's probe() and remove().
- Readers: In file operations.
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20260525052654.4076429-5-tzungbi@kernel.org
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
