commit | 91db9311945f01901ddb9813ce11364de214a156 | [log] [tgz] |
---|---|---|
author | Su Sung Chung <Su.Chung@amd.com> | Mon Jul 08 11:31:39 2019 -0400 |
committer | Alex Deucher <alexander.deucher@amd.com> | Thu Aug 15 10:53:55 2019 -0500 |
tree | 1afec6692b3e5f2a29036ab0b889bf558adf91ac | |
parent | 37495fbdf12d1bce30dbc228c901ef45eba35739 [diff] |
drm/amd/display: refactor gpio to allocate hw_container in constructor [why] if dynamic allocation fails during gpio_open, it will cause crash due to page fault. [how] handle allocation when gpio object gets created and prevent from calling gpio_open if allocation failed Signed-off-by: Su Sung Chung <Su.Chung@amd.com> Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>