Skip to content

Commit

Permalink
Merge pull request torvalds#487 from ojeda/enotty
Browse files Browse the repository at this point in the history
rust: kernel: ioctl returns ENOTTY if not implemented
  • Loading branch information
ojeda authored Aug 23, 2021
2 parents 9740bcb + e135748 commit c4d17fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/kernel/file_operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ pub trait FileOperations: Send + Sync + Sized {
_file: &File,
_cmd: &mut IoctlCommand,
) -> Result<i32> {
Err(Error::EINVAL)
Err(Error::ENOTTY)
}

/// Performs 32-bit IO control operations on that are specific to the file on 64-bit kernels.
Expand All @@ -673,7 +673,7 @@ pub trait FileOperations: Send + Sync + Sized {
_file: &File,
_cmd: &mut IoctlCommand,
) -> Result<i32> {
Err(Error::EINVAL)
Err(Error::ENOTTY)
}

/// Syncs pending changes to this file.
Expand Down

0 comments on commit c4d17fc

Please sign in to comment.