public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix crash in aic79xx probing in scsi-misc when no hardware is present
@ 2005-08-31  8:45 Andi Kleen
  2005-08-31 13:29 ` James Bottomley
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2005-08-31  8:45 UTC (permalink / raw)
  To: linux-scsi


aic79xx in scsi-misc would oops when no hardware was present.
Reason was a duplicated call to free the spi transport object -
it was done both in ahd_linux_exit and in the cleanup part
of ahd_linux_init.

Just remove the superfluous call.

Signed-off-by: Andi Kleen <ak@suse.de>

Index: linux-2.6.13/drivers/scsi/aic7xxx/aic79xx_osm.c
===================================================================
--- linux-2.6.13.orig/drivers/scsi/aic7xxx/aic79xx_osm.c
+++ linux-2.6.13/drivers/scsi/aic7xxx/aic79xx_osm.c
@@ -2771,7 +2771,6 @@ ahd_linux_init(void)
 				      sizeof(struct ahd_linux_device));
 	if (ahd_linux_detect(&aic79xx_driver_template) > 0)
 		return 0;
-	spi_release_transport(ahd_linux_transport_template);
 	ahd_linux_exit();
 	return -ENODEV;
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix crash in aic79xx probing in scsi-misc when no hardware is present
  2005-08-31  8:45 [PATCH] Fix crash in aic79xx probing in scsi-misc when no hardware is present Andi Kleen
@ 2005-08-31 13:29 ` James Bottomley
  0 siblings, 0 replies; 2+ messages in thread
From: James Bottomley @ 2005-08-31 13:29 UTC (permalink / raw)
  To: Andi Kleen; +Cc: SCSI Mailing List

On Wed, 2005-08-31 at 10:45 +0200, Andi Kleen wrote:
> aic79xx in scsi-misc would oops when no hardware was present.
> Reason was a duplicated call to free the spi transport object -
> it was done both in ahd_linux_exit and in the cleanup part
> of ahd_linux_init.
> 
> Just remove the superfluous call.

Actually, the fix is slightly wrong.  The correct thing to do is remove
ahd_linux_exit() (It really does nothing in the failure case except
release the transport) which is an __exit function.

The one I plan to push is here:

http://www.kernel.org/git/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=a80b3424d9fde3c4b6d62adaf6dda78128dc5c27

James



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-31 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-31  8:45 [PATCH] Fix crash in aic79xx probing in scsi-misc when no hardware is present Andi Kleen
2005-08-31 13:29 ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox