]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipw2x00: Fix potential NULL dereference in libipw_xmit()
authorHaowen Bai <baihaowen@meizu.com>
Fri, 1 Apr 2022 07:10:54 +0000 (15:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:59:14 +0000 (16:59 +0200)
commit167affc11781d7d35c4c3a7630a549ac74dd0b21
treee5a53b60fc525d73963b06a7df3e9dd014479c27
parent456b3950a555a34c70c48792b538e61052ba1dd6
ipw2x00: Fix potential NULL dereference in libipw_xmit()

[ Upstream commit e8366bbabe1d207cf7c5b11ae50e223ae6fc278b ]

crypt and crypt->ops could be null, so we need to checking null
before dereference

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/1648797055-25730-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/ipw2x00/libipw_tx.c