mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-27 00:43:16 +00:00
The simple_write_to_buffer() function will return positive/success if it
is able to write a single byte anywhere within the buffer. However that
potentially leaves a lot of the buffer uninitialized.
In this code it's better to return 0 if the offset is non-zero. This
code is not written to support partial writes. And then return -EFAULT
if the buffer is not completely initialized.
Fixes:
|
||
|---|---|---|
| .. | ||
| at24.c | ||
| at25.c | ||
| digsy_mtc_eeprom.c | ||
| ee1004.c | ||
| eeprom_93cx6.c | ||
| eeprom_93xx46.c | ||
| eeprom.c | ||
| idt_89hpesx.c | ||
| Kconfig | ||
| Makefile | ||
| max6875.c | ||