Commit 01c7129b authored by Rusty Russell's avatar Rusty Russell Committed by James Bottomley

[PATCH] [Trivial Patch] scsi_register-002

From:  Michael Still <mikal@stillhq.com>


  This patch has been generated as part of my scsi_register audit of the 2.5.45 kernel tree. scsi_register() can fail, returning a NULL pointer, and the failure case was not being handled here...
parent 792ad1ea
......@@ -204,6 +204,9 @@ static int aac_detect(Scsi_Host_Template *template)
* specific information.
*/
host_ptr = scsi_register( template, sizeof(struct aac_dev) );
if(host_ptr == NULL)
continue;
/*
* These three parameters can be used to allow for wide SCSI
* and for host adapters that support multiple buses.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment