Re:Re: [PATCH] drm/radeon:avoid null pointer dereference when dev is not bound

2021-01-05 Thread bodefang
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

Re: [PATCH] drm/radeon:avoid null pointer dereference when dev is not bound

2021-01-04 Thread Alex Deucher
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

[PATCH] drm/radeon:avoid null pointer dereference when dev is not bound

2020-12-28 Thread Defang Bo
[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