SQUASH: fix ringbuffer return value