[PATCH -next] lsm_audit: Clean up redundant NULL pointer check

xiujianfeng xiujianfeng at huawei.com
Tue Jun 28 07:29:02 UTC 2022


Hi,

在 2022/6/15 10:07, Paul Moore 写道:
> On Tue, Jun 14, 2022 at 8:13 AM Xiu Jianfeng <xiujianfeng at huawei.com> wrote:
>> The implements of {ip,tcp,udp,dccp,sctp,ipv6}_hdr(skb) guarantee that
>> they will never return NULL, and elsewhere user don't do the check
>> as well, so remove the check here.
>>
>> Signed-off-by: Xiu Jianfeng <xiujianfeng at huawei.com>
>> ---
>>   security/lsm_audit.c | 14 +-------------
>>   1 file changed, 1 insertion(+), 13 deletions(-)
> Reviewed-by: Paul Moore <paul at paul-moore.com>
Thanks for the review, and kindly ping here ...



More information about the Linux-security-module-archive mailing list