summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2018-05-10 09:06:04 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-10 17:46:45 -0400
commita577d868b768a3baf16cdd4841ab8cfb165521d6 (patch)
tree3e090ecd45bd18ae2befdb161dda260d737418ed /net
parent97f3efb64323beb0690576e9d74e94998ad6e82a (diff)
downloadlinux-a577d868b768a3baf16cdd4841ab8cfb165521d6.tar.bz2
net/mlx4_en: Fix an error handling path in 'mlx4_en_init_netdev()'
If an error occurs, 'mlx4_en_destroy_netdev()' is called. It then calls 'mlx4_en_free_resources()' which does the needed resources cleanup. So, doing some explicit kfree in the error handling path would lead to some double kfree. Simplify code to avoid such a case. Fixes: 67f8b1dcb9ee ("net/mlx4_en: Refactor the XDP forwarding rings scheme") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions