Skip to content
Snippets Groups Projects
user avatar
Christophe Jaillet authored
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: 54139cf3 ("net: stmmac: adding multiple buffers for rx")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarGiuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
63c3aa6b
History
Name Last commit Last update