shithub: riscv

Download patch

ref: 78794f03dd0d15bae3f47102dad14bd76764f288
parent: d0bb0f775761a292caa2d2720bd91a51b469710b
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu May 2 19:12:37 EDT 2013

devsd: initialize unit->sense[0] in sdsetsense() (from erik quanstroms 9atom)

--- a/sys/src/9/port/devsd.c
+++ b/sys/src/9/port/devsd.c
@@ -980,6 +980,7 @@
 	SDunit *unit;
 
 	unit = r->unit;
+	unit->sense[0] = 0x80 | 0x70;	/* valid; fixed-format */
 	unit->sense[2] = key;
 	unit->sense[12] = asc;
 	unit->sense[13] = ascq;
--