iwlwifi: mvm: use dev_coredumpsg()
authorAviya Erenfeld <aviya.erenfeld@intel.com>
Tue, 20 Sep 2016 15:07:44 +0000 (18:07 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 26 Oct 2016 08:04:15 +0000 (11:04 +0300)
commit7e62a699aafbd97928f19a8356d719b71b0e151c
tree2c9444b32c6013f70cf573e129771ea232c402aa
parent7948b87308a489c2caa23574ea3c72298288c374
iwlwifi: mvm: use dev_coredumpsg()

iwlmvm currently uses dev_coredumpm() to collect multiple
buffers, but this has the downside of pinning the module
until the coredump expires, if the data isn't read by any
userspace.

Avoid this by using the new dev_coredumpsg() method. We
still copy the data from the old way of generating it, but
neither hold on to vmalloc'ed data for a long time, nor do
we pin the module now.

Signed-off-by: Aviya Erenfeld <aviya.erenfeld@intel.com>
[rewrite commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c