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

Commit 76b94eb1 authored by Jess Frazelle's avatar Jess Frazelle Committed by Greg Kroah-Hartman
Browse files

staging: set msi_domain_ops as __ro_after_init



Marked msi_domain_ops structs as __ro_after_init when called only during init.
This protects the data structure from accidental corruption.

Suggested-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJess Frazelle <me@jessfraz.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fac103e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ static int its_fsl_mc_msi_prepare(struct irq_domain *msi_domain,
	return msi_info->ops->msi_prepare(msi_domain->parent, dev, nvec, info);
}

static struct msi_domain_ops its_fsl_mc_msi_ops = {
static struct msi_domain_ops its_fsl_mc_msi_ops __ro_after_init = {
	.msi_prepare = its_fsl_mc_msi_prepare,
};