]> Pileus Git - ~andy/linux/blobdiff - fs/notify/notification.c
Linux 3.14
[~andy/linux] / fs / notify / notification.c
index 6a4ba17c0395db276dcc9d028ef44e56a3e971e6..1e58402171a56cd9d078ab62307951689a5630df 100644 (file)
@@ -98,11 +98,11 @@ int fsnotify_add_notify_event(struct fsnotify_group *group,
        if (group->q_len >= group->max_events) {
                ret = 2;
                /* Queue overflow event only if it isn't already queued */
-               if (!list_empty(&group->overflow_event.list)) {
+               if (!list_empty(&group->overflow_event->list)) {
                        mutex_unlock(&group->notification_mutex);
                        return ret;
                }
-               event = &group->overflow_event;
+               event = group->overflow_event;
                goto queue;
        }