Messages in this thread | | | Subject | Re: [PATCH] ath11k: Fix pointer dereferenced before checking | From | Kalle Valo <> | Date | Wed, 18 May 2022 07:21:17 +0000 (UTC) |
| |
Haowen Bai <baihaowen@meizu.com> wrote:
> The pointer sspec is dereferencing pointer sar before sar is being > null checked. Fix this by assigning sar->sub_specs to sspec only if > sar is not NULL, otherwise just NULL. The code has checked sar whether > it is NULL or not as below, but use before checking. > > Signed-off-by: Haowen Bai <baihaowen@meizu.com>
I prefer Baochen's version:
https://patchwork.kernel.org/project/linux-wireless/patch/20220517004844.2412660-1-quic_bqiang@quicinc.com/
Patch set to Superseded.
-- https://patchwork.kernel.org/project/linux-wireless/patch/1652671437-20235-1-git-send-email-baihaowen@meizu.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
| |