mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
scst_vdisk: Handle attach failures properly (follow-up for r5525)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5526 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1287,7 +1287,8 @@ static int vdisk_attach(struct scst_device *dev)
|
||||
|
||||
dev->dev_rd_only = virt_dev->rd_only;
|
||||
|
||||
if (vdisk_reexamine(virt_dev) < 0)
|
||||
res = vdisk_reexamine(virt_dev);
|
||||
if (res < 0)
|
||||
goto out;
|
||||
|
||||
if (!virt_dev->cdrom_empty) {
|
||||
|
||||
Reference in New Issue
Block a user