linux-stable/drivers/memstick/core
Christoph Hellwig 6a0725b9d7 memstick/mspro_block: fix handling of read-only devices
[ Upstream commit 6dab421bfe ]

Use set_disk_ro to propagate the read-only state to the block layer
instead of checking for it in ->open and leaking a reference in case
of a read-only device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220215094514.3828912-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:58:36 +02:00
..
Kconfig memstick: Fix Kconfig indentation 2019-11-21 12:25:59 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
memstick.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
ms_block.c memstick: avoid out-of-range warning 2021-10-12 10:21:20 +02:00
ms_block.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
mspro_block.c memstick/mspro_block: fix handling of read-only devices 2022-04-08 13:58:36 +02:00