libfs: add support for special files not backed by a filesystem

This commit is contained in:
2026-04-01 18:57:59 +01:00
parent f2e6e7785d
commit 8ebf44dca9
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ extern kern_status_t fs_msg_seek(
return KERN_OK;
}
if (new_offset > f->f_inode->i_size) {
if (f->f_inode && new_offset > f->f_inode->i_size) {
*out_err = EINVAL;
return KERN_OK;
}