Hi,
On Tue, Jan 23, 2001 at 12:28:40AM +0100, Rasmus Andersen wrote:
> The following patch makes drivers/scsi/AM53C974.c check the return
> code of scsi_register.
>
> It applies cleanly against ac10 and 241p9.
>
> Comments?
Looks fine. Should be applied. I don't maintain the AM53C974 driver, though.
Cc: to linux-scsi and Alan therefore.
> --- linux-ac10-clean/drivers/scsi/AM53C974.c Mon Nov 13 05:40:42 2000
> +++ linux-ac10/drivers/scsi/AM53C974.c Tue Jan 23 00:03:18 2001
> @@ -676,6 +676,10 @@
> #endif
>
> instance = scsi_register(tpnt, sizeof(struct AM53C974_hostdata));
> + if (!instance) {
> + printk(KERN_WARNING "AM53C974: Unable to register host, aborting.\n");
> + return 0;
> + }
> hostdata = (struct AM53C974_hostdata *) instance->hostdata;
> instance->base = 0;
> instance->io_port = pci_resource_start(pdev, 0);
>
> --
> Regards,
> Rasmus([EMAIL PROTECTED])
Regards,
--
Kurt Garloff <[EMAIL PROTECTED]> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
PGP signature