mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-04 12:15:31 +07:00
8e6ce7ebeb
The label lio_xmit_failed is used 3 times through liquidio_xmit() but it
always makes a call to dma_unmap_single() using potentially
uninitialized variables from "ndata" variable. Out of the 3 gotos, 2 run
after ndata has been initialized, and had a prior dma_map_single() call.
Fix this by adding a new error label: lio_xmit_dma_failed which does
this dma_unmap_single() and then processed with the lio_xmit_failed
fallthrough.
Fixes:
|
||
---|---|---|
.. | ||
cn66xx_device.c | ||
cn66xx_device.h | ||
cn66xx_regs.h | ||
cn68xx_device.c | ||
cn68xx_device.h | ||
cn68xx_regs.h | ||
lio_ethtool.c | ||
lio_main.c | ||
liquidio_common.h | ||
liquidio_image.h | ||
Makefile | ||
octeon_config.h | ||
octeon_console.c | ||
octeon_device.c | ||
octeon_device.h | ||
octeon_droq.c | ||
octeon_droq.h | ||
octeon_iq.h | ||
octeon_main.h | ||
octeon_mem_ops.c | ||
octeon_mem_ops.h | ||
octeon_network.h | ||
octeon_nic.c | ||
octeon_nic.h | ||
request_manager.c | ||
response_manager.c | ||
response_manager.h |