linux_dsm_epyc7002/drivers/net/wireless/intel
Dan Carpenter 251fe09f13 iwlwifi: mvm: writing zero bytes to debugfs causes a crash
This is a static analysis fix.  The warning is:

	drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c:912 iwl_mvm_fw_dbg_collect()
	warn: integer overflows 'sizeof(*desc) + len'

I guess this code is supposed to take a NUL character, but if we write
zero bytes then it tries to write -1 characters and crashes.

Fixes: c91b865cb1 ("iwlwifi: mvm: support description for user triggered fw dbg collection")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2017-03-24 17:15:25 +02:00
..
ipw2x00 scripts/spelling.txt: add "disassocation" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
iwlegacy lib/vsprintf.c: remove %Z support 2017-02-27 18:43:47 -08:00
iwlwifi iwlwifi: mvm: writing zero bytes to debugfs causes a crash 2017-03-24 17:15:25 +02:00
Kconfig
Makefile