Files
i2som-imx-linux/security
Micah Morton 8cd0912adf LSM: SafeSetID: Stop releasing uninitialized ruleset
[ Upstream commit 21ab8580b3 ]

The first time a rule set is configured for SafeSetID, we shouldn't be
trying to release the previously configured ruleset, since there isn't
one. Currently, the pointer that would point to a previously configured
ruleset is uninitialized on first rule set configuration, leading to a
crash when we try to call release_ruleset with that pointer.

Acked-by: Jann Horn <jannh@google.com>
Signed-off-by: Micah Morton <mortonm@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-29 09:22:02 +01:00
..