X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Finotify.c;h=7457501b95656087cfe27339b94d3bace7585782;hb=24ad33ff714bd117cab30e71e2ad41e4e1185108;hp=f5099d86fd91fba6d3574e804be85a26e2201d68;hpb=ff51a98799931256b555446b2f5675db08de6229;p=linux-2.6 diff --git a/fs/inotify.c b/fs/inotify.c index f5099d86fd..7457501b95 100644 --- a/fs/inotify.c +++ b/fs/inotify.c @@ -509,7 +509,7 @@ void inotify_destroy(struct inotify_handle *ih) mutex_unlock(&ih->mutex); break; } - watch = list_entry(watches->next, struct inotify_watch, h_list); + watch = list_first_entry(watches, struct inotify_watch, h_list); get_inotify_watch(watch); mutex_unlock(&ih->mutex);