I use static analysis tool to find these funcs are similar to the
commit<0fa375e6bc90>(drm/rockchip: Fix suspend crash when drm is not bound),so
it's just defensive,
I haven't actually hitted this.
At 2021-01-05 01:00:27, "Alex Deucher" wrote:
>On Sun, Dec 27, 2020 at 3:56 PM Defang Bo
On Sun, Dec 27, 2020 at 3:56 PM Defang Bo wrote:
>
> [Why]
> Similar to commit<0fa375e6>. If the set_state/can_switch code access the
> drm_device when dev is not bound,
> a null pointer dereference can happen.
>
> [How]
> Add sanity checks to prevent it.
>
> Signed-off-by: Defang Bo
Are you ac
[Why]
Similar to commit<0fa375e6>. If the set_state/can_switch code access the
drm_device when dev is not bound,
a null pointer dereference can happen.
[How]
Add sanity checks to prevent it.
Signed-off-by: Defang Bo
---
drivers/gpu/drm/radeon/radeon_device.c | 6 ++
1 file changed, 6 inser