]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iwlwifi: pcie: fix context info memory leak
authorJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jan 2021 11:05:56 +0000 (13:05 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 25 Jan 2021 13:53:06 +0000 (15:53 +0200)
commit2d6bc752cc2806366d9a4fd577b3f6c1f7a7e04e
tree96091f080593fc6f29b5b32e4bfe307574107c63
parent98c7d21f957b10d9c07a3a60a3a5a8f326a197e5
iwlwifi: pcie: fix context info memory leak

If the image loader allocation fails, we leak all the previously
allocated memory. Fix this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20210115130252.97172cbaa67c.I3473233d0ad01a71aa9400832fb2b9f494d88a11@changeid
drivers/net/wireless/intel/iwlwifi/pcie/ctxt-info-gen3.c