scsi_register-002
Subsystems (2)
PATCH 1/1 scsi_register-002
(Included in 2.5)
From: Michael Still <[email protected]>
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...
drivers/scsi/aacraid/linit.c renamed from drivers/scsi/aacraid/linit.c.orig +3 -0
@@ -203,6 +203,9 @@* 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.
Signature · 3 lines
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/ Don't blame me: the Monkey is driving File: Michael Still <[email protected]>: [Trivial Patch] scsi_register-002
Quoted 5 lines · Rusty Trivial Russell
(Included in 2.5)
From: Michael Still <[email protected]>This patch has been generated as part of my
scsi_registeraudit of the 2.5.45 kernel tree.scsi_register()can fail, returning a NULL pointer, and the failure case was not being handled here...
Fix is subtly wrong because of aac_count, fixed up in my tree will push to Marcelo with the rest of the aacraid updates soon
In message <[email protected]> you write:
Quoted 6 lines · Rusty Trivial Russell
Quoted 5 lines
(Included in 2.5)
From: Michael Still <[email protected]>This patch has been generated as part of my
scsi_registeraudit of the 2.
5.45 kernel tree. scsi_register() can fail, returning a NULL pointer, and the f ailure case was not being handled here...
Quoted 3 lines
Fix is subtly wrong because of
aac_count, fixed up in my tree will push to Marcelo with the rest of the aacraid updates soon
Are you planning on updating the 2.5 one too? This patch went in 2.5, as indicated above, which is bad...
Thanks!
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.