diff options
| author | Michal Schmidt <[email protected]> | 2013-07-01 17:23:30 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-07-02 00:15:56 -0700 |
| commit | c590b5e2f05b5e98e614382582b7ae4cddb37599 (patch) | |
| tree | ee104276146080fdf350eeb7a5f6d9586c2e209c /tools/perf/scripts/python/futex-contention.py | |
| parent | 8cc2d927c26a677415a9d0d23b9a043107f948c3 (diff) | |
ethtool: make .get_dump_data() harder to misuse by drivers
As the patch "bnx2x: remove zeroing of dump data buffer" showed,
it is too easy implement .get_dump_data incorrectly in a driver.
Let's make sure drivers cannot get confused by userspace requesting
a too big dump.
Also WARN if the driver sets dump->len to something weird and make
sure the length reported to userspace is the actual length of data
copied to userspace.
Signed-off-by: Michal Schmidt <[email protected]>
Reviewed-by: Ben Hutchings <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions