Index: uspace/drv/bus/isa/isa.c
===================================================================
--- uspace/drv/bus/isa/isa.c	(revision 7e9e652913a5985f37d6cd1f38ebc993db6a8849)
+++ uspace/drv/bus/isa/isa.c	(revision fe91f66babd983082bdd8bef5fe246fe62811619)
@@ -254,4 +254,5 @@
 	size_t len;
 	ssize_t r;
+	struct stat st;
 
 	fd = open(conf_path, O_RDONLY);
@@ -263,6 +264,10 @@
 	opened = true;
 
-	len = lseek(fd, 0, SEEK_END);
-	lseek(fd, 0, SEEK_SET);
+	if (fstat(fd, &st) != EOK) {
+		ddf_msg(LVL_ERROR, "Unable to fstat %d", fd);
+		goto cleanup;
+	}
+
+	len = st.size;
 	if (len == 0) {
 		ddf_msg(LVL_ERROR, "Configuration file '%s' is empty.",
@@ -277,5 +282,5 @@
 	}
 
-	r = read(fd, buf, len);
+	r = read(fd, (aoff64_t []) {0}, buf, len);
 	if (r < 0) {
 		ddf_msg(LVL_ERROR, "Unable to read file '%s'.", conf_path);
