X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fnotify%2Fnotification.c;h=b8bf53b4c10897802c83db2c1ce1320aad16236e;hb=a84216e671c724e0920dfad2fb70828d428ff60a;hp=3816d5750dd55eb6f8b2c710b6a017a4694b450c;hpb=53e16fbd30005905168d9b75555fdc7e0a2eac58;p=karo-tx-linux.git diff --git a/fs/notify/notification.c b/fs/notify/notification.c index 3816d5750dd5..b8bf53b4c108 100644 --- a/fs/notify/notification.c +++ b/fs/notify/notification.c @@ -143,7 +143,7 @@ static bool event_compare(struct fsnotify_event *old, struct fsnotify_event *new /* remember, after old was put on the wait_q we aren't * allowed to look at the inode any more, only thing * left to check was if the file_name is the same */ - if (old->name_len && + if (!old->name_len || !strcmp(old->file_name, new->file_name)) return true; break;