From 1bc20697ed014d22b6e29e450741cfbc02039717 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 30 May 2017 16:08:47 +0200 Subject: [PATCH] devsegment: return proper write count for ctl message --- sys/src/9/port/devsegment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/port/devsegment.c b/sys/src/9/port/devsegment.c index 033affb6d..f1221b9cc 100644 --- a/sys/src/9/port/devsegment.c +++ b/sys/src/9/port/devsegment.c @@ -337,7 +337,7 @@ segmentwrite(Chan *c, void *a, long n, vlong voff) error(Ebadctl); free(cb); poperror(); - break; + return n; case Qdata: return segio(g, g->s, a, n, voff, 0); default: