Commit 0805a4b8 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by David S. Miller

net: atm: Add another IS_ENABLED(CONFIG_COMPAT) in atm_dev_ioctl

I removed compat's universal assignment to 0, which allows this if
statement to fall through when compat is passed with a value other
than 0.

Fixes: f9d19a74 ("net: atm: Use IS_ENABLED in atm_dev_ioctl")
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent df103170
...@@ -413,7 +413,7 @@ int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat) ...@@ -413,7 +413,7 @@ int atm_dev_ioctl(unsigned int cmd, void __user *arg, int compat)
} }
/* fall through */ /* fall through */
default: default:
if (compat) { if (IS_ENABLED(CONFIG_COMPAT) && compat) {
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
if (!dev->ops->compat_ioctl) { if (!dev->ops->compat_ioctl) {
error = -EINVAL; error = -EINVAL;
......
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