]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:43 +0000 (11:01 +0200)
commit5f613df7dd63ae2f6ad6952aa11d2de93d3fca88
treed1097d2d6f2f080b702908e7464587be9160019d
parent4d7018a0ef748ffd201990b23c964267a24e031c
bnxt_en: Return error if bnxt_alloc_ctx_mem() fails.

[ Upstream commit 4d2f646c89c2c2ae448417425c1d9688330dabbc ]

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: 4e6dc32e3f43 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c