commit | 601e3ed209eb508c9e46a5ef18a562613338dcc8 | [log] [tgz] |
---|---|---|
author | Varun Wadekar <vwadekar@nvidia.com> | Tue Oct 01 09:34:10 2019 -0700 |
committer | Manish Pandey <manish.pandey2@arm.com> | Mon Aug 24 21:26:48 2020 +0000 |
tree | c21b6a41d8e414068c5b6a7297bc14929cec57a7 | |
parent | 64b2a237aaf06a472506d70fe9ccf809f8ac1b49 [diff] |
lib: cpus: sanity check pointers before use 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: Varun Wadekar <vwadekar@nvidia.com>