Re: [PATCH] cfg80211: delete redundant free code

From: Johannes Berg
Date: Mon Nov 15 2021 - 04:24:57 EST


On Mon, 2021-11-15 at 17:21 +0800, liuguoqiang wrote:
> When kzalloc failed and rdev->sacn_req or rdev->scan_msg is null, pass a
> null pointer to kfree is redundant, delete it and return directly.
>

Arguably then we should not set creq=NULL at the beginning?

johannes