sched: Only call pre/post select hooks if tasks are not in error state.
[paraslash.git] / attribute.c
index bfb6d3f2765749be1147b430439bb78dfe3d8d8a..e7fba9021d29fc19fcc7ad0d09534c65914d3a56 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.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);
 }
                pass_buffer_as_shm(laad.pb.buf, laad.pb.offset, &fd);
        free(laad.pb.buf);
 }