Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e56710d2 authored by Corey Minyard's avatar Corey Minyard
Browse files

ipmi_devintf: Add an error return on invalid ioctls

parent 8eb005bf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;