diff options
| author | Daniel Gabay <daniel.gabay@intel.com> | 2023-04-13 21:40:34 +0300 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2023-04-14 13:14:51 +0200 |
| commit | ba30415118eee374a08b39a0460a1d1e52c24a25 (patch) | |
| tree | 99411862c0dc506f1aaf37e566ffcdd3b2800f03 /drivers/net/wireless/intel/iwlwifi/fw/api/scan.h | |
| parent | 11195ab0d6f3202cf7af1a4c69570f59c377d8ad (diff) | |
wifi: iwlwifi: yoyo: Fix possible division by zero
Don't allow buffer allocation TLV with zero req_size since it
leads later to division by zero in iwl_dbg_tlv_alloc_fragments().
Also, NPK/SRAM locations are allowed to have zero buffer req_size,
don't discard them.
Fixes: a9248de42464 ("iwlwifi: dbg_ini: add TLV allocation new API support")
Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230413213309.5d6688ed74d8.I5c2f3a882b50698b708d54f4524dc5bdf11e3d32@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/api/scan.h')
0 files changed, 0 insertions, 0 deletions