]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix return code to "flash_device".
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 25 May 2020 21:41:18 +0000 (17:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 03:30:48 +0000 (20:30 -0700)
commitbe5a31632c8c5b92537378e2c7d2bc66615e2838
treefcabc7cb30ad6f844a0c121fb4aa6aa5b2dacc66
parent6fae4a5fda321adbd58c173e217775486720021c
bnxt_en: Fix return code to "flash_device".

When NVRAM directory is not found, return the error code
properly as per firmware command failure instead of the hardcode
-ENOBUFS.

Fixes: 455c4d8b0e8e ("bnxt_en: Return -EAGAIN if fw command returns BUSY")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c