Skip to contentSkip to conversation

ION handle already destroyed in ion_free.

PATCH In review Shailendra Verma 2 participants 2 messages Jan 17, 2015 – Jan 18, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 ION handle already destroyed in ion_free.

---
 drivers/staging/android/ion/ion.c |    1 -
 1 file changed, 1 deletion(-)
drivers/staging/android/ion/ion.c +0 -0
index 9e56d32..0d2b9a3 100644
@@ -1279,7 +1279,6 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
		if (IS_ERR(handle))
			return PTR_ERR(handle);
		ion_free(client, handle);
-		ion_handle_put(handle);
		break;
	}
	case ION_IOC_SHARE:

--
1.7.9.5

#1 lore raw
Quoted 19 lines · Shailendra Verma
---
 drivers/staging/android/ion/ion.c |    1 -
 1 file changed, 1 deletion(-)
drivers/staging/android/ion/ion.c +0 -2
index 9e56d32..0d2b9a3 100644
@@ -1279,7 +1279,6 @@ static long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 		if (IS_ERR(handle))
 			return PTR_ERR(handle);
 		ion_free(client, handle);
-		ion_handle_put(handle);
 		break;
 	}
 	case ION_IOC_SHARE:
--
Quoted 1 line

1.7.9.5

Are you sure about this? Did you test it? How?

thanks,

greg k-h