aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2022-11-29 09:43:47 +0000
committerPaolo Abeni <[email protected]>2022-12-01 11:12:23 +0000
commit682f560b8a87bfdf174e836640e6ec66a2b3cd9c (patch)
treeb4286c716fd01ff5746111e75d7bc714d6480a77 /net/ipv4/tcp_ipv4.c
parentbonding: uninitialized variable in bond_miimon_inspect() (diff)
downloadkernel-682f560b8a87bfdf174e836640e6ec66a2b3cd9c.tar.gz
kernel-682f560b8a87bfdf174e836640e6ec66a2b3cd9c.zip
net: microchip: sparx5: Fix error handling in vcap_show_admin()
If vcap_dup_rule() fails that leads to an error pointer dereference side the call to vcap_free_rule(). Also it only returns an error if the very last call to vcap_read_rule() fails and it returns success for other errors. I've changed it to just stop printing after the first error and return an error code. Fixes: 3a7921560d2f ("net: microchip: sparx5: Add VCAP rule debugFS support for the VCAP API") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Steen Hegelund <[email protected]> Link: https://lore.kernel.org/r/Y4XUUx9kzurBN+BV@kili Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions