From: Mark Haverkamp Date: Wed, 27 Apr 2005 05:54:58 +0000 (-0700) Subject: [SCSI] aacraid: Fix adapter open error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=036d618434516103adb4d36db28a57968d2f2e7b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index c9b82687ba1..242fa77513f 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -450,7 +450,7 @@ static int aac_cfg_open(struct inode *inode, struct file *file) } } - return 0; + return err; } /**