RE: Kernel OOPS with aacraid driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > BTW, this says that this is the second oops:  "[#2]".
> > What was the first one?
> Apr 21 10:53:27 www adaptec-smbe: aiomgrd startup succeeded
> Apr 21 10:53:27 www kernel: Unable to handle kernel NULL 
> pointer dereference 
> at virtual address 00000034

Seems to me like someone is issuing IOCTL's against devices that do
not exist. Does this patch against linux-2.6.12-rc3 make sense and
applicable to you?

Seems like aac_cfg_open() will return success even if it fails? This
patch fixes it to actually return error.

Regards,
Rayan

diff -Nupr -X dontdiff linux-2.6.12-rc3.a/drivers/scsi/aacraid/linit.c
linux-2.6.12-rc3.b/drivers/scsi/aacraid/linit.c
--- linux-2.6.12-rc3.a/drivers/scsi/aacraid/linit.c	2005-04-21
23:56:31.000000000 -0700
+++ linux-2.6.12-rc3.b/drivers/scsi/aacraid/linit.c	2005-04-21
23:57:26.000000000 -0700
@@ -450,7 +450,7 @@ static int aac_cfg_open(struct inode *in
 		}
 	}
 
-	return 0;
+	return err;
 }
 
 /**
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux