OSDN Git Service

iwlwifi: dbg_ini: use vzalloc to allocate dumping memory regions
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Sun, 4 Aug 2019 11:06:45 +0000 (14:06 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 25 Oct 2019 07:10:19 +0000 (10:10 +0300)
commit6abe1e2e39048ce26cbad276841b9b1b2a7e627a
tree613c61fb13027a07bbbdcc44e99d09a3d64db152
parent3b445ed9b72a8d1614a78aa31245f8c5eb9e595d
iwlwifi: dbg_ini: use vzalloc to allocate dumping memory regions

During dump flow, the driver allocates spaces to store the memory
regions that will be included in the dump. These regions can be very
large so in order to avoid allocation failure, use vzalloc instead.
The kmalloc uses GFP_KERNEL and the driver does not make any use of the
fact that the memory is contiguous so the same functionality is
maintained.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c