devsegment: return proper write count for ctl message
This commit is contained in:
parent
760e539811
commit
1bc20697ed
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue