Commit 776f5b8a authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] Ensure hdparm errors to the user when the request isnt allowed

parent 9d6697b6
...@@ -1670,7 +1670,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg) ...@@ -1670,7 +1670,7 @@ int ide_cmd_ioctl (ide_drive_t *drive, unsigned int cmd, unsigned long arg)
#else #else
int err = 0; int err = -EIO;
u8 args[4], *argbuf = args; u8 args[4], *argbuf = args;
u8 xfer_rate = 0; u8 xfer_rate = 0;
int argsize = 0; int argsize = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment