]> Zhao Yanbai Git Server - minix.git/commitdiff
Uninitialized vector entry?
authorBen Gras <ben@minix3.org>
Fri, 23 Feb 2007 20:58:10 +0000 (20:58 +0000)
committerBen Gras <ben@minix3.org>
Fri, 23 Feb 2007 20:58:10 +0000 (20:58 +0000)
drivers/at_wini/at_wini.c

index f2f100cda71465bb3439d7e8460e51f9408f1a04..e1c0a121aee29fcdefbf1d27ae4648f6e4561276 100644 (file)
@@ -1633,9 +1633,8 @@ struct command *cmd;              /* Command block */
   pv_set(outbyte[6], base_cmd + REG_SECTOR, cmd->sector);
   pv_set(outbyte[7], base_cmd + REG_CYL_LO, cmd->cyl_lo);
   pv_set(outbyte[8], base_cmd + REG_CYL_HI, cmd->cyl_hi);
-
-  pv_set(outbyte[10], base_cmd + REG_COMMAND, cmd->command);
-  if ((s=sys_voutb(outbyte, 11)) != OK)
+  pv_set(outbyte[9], base_cmd + REG_COMMAND, cmd->command);
+  if ((s=sys_voutb(outbyte, 10)) != OK)
        panic(w_name(),"Couldn't write registers with sys_voutb()",s);
 
   return(OK);