Index: uspace/srv/devman/match.c
===================================================================
--- uspace/srv/devman/match.c	(revision 40feeac3d6d981d671abe77b20b3aa999c586faf)
+++ uspace/srv/devman/match.c	(revision 8e3498b351ae109f7ad16592a1f108e3bd44c829)
@@ -229,6 +229,7 @@
 	}
 	
-	ssize_t read_bytes = vfs_read(fd, (aoff64_t []) {0}, buf, len);
-	if (read_bytes <= 0) {
+	size_t read_bytes;
+	int rc = vfs_read(fd, (aoff64_t []) {0}, buf, len, &read_bytes);
+	if (rc != EOK) {
 		log_msg(LOG_DEFAULT, LVL_ERROR, "Unable to read file '%s' (%d).", conf_path,
 		    errno);
