iwlwifi: actually check allocated conf_tlv pointer
Commit
a31c8943c400 ("iwlwifi: check allocated pointer when allocating
conf_tlvs") attempted to fix a typoe introduced by commit
0c6d2ea9d1cc
("iwlwifi: dbg: move debug data to a struct") but does not implement the
check correctly.
Fixes: a31c8943c400 ("iwlwifi: check allocated pointer when allocating conf_tlvs")
Tweeted-by: @grsecurity
Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200417074558.12316-1-sedat.dilek@gmail.com