From: Joe Perches Date: Thu, 9 Jan 2014 06:42:25 +0000 (-0800) Subject: qlcnic: Convert vmalloc/memset to kcalloc X-Git-Tag: v3.14-rc1~94^2~230 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c0773ff2875af6497c20cf63e42c186e19eef0;p=pandora-kernel.git qlcnic: Convert vmalloc/memset to kcalloc 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 Acked-by: Jitendra Kalsaria Signed-off-by: David S. Miller --- Reading git-diff-tree failed