Files
linux-rockchip/include/linux
Tomas Winkler b088c5c203 UPSTREAM: 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 <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230620131905.648089-2-alexander.usyskin@intel.com
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit 19bfa9ebebb5ec0695def57eb1d80de7e9cab369)
Change-Id: I95b670fa24e6411867cfa517560802e58a183ef8
2025-01-20 09:04:43 +00:00
..
2025-01-10 17:48:57 +08:00
2025-01-10 17:48:57 +08:00
2024-06-12 11:03:08 +02:00
2024-05-08 11:14:32 +08:00
2024-07-05 09:31:59 +02:00
2024-08-17 17:42:29 +08:00
2024-10-17 15:21:32 +02:00
2024-03-26 18:21:02 -04:00
2024-08-17 17:42:29 +08:00
2024-05-25 16:21:31 +02:00
2024-08-17 17:42:29 +08:00
2024-04-03 15:19:34 +02:00
2025-01-10 17:48:57 +08:00
2025-01-10 17:48:57 +08:00
2024-05-08 11:14:32 +08:00
2024-06-12 11:03:21 +02:00
2024-05-08 11:14:32 +08:00
2025-01-10 17:48:57 +08:00
2024-05-08 11:14:32 +08:00
2024-10-17 15:21:12 +02:00