git: 9front

Download patch

ref: 09728f26557950c4367340e97e60a12f1ae526ec
parent: a70a544b800281a1e82c4e4e5f6983171718f046
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Nov 17 14:58:11 EST 2025

kernel: missed devno() call in pc/devpccard.c (thanks moody)

--- a/sys/src/9/pc/devpccard.c
+++ b/sys/src/9/pc/devpccard.c
@@ -1335,7 +1335,7 @@
 		case CMdown:
 			device = cbf->f[1];
 			device += chartorune(&r, device);
-			if ((n = devno(r, 1)) >= 0 && devtab[n]->config)
+			if ((n = devno(r)) >= 0 && devtab[n]->config)
 				devtab[n]->config(0, device, nil);
 			qengine(cb, CardEjected);
 			break;
--