aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/diskonchip.c
diff options
context:
space:
mode:
authorChristophe Jaillet2017-07-08 09:46:43 +0200
committerDavid S. Miller2017-07-11 13:33:53 -0700
commit6941f7cc71a719089f7add4afc82bb80fc5a281d (patch)
tree92596128cbe6fe7127fd5e4f2872de0d315239eb /drivers/mtd/nand/diskonchip.c
parent63c3aa6b68782ee5ddb6588d95aacf1ab33e528b (diff)
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: ce736788e8a9 ("net: stmmac: adding multiple buffers for TX") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mtd/nand/diskonchip.c')
0 files changed, 0 insertions, 0 deletions