]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Release PCI regions when DMA mask setup fails during probe.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 20 Nov 2020 07:44:31 +0000 (02:44 -0500)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Nov 2020 18:09:09 +0000 (10:09 -0800)
commitdfdce3c148af393b6c28cb578ecb766a58e88a7a
tree4e692768fc1e0c7b632de6f06baf6315e48c64ff
parent89efbf0a3c77cded83ce474ab7b91d9370e4758c
bnxt_en: Release PCI regions when DMA mask setup fails during probe.

Jump to init_err_release to cleanup.  bnxt_unmap_bars() will also be
called but it will do nothing if the BARs are not mapped yet.

Fixes: 93658deae41f ("bnxt_en: New Broadcom ethernet driver.")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/1605858271-8209-1-git-send-email-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c