bnx2x: fix pf2vf bulletin DMA mapping leak
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 6 Jun 2017 14:30:31 +0000 (16:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jun 2017 16:59:42 +0000 (12:59 -0400)
commit996652c7050c70008e4434af108be6f15f20fbd0
treec97cac91476b8bdffea2ea004b839883a3793013
parentc28294b941232931fbd714099798eb7aa7e865d7
bnx2x: fix pf2vf bulletin DMA mapping leak

When freeing VF's DMA mappings, an already NULLed pointer was checked
again due to an apparent copy&paste error. Consequently, the pf2vf
bulletin DMA mapping was not freed.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c