mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
A reader sleeping in PPS_GEN_FETCHEVENT waits for the next event, but
no event comes after pps_gen_unregister_source(), so the reader sleeps
until it gets a signal. A PPS_GEN_FETCHEVENT issued after the
unregister sleeps the same way.
Wake up the readers on unregister, and make PPS_GEN_FETCHEVENT fail
with -ENODEV once the generator is gone, like the other ioctls. The
wait checks info without info_lock, so clear it with WRITE_ONCE().
Fixes:
|
||
|---|---|---|
| .. | ||
| clients | ||
| generators | ||
| kapi.c | ||
| kc.c | ||
| kc.h | ||
| Kconfig | ||
| Makefile | ||
| pps.c | ||
| sysfs.c | ||