kernel_optimize_test/drivers/net/netdevsim
Gustavo A. R. Silva 3902baf9ab netdevsim: dev: Fix memory leak in nsim_dev_take_snapshot_write
In case memory resources for dummy_data were allocated, release them
before return.

Addresses-Coverity-ID: 1491997 ("Resource leak")
Fixes: 7ef19d3b1d ("devlink: report error once U32_MAX snapshot ids have been used")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-30 20:14:22 -07:00
..
bpf.c
bus.c
dev.c netdevsim: dev: Fix memory leak in nsim_dev_take_snapshot_write 2020-03-30 20:14:22 -07:00
fib.c
health.c devlink: Implicitly set auto recover flag when registering health reporter 2020-03-30 11:17:34 -07:00
ipsec.c net: netdevsim: Use scnprintf() for avoiding potential buffer overflow 2020-03-15 17:06:22 -07:00
Makefile
netdev.c
netdevsim.h netdevsim: Add support for setting of packet trap group parameters 2020-03-30 17:54:58 -07:00