diff options
| author | Dan Carpenter <[email protected]> | 2017-03-23 10:40:00 +0000 |
|---|---|---|
| committer | Luca Coelho <[email protected]> | 2017-03-24 15:15:25 +0000 |
| commit | 251fe09f13bfb54c1ede66ee8bf8ddd0061c4f7c (patch) | |
| tree | 60b08dcc4a18caeec4c72c9fae59307c2fe2d579 /drivers/gpu/drm/amd/amdgpu/atom.c | |
| parent | iwlwifi: mvm: fix accessing fw_id_to_mac_id (diff) | |
| download | kernel-251fe09f13bfb54c1ede66ee8bf8ddd0061c4f7c.tar.gz kernel-251fe09f13bfb54c1ede66ee8bf8ddd0061c4f7c.zip | |
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: c91b865cb14d ("iwlwifi: mvm: support description for user triggered fw dbg collection")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions
