mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
7c70fbf0cf467115c0b138db6dfe5d77f24cad76
The structure returned from the function wakeup_source_register() is not currently checked to see that a valid structure is returned. If wakeup_source_register fails to register the wake-up source, then this function will return a NULL pointer and this will lead to a crash when defereferencing this pointer. Therefore, check that a valid structure is returned from wakeup_source_register() and if not then return an error from the probe function. JIRA LINQPJ14-60 Bug 4958861 Change-Id: I03356700ab03d6c25080b3806ea8b7da3983a302 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3394894 (cherry picked from commit 14286052fb9dd496b243221fa1066f828451b294) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3405519 Reviewed-by: Brad Griffis <bgriffis@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Description
No description provided