Commit 4a2c2406 authored by Wanlong Gao's avatar Wanlong Gao Committed by David S. Miller

net:atm:fix up ENOIOCTLCMD error handling

At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be
translated as ENOTTY to user mode.

Cc: "David S. Miller" <>
Signed-off-by: default avatarWanlong Gao <>
Signed-off-by: default avatarDavid S. Miller <>
parent 3f8bdecd
......@@ -432,7 +432,7 @@ int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat)
size = dev->ops->ioctl(dev, cmd, buf);
if (size < 0) {
error = (size == -ENOIOCTLCMD ? -EINVAL : size);
error = (size == -ENOIOCTLCMD ? -ENOTTY : size);
goto done;
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