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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 1 Jun 2010 15:26:25 +0000
From:	"Miller, Mike (OS Dev)" <Mike.Miller@...com>
To:	Joe Perches <joe@...ches.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC:	ISS StorageDev <iss_storagedev@...com>
Subject: RE: [PATCH 04/21] drivers/block/cciss_scsi.c: Remove unnecessary
 kmalloc casts

 

> -----Original Message-----
> From: Joe Perches [mailto:joe@...ches.com] 
> Sent: Monday, May 31, 2010 10:23 PM
> To: linux-kernel@...r.kernel.org
> Cc: Miller, Mike (OS Dev); ISS StorageDev
> Subject: [PATCH 04/21] drivers/block/cciss_scsi.c: Remove 
> unnecessary kmalloc casts
> 
> Signed-off-by: Joe Perches <joe@...ches.com>

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

> ---
>  drivers/block/cciss_scsi.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/block/cciss_scsi.c 
> b/drivers/block/cciss_scsi.c index e1d0e2c..ffd8470 100644
> --- a/drivers/block/cciss_scsi.c
> +++ b/drivers/block/cciss_scsi.c
> @@ -702,8 +702,7 @@ cciss_scsi_setup(int cntl_num)
>  	struct cciss_scsi_adapter_data_t * shba;
>  
>  	ccissscsi[cntl_num].ndevices = 0;
> -	shba = (struct cciss_scsi_adapter_data_t *)
> -		kmalloc(sizeof(*shba), GFP_KERNEL);	
> +	shba = kmalloc(sizeof(*shba), GFP_KERNEL);
>  	if (shba == NULL)
>  		return;
>  	shba->scsi_host = NULL;
> --
> 1.7.0.3.311.g6a6955
> 
> --
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