shithub: riscv

Download patch

ref: 1bc20697ed014d22b6e29e450741cfbc02039717
parent: 760e539811001f569fc24d988e72c0b1eef81cd7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue May 30 12:08:47 EDT 2017

devsegment: return proper write count for ctl message

--- a/sys/src/9/port/devsegment.c
+++ b/sys/src/9/port/devsegment.c
@@ -337,7 +337,7 @@
 			error(Ebadctl);
 		free(cb);
 		poperror();
-		break;
+		return n;
 	case Qdata:
 		return segio(g, g->s, a, n, voff, 0);
 	default: