Re: [PATCH 4/8] aacraid: add name to driver template

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

 



On Thu, Sep 08, 2005 at 01:50:19PM -0700, Mark Haverkamp wrote:
> Received from Mark Salyzyn from Adaptec.
> 
> This permits the system log to report the Adapter's branded name rather than
> the generic 'AAC' that it currently reports.
> 
> Applies to the scsi-misc-2.6 git tree.
> 
> Signed-off-by: Mark Haverkamp <markh@xxxxxxxx>
> 
> 
> Index: scsi-misc-aac-2/drivers/scsi/aacraid/linit.c
> ===================================================================
> --- scsi-misc-aac-2.orig/drivers/scsi/aacraid/linit.c	2005-09-08 11:32:04.000000000 -0700
> +++ scsi-misc-aac-2/drivers/scsi/aacraid/linit.c	2005-09-08 11:32:27.000000000 -0700
> @@ -765,6 +765,7 @@
>  	
>  	pci_set_master(pdev);
>  
> +	aac_driver_template.name = aac_drivers[index].name;
>  	shost = scsi_host_alloc(&aac_driver_template, sizeof(struct aac_dev));

this is broken. it overwrites the name every time a host is allocated.
Especially it does this on a live template.  Just implemented ->info

-
: 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