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

Commit 6731e942 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

ion: msm: fix bug with handle id handling



0 is not a valid handle id value. If we get a 0 we should try to do the
dma_buf import.

Change-Id: I2b9355a5ad65c91247c0369047f921cf02908b1c
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent fa184d34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -805,7 +805,7 @@ static long msm_ion_custom_ioctl(struct ion_client *client,
					sizeof(struct ion_flush_data)))
			return -EFAULT;

		if (data.handle >= 0) {
		if (data.handle > 0) {
			handle = ion_handle_get_by_id(client, (int)data.handle);
			if (IS_ERR(handle)) {
				pr_info("%s: Could not find handle: %d\n",