Skip to content

Commit

Permalink
ipmi_devintf: Add an error return on invalid ioctls
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Apr 18, 2018
1 parent 8eb005b commit e56710d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/char/ipmi/ipmi_devintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e56710d

Please sign in to comment.