• Varun Wadekar's avatar
    lib: cpus: sanity check pointers before use · 601e3ed2
    Varun Wadekar authored
    
    
    The cpu_ops structure contains a lot of function pointers. It
    is a good idea to verify that the function pointer is not NULL
    before executing it.
    
    This patch sanity checks each pointer before use to prevent any
    unforeseen crashes. These checks have been enabled for debug
    builds only.
    
    Change-Id: Ib208331c20e60f0c7c582a20eb3d8cc40fb99d21
    Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
    601e3ed2
cpu_helpers.S 9.15 KB