diff options
| author | Dan Carpenter <[email protected]> | 2018-08-22 13:41:26 +0300 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2018-08-31 18:47:29 +0300 |
| commit | f483039cf51acf30494cd754194562c22cf98764 (patch) | |
| tree | 2a685a9308dec63c23734547159182b269d6644b /tools/perf/scripts/python | |
| parent | 33a164fa8a4c91408e0b7738f754cb1a7827c5f2 (diff) | |
rt2x00: use simple_read_from_buffer()
The problem with this copy_to_user() calls is that they don't ensure
that "size" is less than the "length" which the user provided.
Obviously, this is debugfs and "size" is normally going to be very small
so it probably doesn't matter, but this is the correct thing to do.
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Stanislaw Gruszka <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions