diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:24:01 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:24:01 -1000 |
| commit | d1280054f8374cedc1d3b2fac44eb060f81cba50 (patch) | |
| tree | f5cc361909723260319364d6cd49de1fa6290107 /scripts/Makefile.thinlto | |
| parent | 198db29840c4cbc617da105bfea72368e0baa8ea (diff) | |
| download | linux-d1280054f8374cedc1d3b2fac44eb060f81cba50.tar.gz linux-d1280054f8374cedc1d3b2fac44eb060f81cba50.zip | |
PNP: isapnp: use put_user() in the proc read loop
isapnp_proc_bus_read() checks the user buffer with access_ok() and then
copies the configuration registers one byte at a time with __put_user(),
reading each register in between. Each of those accesses enables and
disables user access on its own, so the up-front check saves nothing.
Use put_user(). The ignored return value and the access_ok() stay as
they were.
This is part of getting rid of __get_user() and __put_user() entirely.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
