linux/drivers/net/wireless
Shahar S Matityahu 0ec7bfb26a iwlwifi: dbg_ini: remove redundant dram buffer allocation
There are several flows in that can cause redundant allocation.

In case the driver reaches the maximum amount of blocks allowed, it
allocates the buffer and only then checks if it reached the maximum
amount of blocks and return without freeing the buffer,
causing a memory leak.

Solve this by moving the check of the amount of buffers being used
before the allocation.

In case there was an assert, the apply points are being reused,
causing that for each assert, the driver allocates a new redundant
buffer.

Solve this by adding a new is_alloc field to indicate if the driver
already allocated memory for the requested buffer.

Also, split iwl_fw_dbg_buffer_allocation function into
iwl_fw_dbg_buffer_allocation and iwl_fw_dbg_buffer_apply
to increase the clearity of the flow.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: d47902f9f7 ("iwlwifi: dbg: add apply point logic")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-02-04 12:28:06 +02:00
..
admtek
ath wireless: remove unneeded semicolon 2019-02-01 14:25:41 +02:00
atmel atmel: Replace mdelay() with msleep() in probe_atmel_card() 2018-07-31 10:25:33 +03:00
broadcom wireless: prefix header search paths with $(srctree)/ 2019-02-01 14:42:25 +02:00
cisco Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
intel iwlwifi: dbg_ini: remove redundant dram buffer allocation 2019-02-04 12:28:06 +02:00
intersil Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-12-27 13:53:32 -08:00
marvell mwifiex: no need to check return value of debugfs_create functions 2019-02-01 14:39:57 +02:00
mediatek mt7601u: do not use WARN_ON in the datapath 2019-02-01 14:41:19 +02:00
quantenna qtnfmac: no need to check return value of debugfs_create functions 2019-02-01 14:34:13 +02:00
ralink rt2x00: no need to check return value of debugfs_create functions 2019-02-01 14:38:54 +02:00
realtek wireless: prefix header search paths with $(srctree)/ 2019-02-01 14:42:25 +02:00
rsi rsi: no need to check return value of debugfs_create functions 2019-02-01 14:38:21 +02:00
st cw1200: no need to check return value of debugfs_create functions 2019-02-01 14:34:56 +02:00
ti wl18xx: no need to check return value of debugfs_create functions 2019-02-01 14:32:20 +02:00
zydas zd1201: mark expected switch fall-through 2018-11-06 19:00:12 +02:00
Kconfig mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
mac80211_hwsim.c This time we have too many changes to list, highlights: 2018-12-19 08:36:18 -08:00
mac80211_hwsim.h mac80211_hwsim: allow configurable cipher types 2018-11-09 11:36:15 +01:00
Makefile mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
ray_cs.c wireless: remove unneeded semicolon 2019-02-01 14:25:41 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c wireless-drivers: use BIT_ULL for NL80211_STA_INFO_ attribute types 2018-06-27 19:07:39 +03:00
virt_wifi.c mac80211-next: rtnetlink wifi simulation device 2018-12-05 15:31:31 +01:00
wl3501_cs.c
wl3501.h