diff options
author | Stephane Eranian <[email protected]> | 2010-10-04 12:00:02 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-10-04 12:47:20 +0200 |
commit | 540804b5c52065a87d826f7714b18a3ec0b269f9 (patch) | |
tree | 71144b372d615c9c188860f9eaea062bdb8cb1c5 /net/unix/sysctl_net_unix.c | |
parent | d6dad199a10423ce37b8bfec1f055c380dc4a3d5 (diff) |
perf_events: Fix invalid pointer when pid is invalid
This patch fixes an error in perf_event_open() when the pid
provided by the user is invalid. find_lively_task_by_vpid()
does not return NULL on error but an error code. Without the
fix the error code was silently passed to find_get_context()
which would eventually cause a invalid pointer dereference.
Signed-off-by: Stephane Eranian <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions