]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bnxt_en: Check for zero length value in bnxt_get_nvram_item().
authorMichael Chan <michael.chan@broadcom.com>
Thu, 26 Oct 2017 15:51:22 +0000 (11:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Oct 2017 15:02:44 +0000 (00:02 +0900)
commite0ad8fc5980b362028cfd63ec037f4b491e726c6
tree9dd2c3995758a7d47f2ac590654d0327c32607d4
parent618784e3ee1870e43e50e1c7922cc123cc050566
bnxt_en: Check for zero length value in bnxt_get_nvram_item().

Return -EINVAL if the length is zero and not proceed to do essentially
nothing.

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