commit 6880764a git:core branch:projects/s7 ddr:b6f7a21
Author: Tao Zeng <tao.zeng@amlogic.com>
Date:   Mon Sep 2 15:09:14 2024 +0800

    Riscure: fix default return value issue [1/1]

    PD#RSP-6590

    Problem:
    Riscure review finding:
    In this (and many other functions) the return values are initialized to the
    'success' value at the start of the function. If for whatever reason (e.g.
    fault injection) the call to mkl_keygen() gets skipped, then the value of
    'ret' still fulfills the check and the error is not properly detected,
    potentially leading to incorrect initialization.

    Solution:
    Set default return value of 0 to -1 in drivers;

    Verify:
    s7

    Change-Id: I1736b2d004d18ee405e0c363701e22c37bad0364
    Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
s7       build ok

Change-Id: I5770bed50c5f36a98af6339a4224a9eec054f6b4
10 files changed