bnxt_en: Return error if bnxt_alloc_ctx_mem() fails.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 22 Mar 2020 20:40:03 +0000 (16:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 04:42:48 +0000 (21:42 -0700)
commit0b5b561cea32d5bb1e0a82d65b755a3cb5212141
tree26b519d00d07207fdd6c0e3e13afb08306ee1450
parent62d4073e86e62e316bea2c53e77db10418fd5dd7
bnxt_en: Return error if bnxt_alloc_ctx_mem() fails.

The current code ignores the return value from
bnxt_hwrm_func_backing_store_cfg(), causing the driver to proceed in
the init path even when this vital firmware call has failed.  Fix it
by propagating the error code to the caller.

Fixes: 1b9394e5a2ad ("bnxt_en: Configure context memory on new devices.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c