[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140113.111750.1356628971361206390.davem@davemloft.net>
Date: Mon, 13 Jan 2014 11:17:50 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: joe@...ches.com
Cc: jitendra.kalsaria@...gic.com, linux-driver@...gic.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] qlcnic: Convert vmalloc/memset to kcalloc
From: Joe Perches <joe@...ches.com>
Date: Wed, 08 Jan 2014 22:42:25 -0800
> vmalloc is a limited resource. Don't use it unnecessarily.
>
> It seems this allocation should work with kcalloc.
>
> Remove unnecessary memset(,0,) of buf as it's completely
> overwritten as the previously only unset field in
> struct qlcnic_pci_func_cfg is now set to 0.
>
> Use kfree instead of vfree.
> Use ETH_ALEN instead of 6.
>
> Signed-off-by: Joe Perches <joe@...ches.com>
Applied, thanks Joe.
--
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