mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 08:01:59 +00:00
71d46f1ff2
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 |