aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorHeiner Kallweit <[email protected]>2021-09-13 21:58:26 +0200
committerDavid S. Miller <[email protected]>2021-09-14 14:26:47 +0100
commitb9bbc4c1debc837ba56872fb3b2499ba6459ca8b (patch)
tree51388f433d655fbd5996d4b2a550f305cd144300 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent0f440524b69787ec2a843bc474a786beabc0bfa9 (diff)
ethtool: prevent endless loop if eeprom size is smaller than announced
It shouldn't happen, but can happen that readable eeprom size is smaller than announced. Then we would be stuck in an endless loop here because after reaching the actual end reads return eeprom.len = 0. I faced this issue when making a mistake in driver development. Detect this scenario and return an error. Signed-off-by: Heiner Kallweit <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions