aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/videobuf2-v4l2.c
diff options
context:
space:
mode:
authorJeremy Cline <jeremy@jcline.org>2018-03-06 21:47:32 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2018-03-06 22:07:49 -0500
commit20bd1d026aacc5399464f8328f305985c493cde3 (patch)
treec095e7185a535448eb9f0257b16c77bf279a9d04 /drivers/media/v4l2-core/videobuf2-v4l2.c
parentscsi: qla2xxx: Fix crashes in qla2x00_probe_one on probe failure (diff)
downloadlinux-dev-20bd1d026aacc5399464f8328f305985c493cde3.tar.xz
linux-dev-20bd1d026aacc5399464f8328f305985c493cde3.zip
scsi: sd: Keep disk read-only when re-reading partition
If the read-only flag is true on a SCSI disk, re-reading the partition table sets the flag back to false. To observe this bug, you can run: 1. blockdev --setro /dev/sda 2. blockdev --rereadpt /dev/sda 3. blockdev --getro /dev/sda This commit reads the disk's old state and combines it with the device disk-reported state rather than unconditionally marking it as RW. Reported-by: Li Ning <lining916740672@icloud.com> Signed-off-by: Jeremy Cline <jeremy@jcline.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/media/v4l2-core/videobuf2-v4l2.c')
0 files changed, 0 insertions, 0 deletions