mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 14:16:31 +00:00
scst_vdisk: shared FD must be open with the least restricted mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6533 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1741,7 +1741,7 @@ static int vdisk_attach_tgt(struct scst_tgt_dev *tgt_dev)
|
||||
goto out;
|
||||
|
||||
if (!virt_dev->nullio && !virt_dev->cdrom_empty) {
|
||||
res = vdisk_open_fd(virt_dev, tgt_dev->tgt_dev_rd_only);
|
||||
res = vdisk_open_fd(virt_dev, tgt_dev->dev->dev_rd_only);
|
||||
if (res != 0) {
|
||||
virt_dev->tgt_dev_cnt--;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user