X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Finotify.c;h=7457501b95656087cfe27339b94d3bace7585782;hb=efbee7f1c9f3cca8d7d2fe0e797d2c7cc970cccd;hp=723836a1f71896a5406b7ca6e066dc42ca5a6286;hpb=28e4b224955cbe30275b2a7842e729023a4f4b03;p=karo-tx-linux.git diff --git a/fs/inotify.c b/fs/inotify.c index 723836a1f718..7457501b9565 100644 --- a/fs/inotify.c +++ b/fs/inotify.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -508,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);