devsegment: return proper write count for ctl message

This commit is contained in:
cinap_lenrek 2017-05-30 16:08:47 +02:00
parent 760e539811
commit 1bc20697ed

View file

@ -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: