[PATCH] amdgpu: fix NULL pointer dereference at tonga_check_states_equal

2016-02-23 Thread Alex Deucher
her, Alexander; Zhu, Rex; Zhou, Jammy > Cc: dri-devel at lists.freedesktop.org; linux-kernel at vger.kernel.org; > Bradley Pankow > Subject: [PATCH] amdgpu: fix NULL pointer dereference at > tonga_check_states_equal > > The event_data passed from pem_fini was not cleared upon i

[PATCH] amdgpu: fix NULL pointer dereference at tonga_check_states_equal

2016-02-23 Thread Zhu, Rex
Pankow Subject: [PATCH] amdgpu: fix NULL pointer dereference at tonga_check_states_equal The event_data passed from pem_fini was not cleared upon initialization. This caused NULL checks to pass and cast_const_phw_tonga_power_state to attempt to dereference an invalid pointer. Clear the event_data in

[PATCH] amdgpu: fix NULL pointer dereference at tonga_check_states_equal

2016-02-22 Thread Bradley Pankow
The event_data passed from pem_fini was not cleared upon initialization. This caused NULL checks to pass and cast_const_phw_tonga_power_state to attempt to dereference an invalid pointer. Clear the event_data in pem_init and pem_fini before calling pem_handle_event. Signed-off-by: Bradley Pankow