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
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
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