iwlwifi: dbg_ini: allocate dram buffer with proper flags
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Mon, 26 Nov 2018 09:19:00 +0000 (11:19 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 29 Jan 2019 14:10:33 +0000 (16:10 +0200)
commit07a44b322397b1a5e8c96ceef8ce352fe79ac7ee
tree501b6c2046c0c5af2246a8a38b8a0ca493f472c9
parent40ecdd01d46e67fddff4407f7c37554d9640d1ea
iwlwifi: dbg_ini: allocate dram buffer with proper flags

Use the same flags we use in the legacy buffer allocation.
Missing __GFP_NOWARN will cause an unwanted warning incase
we fail to allocate.
Missing __GFP_ZERO will give a buffer initially filled with
garbage which can make debug difficult in case our wrap count is zero.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: d47902f9f71d ("iwlwifi: dbg: add apply point logic")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c