MA-15152 erase user data before setting lock/unlock status
authorfaqiang.zhu <faqiang.zhu@nxp.com>
Wed, 17 Jul 2019 07:32:00 +0000 (15:32 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:17 +0000 (09:49 +0800)
commit6c7c67500cb033c0cbb227845052a42413728af1
treeb00ca2a68ab51866e1e1de897f4c92f587dcf9b8
parent62f2b87290750c91f29e0d573bf8560134415b39
MA-15152 erase user data before setting lock/unlock status

when conduct fastboot lock/unlock operations, erase the userdata first
and then set lock/unlock status to improve security level.

Change-Id: I74c571c35b88afd6fdd4c287463f7209da8c15ff
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
(cherry picked from commit b81f0b617d23548cd30953b94aca4ff8cc4da723)
(cherry picked from commit fb9d5e07623098aefd12a81d74c0779060b0bf0a)
drivers/fastboot/fb_fsl/fb_fsl_command.c