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]
Message-Id: <200707311616.07364.borntraeger@de.ibm.com>
Date:	Tue, 31 Jul 2007 16:16:07 +0200
From:	Christian Borntraeger <borntraeger@...ibm.com>
To:	jack@...keye.stone.uk.eu.org
Cc:	linux-kernel@...r.kernel.org, trivial@...nel.org,
	David Miller <davem@...emloft.net>
Subject: Re: [Patch 11/16] Remove unnecessary kmalloc casts in drivers/net.

Am Dienstag, 31. Juli 2007 schrieb jack@...keye.stone.uk.eu.org:
> --- a/drivers/net/lance.c
> +++ b/drivers/net/lance.c
[...]
> -	lp->rx_buffs = (unsigned long)kmalloc(PKT_BUF_SZ*RX_RING_SIZE,
> -						  GFP_DMA | GFP_KERNEL);
> +	lp->rx_buffs = kmalloc(PKT_BUF_SZ*RX_RING_SIZE, GFP_DMA | GFP_KERNEL);
[...]
> --- a/drivers/net/sgiseeq.c
> +++ b/drivers/net/sgiseeq.c
[...]
> -			buffer = (unsigned long) kmalloc(PKT_BUF_SZ, GFP_KERNEL);
> +			buffer = kmalloc(PKT_BUF_SZ, GFP_KERNEL);
[...]
> -			buffer = (unsigned long) kmalloc(PKT_BUF_SZ, GFP_KERNEL);
> +			buffer = kmalloc(PKT_BUF_SZ, GFP_KERNEL);

See the comments to the other patches. The cast is necessary.
-
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