We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9740bcb + e135748 commit c4d17fcCopy full SHA for c4d17fc
rust/kernel/file_operations.rs
@@ -662,7 +662,7 @@ pub trait FileOperations: Send + Sync + Sized {
662
_file: &File,
663
_cmd: &mut IoctlCommand,
664
) -> Result<i32> {
665
- Err(Error::EINVAL)
+ Err(Error::ENOTTY)
666
}
667
668
/// Performs 32-bit IO control operations on that are specific to the file on 64-bit kernels.
@@ -673,7 +673,7 @@ pub trait FileOperations: Send + Sync + Sized {
673
674
675
676
677
678
679
/// Syncs pending changes to this file.
0 commit comments