]> 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)
commit0ed1c80a6a29ea62ba45e2aa57a0362459bf3dda
treefcabc7cb30ad6f844a0c121fb4aa6aa5b2dacc66
parent64dd282af4cc7751d34eca2868be793a7b2f2bae
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: 7f5f4f9d777a ("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