Mercurial > hg > Members > anatofuz > CbC_xv6
diff src/fs.c @ 27:1a64b5645cdd
fix
author | mir3636 |
---|---|
date | Thu, 17 Jan 2019 19:55:30 +0900 |
parents | 36bd61f5c847 |
children | 96a5833d0d82 |
line wrap: on
line diff
--- a/src/fs.c Thu Jan 17 19:43:22 2019 +0900 +++ b/src/fs.c Thu Jan 17 19:55:30 2019 +0900 @@ -459,11 +459,11 @@ struct buf *bp; if (ip->type == T_DEV) { - if (ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) { + if (ip->major < 0 || ip->major >= NDEV || !cbc_devsw[ip->major].read) { goto next(-1); } - goto cbc_devsw[ip->major].read(ip, dst, n); + goto cbc_devsw[ip->major].read(ip, dst, n, next); } if (off > ip->size || off + n < off) {