mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-27 21:21:05 +07:00
![]() In the cases where len is too long, the error return path fails to
kfree allocated buffers buf and usb_reg_buf. The simplest fix is to
perform the sanity check on len before the allocations to avoid having
to do the kfree'ing in the first place.
Detected by CoverityScan, CID#1452258,1452259 ("Resource Leak")
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
rsi_91x_core.c | ||
rsi_91x_debugfs.c | ||
rsi_91x_hal.c | ||
rsi_91x_mac80211.c | ||
rsi_91x_main.c | ||
rsi_91x_mgmt.c | ||
rsi_91x_ps.c | ||
rsi_91x_sdio_ops.c | ||
rsi_91x_sdio.c | ||
rsi_91x_usb_ops.c | ||
rsi_91x_usb.c | ||
rsi_boot_params.h | ||
rsi_common.h | ||
rsi_debugfs.h | ||
rsi_hal.h | ||
rsi_main.h | ||
rsi_mgmt.h | ||
rsi_ps.h | ||
rsi_sdio.h | ||
rsi_usb.h |