]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Don't use kzalloc unncecessarily for allocating large chunk of memory
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Fri, 7 Aug 2015 11:17:06 +0000 (07:17 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2015 20:34:28 +0000 (13:34 -0700)
commitbbfd34015ec255dc5876de4e7e943394c6079882
treea9a2e73ef13b8ca4be486a279c57dc3f549183c2
parentd74f830f77e059148cca5fe0c0a2eb3550fdf545
qlcnic: Don't use kzalloc unncecessarily for allocating large chunk of memory

Driver allocates a large chunk of temporary buffer using kzalloc
to copy FW image. As there is no real need of this memory to be
physically contiguous, use vzalloc instead.

Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c