sched: Only call pre/post select hooks if tasks are not in error state.
[paraslash.git] / attribute.c
index bfb6d3f..e7fba90 100644 (file)
@@ -166,7 +166,7 @@ static void com_lsatt_callback(int fd, const struct osl_object *query)
        if (laad.flags & LSATT_FLAG_REVERSE)
                pmd.pm_flags |= PM_REVERSE_LOOP;
        for_each_matching_row(&pmd);
-       if (!laad.pb.offset)
+       if (laad.pb.offset)
                pass_buffer_as_shm(laad.pb.buf, laad.pb.offset, &fd);
        free(laad.pb.buf);
 }