summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@amd.com>2014-12-04 14:09:02 +0200
committerOded Gabbay <oded.gabbay@amd.com>2014-12-04 14:09:02 +0200
commita550bb3d5313c3d894cac552e13037394ac78fd4 (patch)
tree18822bf706a658efa77bc300625c3691ecd83cc0 /tools/perf/util/scripting-engines/trace-event-perl.c
parentc448a142a714b4ad25ebd4c872b7c9752e428c88 (diff)
amdkfd: Set *buffer_ptr to NULL in case of error
In function acquire_packet_buffer() we may return -ENOMEM. In that case, we should set the *buffer_ptr to NULL, so that calling functions which check the *buffer_ptr value as a criteria for success, will know that acquire_packet_buffer() failed. Reviewed-by: Alexey Skidanov <alexey.skidanov@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions