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]
Message-ID: <Pine.LNX.4.64.0707311645340.31337@schroedinger.engr.sgi.com>
Date:	Tue, 31 Jul 2007 16:46:06 -0700 (PDT)
From:	Christoph Lameter <clameter@....com>
To:	Mariusz Kozlowski <m.kozlowski@...land.pl>
cc:	linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>,
	tony.olech@...ndigitalsystems.com,
	linux-usb-devel@...ts.sourceforge.net
Subject: Re: [PATCH 25] drivers/usb/misc/ftdi-elan.c: kmalloc + memset
 conversion to kzalloc

On Tue, 31 Jul 2007, Mariusz Kozlowski wrote:

> @@ -2777,12 +2777,14 @@ static int ftdi_elan_probe(struct usb_in
>          size_t buffer_size;
>          int i;
>          int retval = -ENOMEM;
> -        struct usb_ftdi *ftdi = kmalloc(sizeof(struct usb_ftdi), GFP_KERNEL);
> -        if (ftdi == NULL) {
> +        struct usb_ftdi *ftdi;
> +
> +	ftdi = kzalloc(sizeof(struct usb_ftdi), GFP_KERNEL);
> +	if (!ftdi) {

Whitespace damage soewhere?

-
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