summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorEverest K.C <everestkc@everestkc.com.np>2024-11-13 02:36:06 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-08 11:58:18 +0300
commit78b366aa0e81660e4980507ec146f0b27904ff6b (patch)
treefbb34f4019f672eb45b813d66d8036a543ff18c0 /scripts/generate_rust_analyzer.py
parent698943070ea716cadd73636a0e590ed66ae1ea4c (diff)
downloadlinux-78b366aa0e81660e4980507ec146f0b27904ff6b.tar.xz
xfrm: Add error handling when nla_put_u32() returns an error
commit 9d287e70c51f1c141ac588add261ed2efdd6fc6b upstream. Error handling is missing when call to nla_put_u32() fails. Handle the error when the call to nla_put_u32() returns an error. The error was reported by Coverity Scan. Report: CID 1601525: (#1 of 1): Unused value (UNUSED_VALUE) returned_value: Assigning value from nla_put_u32(skb, XFRMA_SA_PCPU, x->pcpu_num) to err here, but that stored value is overwritten before it can be used Fixes: 1ddf9916ac09 ("xfrm: Add support for per cpu xfrm state handling.") Signed-off-by: Everest K.C. <everestkc@everestkc.com.np> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions