iwlwifi: queue: bail out on invalid freeing
authorJohannes Berg <johannes.berg@intel.com>
Fri, 22 Jan 2021 12:52:42 +0000 (14:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Feb 2021 12:55:11 +0000 (13:55 +0100)
commit6fb6d5410e415b8b4ea6020fd2f8539fe7527b61
treee6a8ccfcb20a70dd4656b2c2fd94913f646db3fc
parent38da9b033becfb61e8d045a5f3d2ff4fc9f90f9b
iwlwifi: queue: bail out on invalid freeing

[ Upstream commit 0bed6a2a14afaae240cc431e49c260568488b51c ]

If we find an entry without an SKB, we currently continue, but
that will just result in an infinite loop since we won't increment
the read pointer, and will try the same thing over and over again.
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.20210122144849.abe2dedcc3ac.Ia6b03f9eeb617fd819e56dd5376f4bb8edc7b98a@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/queue/tx.c