diff options
Diffstat (limited to 'fs/inotify.c')
-rw-r--r-- | fs/inotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/inotify.c b/fs/inotify.c index f5099d86fd91..7457501b9565 100644 --- a/fs/inotify.c +++ b/fs/inotify.c | |||
@@ -509,7 +509,7 @@ void inotify_destroy(struct inotify_handle *ih) | |||
509 | mutex_unlock(&ih->mutex); | 509 | mutex_unlock(&ih->mutex); |
510 | break; | 510 | break; |
511 | } | 511 | } |
512 | watch = list_entry(watches->next, struct inotify_watch, h_list); | 512 | watch = list_first_entry(watches, struct inotify_watch, h_list); |
513 | get_inotify_watch(watch); | 513 | get_inotify_watch(watch); |
514 | mutex_unlock(&ih->mutex); | 514 | mutex_unlock(&ih->mutex); |
515 | 515 | ||