mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
scst_vdisk: Fix a regression introduced by r6873
This commit is contained in:
@@ -1759,7 +1759,7 @@ static int vdisk_open_fd(struct scst_vdisk_dev *virt_dev, bool read_only)
|
||||
int res;
|
||||
|
||||
sBUG_ON(!virt_dev->filename);
|
||||
sBUG_ON(!virt_dev->fd);
|
||||
sBUG_ON(virt_dev->fd);
|
||||
|
||||
virt_dev->fd = vdev_open_fd(virt_dev, virt_dev->filename, read_only);
|
||||
if (IS_ERR(virt_dev->fd)) {
|
||||
|
||||
Reference in New Issue
Block a user