ION handle already destroyed in ion_free.
PATCH 2/2 ION handle already destroyed in ion_free.
Signed-off-by Shailendra Verma <[email protected]>
--- drivers/staging/android/ion/ion.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/android/ion/ion.c +0 -0
@@ -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
Greg Kroah-Hartman
maintainerQuoted 19 lines · Shailendra Verma
Signed-off-by Shailendra Verma <[email protected]>--- drivers/staging/android/ion/ion.c | 1 - 1 file changed, 1 deletion(-)drivers/staging/android/ion/ion.c +0
-2@@ -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