summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>2019-12-10 02:49:09 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-04 19:18:52 +0100
commita76837dd731b68cc3b5690470bc9efa2a8e3801a (patch)
tree5712437f43657745eb3221e568e5d3a07cdb3bed /include/linux
parentafc13aa9400b5d3d54efa4b4183168a9a3e03c12 (diff)
bnxt_en: Return error if FW returns more data than dump length
[ Upstream commit c74751f4c39232c31214ec6a3bc1c7e62f5c728b ] If any change happened in the configuration of VF in VM while collecting live dump, there could be a race and firmware can return more data than allocated dump length. Fix it by keeping track of the accumulated core dump length copied so far and abort the copy with error code if the next chunk of core dump will exceed the original dump length. Fixes: 6c5657d085ae ("bnxt_en: Add support for ethtool get dump.") 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions