From: Ben Gras Date: Fri, 23 Feb 2007 20:58:10 +0000 (+0000) Subject: Uninitialized vector entry? X-Git-Tag: v3.1.3~55 X-Git-Url: http://zhaoyanbai.com/repos/rndc-confgen.html?a=commitdiff_plain;h=8c9e1cf4c541c77027728c2c26f3bd5db14e08c4;p=minix.git Uninitialized vector entry? --- diff --git a/drivers/at_wini/at_wini.c b/drivers/at_wini/at_wini.c index f2f100cda..e1c0a121a 100644 --- a/drivers/at_wini/at_wini.c +++ b/drivers/at_wini/at_wini.c @@ -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);