libfs: add support for special files not backed by a filesystem
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user