diff options
author | Tomas Winkler <[email protected]> | 2023-06-20 16:19:04 +0300 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2023-07-12 13:30:08 +0200 |
commit | 19bfa9ebebb5ec0695def57eb1d80de7e9cab369 (patch) | |
tree | fa26bdecb34162685d5dfeee7ef9d442d7345f9c /net/lapb/lapb_timer.c | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) |
mtd: use refcount to prevent corruption
When underlying device is removed mtd core will crash
in case user space is holding open handle.
Need to use proper refcounting so device is release
only when has no users.
Signed-off-by: Tomas Winkler <[email protected]>
Signed-off-by: Alexander Usyskin <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions