mirror of
https://github.com/torvalds/linux.git
synced 2025-11-08 04:30:00 +02: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.c | ||
| eeprom_93cx6.c | ||
| eeprom_93xx46.c | ||
| idt_89hpesx.c | ||
| Kconfig | ||
| Makefile | ||
| max6875.c | ||