diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:24:20 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-20 08:07:28 -1000 |
| commit | 0c5db8acc6e99627a645a395f96b921d5558bf32 (patch) | |
| tree | 10e76af7aad345dd436343cd6633fbf1c5e26053 /scripts/Makefile.thinlto | |
| parent | 3a609ff2f12652a23846180e16d96017b84c5d80 (diff) | |
| download | linux-0c5db8acc6e99627a645a395f96b921d5558bf32.tar.gz linux-0c5db8acc6e99627a645a395f96b921d5558bf32.zip | |
char: nwflash: use get_user() in write_block()
write_block() reads the user buffer one byte at a time with __get_user()
while programming and then verifying the flash, relying on the
access_ok() done in flash_write(). Each __get_user() enables and
disables user access on its own anyway, so the separation saves nothing.
Use get_user().
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
