From a550bb3d5313c3d894cac552e13037394ac78fd4 Mon Sep 17 00:00:00 2001 From: Oded Gabbay Date: Thu, 4 Dec 2014 14:09:02 +0200 Subject: [PATCH] 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 Signed-off-by: Oded Gabbay --- Reading git-format-patch failed