Revision 827108d08070c7515c14eb47e5fa03f59cfe38cf authored by Bradley Pankow on 23 February 2016, 01:11:47 UTC, committed by Alex Deucher on 24 February 2016, 17:46:05 UTC
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.

Reviewed-by:  Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Bradley Pankow <btpankow@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 39d4275
History
File Mode Size
Makefile -rw-r--r-- 2.7 KB
bpf_helpers.h -rw-r--r-- 3.9 KB
bpf_load.c -rw-r--r-- 7.5 KB
bpf_load.h -rw-r--r-- 755 bytes
fds_example.c -rw-r--r-- 4.0 KB
lathist_kern.c -rw-r--r-- 2.1 KB
lathist_user.c -rw-r--r-- 2.0 KB
libbpf.c -rw-r--r-- 3.4 KB
libbpf.h -rw-r--r-- 5.2 KB
sock_example.c -rw-r--r-- 2.7 KB
sockex1_kern.c -rw-r--r-- 648 bytes
sockex1_user.c -rw-r--r-- 979 bytes
sockex2_kern.c -rw-r--r-- 4.7 KB
sockex2_user.c -rw-r--r-- 965 bytes
sockex3_kern.c -rw-r--r-- 6.1 KB
sockex3_user.c -rw-r--r-- 1.3 KB
tcbpf1_kern.c -rw-r--r-- 2.5 KB
test_maps.c -rw-r--r-- 7.5 KB
test_verifier.c -rw-r--r-- 33.4 KB
trace_output_kern.c -rw-r--r-- 642 bytes
trace_output_user.c -rw-r--r-- 4.0 KB
tracex1_kern.c -rw-r--r-- 1.4 KB
tracex1_user.c -rw-r--r-- 403 bytes
tracex2_kern.c -rw-r--r-- 2.3 KB
tracex2_user.c -rw-r--r-- 2.9 KB
tracex3_kern.c -rw-r--r-- 2.1 KB
tracex3_user.c -rw-r--r-- 2.9 KB
tracex4_kern.c -rw-r--r-- 1.3 KB
tracex4_user.c -rw-r--r-- 1.4 KB
tracex5_kern.c -rw-r--r-- 1.9 KB
tracex5_user.c -rw-r--r-- 973 bytes
tracex6_kern.c -rw-r--r-- 611 bytes
tracex6_user.c -rw-r--r-- 1.4 KB

back to top