]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/notify/notification.c
mac80211: fix ibss join with fixed-bssid
[karo-tx-linux.git] / fs / notify / notification.c
index 3816d5750dd55eb6f8b2c710b6a017a4694b450c..b8bf53b4c10897802c83db2c1ce1320aad16236e 100644 (file)
@@ -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;