]> git.baikalelectronics.ru Git - kernel.git/commit
net: af_key: add check for pfkey_broadcast in function pfkey_process
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 17 May 2022 09:42:31 +0000 (17:42 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 18 May 2022 07:23:54 +0000 (09:23 +0200)
commit3589ef78a95cacf0699971aa4c3a550aa8b6dbe9
treeb2a50cb788a872e1854f12e8d03ae0ca629be62f
parent7fed1a8a3596b95f33c22636354b704632af9b6b
net: af_key: add check for pfkey_broadcast in function pfkey_process

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@iscas.ac.cn>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/key/af_key.c