summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/i825xx
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2017-10-13 21:09:33 -0400
committerDavid S. Miller <davem@davemloft.net>2017-10-14 18:51:51 -0700
commitcc72f3b1feb4fd38d33ab7a013d5ab95041cb8ba (patch)
tree4968a3d81d64f145e389a0bd45be40585b2f180b /drivers/net/ethernet/i825xx
parent021570793d8cd86cb62ac038c535f4450586b454 (diff)
downloadlinux-stable-cc72f3b1feb4fd38d33ab7a013d5ab95041cb8ba.tar.gz
linux-stable-cc72f3b1feb4fd38d33ab7a013d5ab95041cb8ba.tar.bz2
linux-stable-cc72f3b1feb4fd38d33ab7a013d5ab95041cb8ba.zip
bnxt_en: Fix possible corrupted NVRAM parameters from firmware response.
In bnxt_find_nvram_item(), it is copying firmware response data after releasing the mutex. This can cause the firmware response data to be corrupted if the next firmware response overwrites the response buffer. The rare problem shows up when running ethtool -i repeatedly. Fix it by calling the new variant _hwrm_send_message_silent() that requires the caller to take the mutex and to release it after the response data has been copied. Fixes: 3ebf6f0a09a2 ("bnxt_en: Add installed-package version reporting via Ethtool GDRVINFO") Reported-by: Sarveswara Rao Mygapula <sarveswararao.mygapula@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/i825xx')
0 files changed, 0 insertions, 0 deletions