Commit e56710d2 authored by Corey Minyard's avatar Corey Minyard

ipmi_devintf: Add an error return on invalid ioctls

Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 8eb005bf
......@@ -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;
......
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