diff options
author | Christoph Hellwig <[email protected]> | 2022-02-15 10:45:12 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-02-16 19:44:24 -0700 |
commit | 6dab421bfe06a59bf8f212a72e34673e8acf2018 (patch) | |
tree | 7ef99f93b46f04c14d73a0e224095133d9b08af6 /include/linux/fpga/fpga-mgr.h | |
parent | e2efa0796607efe60c708271be483c3a2b0128de (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions