From 8c1f280c1bc948a20e244b32d824780b08bf85c9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Mar 2015 11:49:30 +0100 Subject: Require all fs_handle_t objects to point to a node. --- src/kernel/dev/pciide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/dev/pciide.c') 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; -- cgit v1.2.3