浏览代码

[SCSI] aacraid: Fix adapter open error

This fixes an error on the device open code that allows a non-existent
device to be opened causing later panic problems.

Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Mark Haverkamp 20 年之前
父节点
当前提交
036d618434
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/scsi/aacraid/linit.c

+ 1 - 1
drivers/scsi/aacraid/linit.c

@@ -450,7 +450,7 @@ static int aac_cfg_open(struct inode *inode, struct file *file)
 		}
 		}
 	}
 	}
 
 
-	return 0;
+	return err;
 }
 }
 
 
 /**
 /**