aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr/lpddr2_nvm.c
diff options
context:
space:
mode:
authorTomas Winkler <[email protected]>2023-06-20 13:19:04 +0000
committerMiquel Raynal <[email protected]>2023-07-12 11:30:08 +0000
commit19bfa9ebebb5ec0695def57eb1d80de7e9cab369 (patch)
treefa26bdecb34162685d5dfeee7ef9d442d7345f9c /drivers/mtd/lpddr/lpddr2_nvm.c
parentLinux 6.5-rc1 (diff)
downloadkernel-19bfa9ebebb5ec0695def57eb1d80de7e9cab369.tar.gz
kernel-19bfa9ebebb5ec0695def57eb1d80de7e9cab369.zip
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 'drivers/mtd/lpddr/lpddr2_nvm.c')
0 files changed, 0 insertions, 0 deletions