]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: only free the TSO header buffers when it was allocated
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Mon, 11 Dec 2017 08:13:25 +0000 (09:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2017 16:16:50 +0000 (11:16 -0500)
commitc3286817c17d1737fa538d5fd5382a4fa7ba2723
treeeb553d801922388dcc8f86d42cc2ad004d81f30f
parent9e6f6c3887b92042b0e8f1dbb4e4b47472cb64eb
net: mvpp2: only free the TSO header buffers when it was allocated

This patch adds a check to only free the TSO header buffer when its
allocation previously succeeded.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c