summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubin K G <subin.kg@ti.com>2011-04-20 10:42:04 -0500
committerSebastien Jan <s-jan@ti.com>2011-06-01 08:58:36 +0200
commitc83706efcd3804b0cb7627cccbdb69a9ca8ae2b1 (patch)
tree22811da9b2280b7d416ddb975bbca5d7f7297df2
parentd659104e607021cb67ef5b38ad1f10e1c15b5105 (diff)
TILER: Use owner's pid to notify devh
This is with respect to the change made at the deh layer. In earlier implementation devh will always take the current pid and use that to send the death notification.This was causing some issue because some times the process which acquired the handle may not the one releasing the handle,and in that case,will be sending the wrong pid.In order to take care of this issue always use the stored pid in driver's private data to send the notification. Change-Id: I50efe3a135975d0d88634892c886a5c7f52ae4f6 Signed-off-by: Subin K G <subin.kg@ti.com> Signed-off-by: Andy Gross <andy.gross@ti.com>
-rw-r--r--drivers/media/video/tiler/tiler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/tiler/tiler.c b/drivers/media/video/tiler/tiler.c
index 97445347ab1f..c9e345d41fb9 100644
--- a/drivers/media/video/tiler/tiler.c
+++ b/drivers/media/video/tiler/tiler.c
@@ -854,7 +854,7 @@ static void _m_free_process_info(struct process_info *pi)
bool ai_autofreed, need2free;
if (!list_empty(&pi->bufs))
- tiler_notify_event(TILER_DEVICE_CLOSE, NULL);
+ tiler_notify_event(TILER_DEVICE_CLOSE, (void *)pi->pid);
/* unregister all buffers */
list_for_each_entry_safe(_b, _b_, &pi->bufs, by_pid)