Home
last modified time | relevance | path

Searched hist:"6 dab421bfe06a59bf8f212a72e34673e8acf2018" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/memstick/core/
H A Dmspro_block.cdiff 6dab421bfe06a59bf8f212a72e34673e8acf2018 Tue Feb 15 03:45:12 CST 2022 Christoph Hellwig <hch@lst.de> memstick/mspro_block: fix handling of read-only devices

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>