704a940d55
In the case where the call tb_switch_exceeds_max_depth is true
the error reurn path leaks memory in sw. Fix this by setting
the return error code to -EADDRNOTAVAIL and returning via the
error exit path err_free_sw_ports to free sw. sw has been kzalloc'd
so the free of the NULL sw->ports is fine.
Addresses-Coverity: ("Resource leak")
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
cap.c | ||
ctl.c | ||
ctl.h | ||
dma_port.c | ||
dma_port.h | ||
domain.c | ||
eeprom.c | ||
icm.c | ||
lc.c | ||
nhi.c | ||
nhi.h | ||
nhi_ops.c | ||
nhi_regs.h | ||
path.c | ||
property.c | ||
switch.c | ||
tb.c | ||
tb.h | ||
tb_msgs.h | ||
tb_regs.h | ||
tmu.c | ||
tunnel.c | ||
tunnel.h | ||
usb4.c | ||
xdomain.c |