From: Oded Gabbay Date: Thu, 4 Dec 2014 12:09:02 +0000 (+0200) Subject: amdkfd: Set *buffer_ptr to NULL in case of error X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a550bb3d5313c3d894cac552e13037394ac78fd4;p=pandora-kernel.git 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-diff-tree failed