alsa_write: Avoid hung tasks.
[paraslash.git] / alsa_write.c
index 363e39301651bc47881f850f0235c13f6a016c62..bc06fc315bc51fb3fc1fa9729ae429b47a70d4b4 100644 (file)
@@ -266,6 +266,8 @@ static int alsa_write_post_select(__a_unused struct sched *s, void *context)
                goto err;
 again:
        ret = btr_node_status(btrn, wn->min_iqs, BTR_NT_LEAF);
+       if (ret < 0)
+               goto err;
        if (ret == 0)
                return 0;
        btr_merge(btrn, wn->min_iqs);