ipmi_devintf: Add an error return on invalid ioctls
Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
8eb005bf6e
commit
e56710d26e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue