mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-01 18:21:29 +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:
|
History
|
|
|---|---|---|
| .. | ||
| at24.c | ||
| at25.c | ||
| digsy_mtc_eeprom.c | ||
| ee1004.c | ||
| eeprom.c | ||
| eeprom_93cx6.c | ||
| eeprom_93xx46.c | ||
| idt_89hpesx.c | ||
| Kconfig | ||
| Makefile | ||
| max6875.c | ||