summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2026-05-25 08:26:54 +0300
committerTzung-Bi Shih <tzungbi@kernel.org>2026-05-28 07:27:03 +0300
commit4178de898c341e6c259851a2be1c7649ac4f40ad (patch)
tree752075b614b3acb4de46c068107cf0c1fcdbe11d /include/linux
parent6c1977b1f760d7ec71da78781f1d9eeb7a0e21f2 (diff)
downloadlinux-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