commit | 718c8761ffb2f2d72270e0936659a649b5ce3382 | [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 | 3cb0d8df86d61488f72400dff5b82a3e3cdfaa58 [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>