--- m/kernel/watch_queue.c +++ n/kernel/watch_queue.c @@ -631,9 +631,8 @@ void watch_queue_clear(struct watch_queu } put_watch(watch); } - } - - put_watch(watch); + } else + put_watch(watch); spin_lock_bh(&wqueue->lock); }