summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorEverest K.C <everestkc@everestkc.com.np>2024-11-13 02:36:06 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2024-11-14 10:23:15 +0300
commit9d287e70c51f1c141ac588add261ed2efdd6fc6b (patch)
tree6c996928303226e6527da828151f282bf2f87722 /tools/perf/scripts/python/exported-sql-viewer.py
parentaf2c4fa559725ee583fe0689cddca58ef95ff0d5 (diff)
downloadlinux-9d287e70c51f1c141ac588add261ed2efdd6fc6b.tar.xz
xfrm: Add error handling when nla_put_u32() returns an error
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions