Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: stmmac: Fix error handling path in 'alloc_dma_tx_desc_resources()'
If the first 'kmalloc_array' within the loop fails, we should free what as already been allocated, as done in all other error handling path. Fixes: ce73678 ("net: stmmac: adding multiple buffers for TX") Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Giuseppe Cavallaro <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information