Commit ea67677d authored by Mark Brown's avatar Mark Brown Committed by Paul Moore
Browse files

lsm: Add a __counted_by() annotation to lsm_ctx.ctx



The ctx in struct lsm_ctx is an array of size ctx_len, tell the compiler
about this using __counted_by() where supported to improve the ability to
detect overflow issues.

Reported-by: default avatarAishwarya TCV <aishwarya.tcv@arm.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent ec4e9d63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment