diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-09 11:49:30 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-09 11:49:30 +0100 |
commit | 8c1f280c1bc948a20e244b32d824780b08bf85c9 (patch) | |
tree | 6288a0c801c05a2c06378d75a912f06b86438c3d /src/kernel/dev | |
parent | 6dd488b87fdc47fb377ba648a6cd598bdab87f59 (diff) | |
download | kogata-8c1f280c1bc948a20e244b32d824780b08bf85c9.tar.gz kogata-8c1f280c1bc948a20e244b32d824780b08bf85c9.zip |
Require all fs_handle_t objects to point to a node.
Diffstat (limited to 'src/kernel/dev')
-rw-r--r-- | src/kernel/dev/pciide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/dev/pciide.c b/src/kernel/dev/pciide.c index 8fcaf02..f9330f8 100644 --- a/src/kernel/dev/pciide.c +++ b/src/kernel/dev/pciide.c @@ -729,7 +729,7 @@ bool ide_vfs_stat(fs_node_ptr n, stat_t *st) { } size_t ide_vfs_read(fs_handle_t *h, size_t offset, size_t len, char* buf) { - ide_vfs_dev_t *d = (ide_vfs_dev_t*)h->data; + ide_vfs_dev_t *d = (ide_vfs_dev_t*)h->node->data; if (offset % d->block_size != 0) return 0; if (len % d->block_size != 0) return 0; @@ -741,7 +741,7 @@ size_t ide_vfs_read(fs_handle_t *h, size_t offset, size_t len, char* buf) { } size_t ide_vfs_write(fs_handle_t *h, size_t offset, size_t len, const char* buf) { - ide_vfs_dev_t *d = (ide_vfs_dev_t*)h->data; + ide_vfs_dev_t *d = (ide_vfs_dev_t*)h->node->data; if (offset % d->block_size != 0) return 0; if (len % d->block_size != 0) return 0; |