Haowen Bai <baihaowen@xxxxxxxxx> 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@xxxxxxxxx> I prefer Baochen's version: https://patchwork.kernel.org/project/linux-wireless/patch/20220517004844.2412660-1-quic_bqiang@xxxxxxxxxxx/ Patch set to Superseded. -- https://patchwork.kernel.org/project/linux-wireless/patch/1652671437-20235-1-git-send-email-baihaowen@xxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches