Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e53c3113 authored by Vinayak Menon's avatar Vinayak Menon
Browse files

ion: fix an incorrect pointer dereference



ion_alloc_dmabuf dereferences an incorrect pointer when
dma_buf_export fails. Fix it.

Change-Id: I3abdb3387d572c67ec041721c6ba10b060daf298
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 676bb42b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1089,7 +1089,7 @@ struct dma_buf *ion_alloc_dmabuf(size_t len, unsigned int heap_id_mask,
	dmabuf = dma_buf_export(&exp_info);
	if (IS_ERR(dmabuf)) {
		_ion_buffer_destroy(buffer);
		kfree(dmabuf->exp_name);
		kfree(exp_info.exp_name);
	}

	return dmabuf;