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

Commit cc79a781 authored by Kejiang Li's avatar Kejiang Li Committed by TaoChun Lee
Browse files

[ALPS05420918] MASP : DM-verity Error Handler function enhancement



[Detail]
Add empty "cmd" string checking in DM-verity Error handler Function

MTK-Commit-Id: 99b3b0e03e1bdaf119fa393c2fb02872b917f3f3

Change-Id: I227d12acbb4fcb0d8b1acc56d79c2ea8fc7b12eb
Signed-off-by: default avatarKejiang Li <Kejiang.Li@mediatek.com>
CR-Id: ALPS05420918
Feature: Secure Boot
parent eb120ae4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ static int reboot_handler_set_eio_flag(struct notifier_block *reboot,
{	int ret = 0;
	const char *dm_error_cmd = "dm-verity device corrupted";

	if (!strcmp(cmd, dm_error_cmd))
	if (cmd && !strcmp(cmd, dm_error_cmd))
		ret = masp_hal_set_dm_verity_error();
	return ret;
}