Re: [PATCH] net: af_key: add check for pfkey_broadcast in function pfkey_process

From: Steffen Klassert
Date: Wed May 18 2022 - 04:18:16 EST


On Tue, May 17, 2022 at 05:42:31PM +0800, Jiasheng Jiang wrote:
> If skb_clone() returns null pointer, pfkey_broadcast() will
> return error.
> Therefore, it should be better to check the return value of
> pfkey_broadcast() and return error if fails.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Jiasheng Jiang <jiasheng@xxxxxxxxxxx>

Applied, thanks!