lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 26 Jul 2006 09:22:14 -0500
From:	"Miller, Mike (OS Dev)" <Mike.Miller@...com>
To:	"Helgaas, Bjorn" <bjorn.helgaas@...com>,
	"Andrew Morton" <akpm@...l.org>
Cc:	"ISS StorageDev" <iss_storagedev@...com>,
	<linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] CCISS: Don't print driver version until we actually find a device

 

> -----Original Message-----
> From: Helgaas, Bjorn 
> Sent: Tuesday, July 25, 2006 5:37 PM
> To: Andrew Morton
> Cc: Miller, Mike (OS Dev); ISS StorageDev; 
> linux-kernel@...r.kernel.org
> Subject: [PATCH] CCISS: Don't print driver version until we 
> actually find a device
> 
> If we don't find any devices, we shouldn't print anything.
> 
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@...com>

Acked-by: Mike Miller <mike.miller@...com>

> 
> Index: work-mm2/drivers/block/cciss.c
> ===================================================================
> --- work-mm2.orig/drivers/block/cciss.c	2006-07-20 
> 16:27:34.000000000 -0600
> +++ work-mm2/drivers/block/cciss.c	2006-07-25 
> 16:16:27.000000000 -0600
> @@ -3109,12 +3109,16 @@
>  static int __devinit cciss_init_one(struct pci_dev *pdev,
>  				    const struct pci_device_id *ent)  {
> +	static int cciss_version_printed = 0;
>  	request_queue_t *q;
>  	int i;
>  	int j;
>  	int rc;
>  	int dac;
>  
> +	if (cciss_version_printed++ == 0)
> +		printk(KERN_INFO DRIVER_NAME "\n");
> +
>  	i = alloc_cciss_hba();
>  	if (i < 0)
>  		return -1;
> @@ -3370,9 +3374,6 @@
>   */
>  static int __init cciss_init(void)
>  {
> -	printk(KERN_INFO DRIVER_NAME "\n");
> -
> -	/* Register for our PCI devices */
>  	return pci_register_driver(&cciss_pci_driver);
>  }
>  
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ