1
0
Fork 0

ipmi_devintf: Add an error return on invalid ioctls

Signed-off-by: Corey Minyard <cminyard@mvista.com>
hifive-unleashed-5.1
Corey Minyard 2018-04-06 16:30:36 -05:00
parent 8eb005bf6e
commit e56710d26e
1 changed files with 4 additions and 0 deletions

View File

@ -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;