summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorDavid Sin <davidsin@ti.com>2010-09-07 10:17:56 -0500
committerRicardo Perez Olivares <x0081762@ti.com>2010-09-14 19:27:51 -0500
commitd272e37d98254bd0d221700adc4f024fbedea299 (patch)
tree394c6578cd8f2313d8ad3120b4cc51465ecf252d /drivers/media
parent87500acc3257ed2f2804f941dd893d3644faa5b4 (diff)
TILER: Remove BUG_ON macros.
Replace BUG_ON macros with WARN_ON. Signed-off-by: David Sin <davidsin@ti.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/tiler/tiler.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/tiler/tiler.c b/drivers/media/video/tiler/tiler.c
index 206f50d77dd4..655d72a210b2 100644
--- a/drivers/media/video/tiler/tiler.c
+++ b/drivers/media/video/tiler/tiler.c
@@ -392,7 +392,7 @@ done:
static void _m_try_free_group(struct gid_info *gi)
{
if (gi && list_empty(&gi->areas) && list_empty(&gi->onedim)) {
- BUG_ON(!list_empty(&gi->reserved));
+ WARN_ON(!list_empty(&gi->reserved));
list_del(&gi->by_pid);
/* if group is tracking kernel objects, we may free even
@@ -594,7 +594,7 @@ static void _m_free_process_info(struct process_info *pi)
list_for_each_entry_safe(_b, _b_, &pi->bufs, by_pid)
_m_unregister_buf(_b);
- BUG_ON(!list_empty(&pi->bufs));
+ WARN_ON(!list_empty(&pi->bufs));
/* free all allocated blocks, and remove unreferenced ones */
list_for_each_entry_safe(gi, gi_, &pi->groups, by_pid) {
@@ -630,13 +630,13 @@ static void _m_free_process_info(struct process_info *pi)
/* if group is still alive reserved list should have been
emptied as there should be no reference on those blocks */
if (need2free) {
- BUG_ON(!list_empty(&gi->onedim));
- BUG_ON(!list_empty(&gi->areas));
+ WARN_ON(!list_empty(&gi->onedim));
+ WARN_ON(!list_empty(&gi->areas));
_m_try_free_group(gi);
}
}
- BUG_ON(!list_empty(&pi->groups));
+ WARN_ON(!list_empty(&pi->groups));
list_del(&pi->list);
kfree(pi);
}
@@ -1435,10 +1435,10 @@ static void __exit tiler_exit(void)
_m_free_process_info(pi);
/* all lists should have cleared */
- BUG_ON(!list_empty(&blocks));
- BUG_ON(!list_empty(&procs));
- BUG_ON(!list_empty(&orphan_onedim));
- BUG_ON(!list_empty(&orphan_areas));
+ WARN_ON(!list_empty(&blocks));
+ WARN_ON(!list_empty(&procs));
+ WARN_ON(!list_empty(&orphan_onedim));
+ WARN_ON(!list_empty(&orphan_areas));
mutex_unlock(&mtx);