mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
loop_until_timeout() replaced a do {} while loop in the at24 driver
with a for loop which, under certain circumstances (such as heavy load
or low value of the write_timeout argument), can lead to the code in
the loop never being executed.
Make sure that at least one iteration of the code enclosed within
loop_until_timeout() is always executed.
Suggested-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
|
History
|
|
|---|---|---|
| .. | ||
| at24.c | ||
| at25.c | ||
| digsy_mtc_eeprom.c | ||
| eeprom.c | ||
| eeprom_93cx6.c | ||
| eeprom_93xx46.c | ||
| Kconfig | ||
| Makefile | ||
| max6875.c | ||