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>
        size_t size;
        u64 addr;
 
-       temp = kzalloc(fw->size, GFP_KERNEL);
+       temp = vzalloc(fw->size);
        if (!temp) {
                release_firmware(fw);
                fw_info->fw = NULL;
 exit:
        release_firmware(fw);
        fw_info->fw = NULL;
-       kfree(temp);
+       vfree(temp);
 
        return ret;
 }