summaryrefslogtreecommitdiff
path: root/drivers/char/ipmi
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2018-04-07 00:30:36 +0300
committerCorey Minyard <cminyard@mvista.com>2018-04-18 18:23:04 +0300
commite56710d26eba07abca34c39c50e02e854436000a (patch)
treee03b6fe2fb693e359a53eeb99da3e8f154f96d8a /drivers/char/ipmi
parent8eb005bf6e58ca08802ac8170e5d3c8486cb2d79 (diff)
downloadlinux-e56710d26eba07abca34c39c50e02e854436000a.tar.xz
ipmi_devintf: Add an error return on invalid ioctls
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r--drivers/char/ipmi/ipmi_devintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_devintf.c b/drivers/char/ipmi/ipmi_devintf.c
index b36a91fb7cd5..1a486aec99b6 100644
--- a/drivers/char/ipmi/ipmi_devintf.c
+++ b/drivers/char/ipmi/ipmi_devintf.c
@@ -608,6 +608,10 @@ static long ipmi_ioctl(struct file *file,
rv = ipmi_set_maintenance_mode(priv->user, mode);
break;
}
+
+ default:
+ rv = -ENOTTY;
+ break;
}
return rv;