X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Finotify.c;h=7457501b95656087cfe27339b94d3bace7585782;hb=dc79747019b43c28d1f50aad69b8039f8d8db301;hp=f5099d86fd91fba6d3574e804be85a26e2201d68;hpb=7e23772f414cdbfb2a08aed237d6e926bb1cb728;p=~andy%2Flinux diff --git a/fs/inotify.c b/fs/inotify.c index f5099d86fd9..7457501b956 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);