From: Laura Abbott Date: Fri, 13 Dec 2013 22:23:57 +0000 (-0800) Subject: gpu: ion: Don't call ion_buffer_put on error path X-Git-Tag: v3.14-rc1~150^2~454 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55808b8d4dbd907834ac11e4959ef7d7040c3982;p=pandora-kernel.git gpu: ion: Don't call ion_buffer_put on error path If dma_buf_fd fails, the dma_buf needs to be cleaned up by calling dma_buf_put. dma_buf_put will call ion_dma_buf_release which in turn calls ion_buffer_put to clean up the buffer reference. Calling ion_buffer_put after dma_buf_put drops the reference count by one more which is incorrect. Fix this by getting rid of the extra ion_buffer_put call. Signed-off-by: Laura Abbott [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed