Skip to contentSkip to conversation

libsepol: drop dead store in ocontext_read_xen()

PATCH In review Stephen Smalley 1 participant 2 messages Sep 15 SELinux security module

lore
Share & tools
lore

Stephen Smalley

author maintainer
#0 lore raw

PATCH 1/1 libsepol: drop dead store in ocontext_read_xen()

commit c84fd6e3f40e ("libsepol,checkpolicy: reject out-of-range pirqcon values") left a dead store behind in ocontext_read_xen(); remove it.

---
 libsepol/src/policydb.c | 1 -
 1 file changed, 1 deletion(-)
libsepol/src/policydb.c +0 -1
index 60707fb4..9716f5fa 100644
@@ -2582,7 +2582,6 @@ static int ocontext_read_xen(const struct policydb_compat_info *info,
 				if (pirq > UINT16_MAX)
 					return -1;
 				c->u.pirq = pirq;
-				c->u.pirq = le32_to_cpu(buf[0]);
 				if (context_read_and_validate(&c->context[0], p,
 							      fp))
 					return -1;
Signature · 1 line
2.55.0
author maintainer
#1 lore raw
Quoted 6 lines · Stephen Smalley

commit c84fd6e3f40e ("libsepol,checkpolicy: reject out-of-range pirqcon values") left a dead store behind in ocontext_read_xen(); remove it.

This has been merged.