From: Rasesh Mody Date: Tue, 19 Sep 2017 01:51:38 +0000 (-0700) Subject: net/qede/base: catch an init command write failure X-Git-Tag: spdx-start~1894 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3af0c2a203e16d83ea86754efb70c030956ff85b;p=dpdk.git net/qede/base: catch an init command write failure In case ecore_init_rt() fails for some reason, catch the failure and fail the initialization. Signed-off-by: Rasesh Mody --- diff --git a/drivers/net/qede/base/ecore_init_ops.c b/drivers/net/qede/base/ecore_init_ops.c index 4491a14347..91633c11e0 100644 --- a/drivers/net/qede/base/ecore_init_ops.c +++ b/drivers/net/qede/base/ecore_init_ops.c @@ -317,10 +317,10 @@ static enum _ecore_status_t ecore_init_cmd_wr(struct ecore_hwfn *p_hwfn, b_must_dmae, b_can_dmae); break; case INIT_SRC_RUNTIME: - ecore_init_rt(p_hwfn, p_ptt, addr, - OSAL_LE16_TO_CPU(p_cmd->args.runtime.offset), - OSAL_LE16_TO_CPU(p_cmd->args.runtime.size), - b_must_dmae); + rc = ecore_init_rt(p_hwfn, p_ptt, addr, + OSAL_LE16_TO_CPU(p_cmd->args.runtime.offset), + OSAL_LE16_TO_CPU(p_cmd->args.runtime.size), + b_must_dmae); break; }