Skip to content
Commit a550bb3d authored by Oded Gabbay's avatar Oded Gabbay
Browse files

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: default avatarAlexey Skidanov <alexey.skidanov@amd.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@amd.com>
parent c448a142
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment