diff options
| author | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-05-25 08:26:54 +0300 |
|---|---|---|
| committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-05-28 07:27:03 +0300 |
| commit | 4178de898c341e6c259851a2be1c7649ac4f40ad (patch) | |
| tree | 752075b614b3acb4de46c068107cf0c1fcdbe11d /include/linux | |
| parent | 6c1977b1f760d7ec71da78781f1d9eeb7a0e21f2 (diff) | |
| download | linux-4178de898c341e6c259851a2be1c7649ac4f40ad.tar.xz | |
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 'include/linux')
0 files changed, 0 insertions, 0 deletions
