aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorJohannes Berg <[email protected]>2022-02-08 11:47:30 +0100
committerKalle Valo <[email protected]>2022-02-10 10:16:27 +0200
commitbea2662e7818e15d7607d17d57912ac984275d94 (patch)
tree125cf879de9bdf031ab9a3b8be5b065e2a802138 /lib/test_overflow.c
parentf0a6fd1527067da537e9c48390237488719948ed (diff)
iwlwifi: fix use-after-free
If no firmware was present at all (or, presumably, all of the firmware files failed to parse), we end up unbinding by calling device_release_driver(), which calls remove(), which then in iwlwifi calls iwl_drv_stop(), freeing the 'drv' struct. However the new code I added will still erroneously access it after it was freed. Set 'failure=false' in this case to avoid the access, all data was already freed anyway. Cc: [email protected] Reported-by: Stefan Agner <[email protected]> Reported-by: Wolfgang Walter <[email protected]> Reported-by: Jason Self <[email protected]> Reported-by: Dominik Behr <[email protected]> Reported-by: Marek Marczykowski-Górecki <[email protected]> Fixes: ab07506b0454 ("iwlwifi: fix leaks/bad data after failed firmware load") Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/20220208114728.e6b514cf4c85.Iffb575ca2a623d7859b542c33b2a507d01554251@changeid
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions