diff options
| author | Javier González <[email protected]> | 2018-10-09 11:12:07 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-10-09 14:25:08 +0000 |
| commit | 44cdbdc657b23f75736eca3e88b781f009104363 (patch) | |
| tree | db6d14e7d352ee04ff6f7ec6ea20a34fdf990d8d /drivers/lightnvm/pblk-init.c | |
| parent | lightnvm: pblk: add SPDX license tag (diff) | |
| download | kernel-44cdbdc657b23f75736eca3e88b781f009104363.tar.gz kernel-44cdbdc657b23f75736eca3e88b781f009104363.zip | |
lightnvm: pblk: fix race on sysfs line state
pblk exposes a sysfs interface that represents its internal state. Part
of this state is the map bitmap for the current open line, which should
be protected by the line lock to avoid a race when freeing the line
metadata. Currently, it is not.
This patch makes sure that the line state is consistent and NULL
bitmap pointers are not dereferenced.
Signed-off-by: Javier González <[email protected]>
Signed-off-by: Matias Bjørling <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
0 files changed, 0 insertions, 0 deletions
