OSDN Git Service

iwlwifi: mvm: properly check for transport data in dump
authorJohannes Berg <johannes.berg@intel.com>
Thu, 20 Oct 2016 13:25:00 +0000 (15:25 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Jan 2017 07:38:55 +0000 (09:38 +0200)
commitc2e27e16f2411155b906db201b7e478144034ffe
tree050af201cbf4ccba014fc62add9dc98c3903a43a
parent5bdaa0ef77065e07be5443b3cea5224ac72c9ac0
iwlwifi: mvm: properly check for transport data in dump

When copying from vmalloc'ed memory to the SG list, don't crash
if the transport didn't provide any data.

Fixes: 7e62a699aafb ("iwlwifi: mvm: use dev_coredumpsg()")
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