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)
commitb70d4a5195c7193d1d55af791d9811477522e25a
treeeb553d801922388dcc8f86d42cc2ad004d81f30f
parent48d79b49e16831e613b67dccd4c7886081161656
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