X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Finotify.c;h=7457501b95656087cfe27339b94d3bace7585782;hb=efdc31319d43050a5742fb690b1a4beb68092a94;hp=f5099d86fd91fba6d3574e804be85a26e2201d68;hpb=ec0bf39a471bf6fcd01def2bd677128cea940b73;p=powerpc.git 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);