Skip to contentSkip to conversation

Staging:android:ion:ion_heap.c : Using WARN_ON() rather than BUG_ON()

PATCH New harsha 1 participant 1 message Aug 25, 2017 Staging

lore
Share & tools
lore

harsha

author
#0 lore raw

PATCH 1/1 Staging:android:ion:ion_heap.c : Using WARN_ON() rather than BUG_ON()

---
 drivers/staging/android/ion/ion_heap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/android/ion/ion_heap.c +1 -1
index 91faa7f..476e741 100644
@@ -49,7 +49,7 @@ void *ion_heap_map_kernel(struct ion_heap *heap,
 		int npages_this_entry = PAGE_ALIGN(sg->length) / PAGE_SIZE;
 		struct page *page = sg_page(sg);
 
-		BUG_ON(i >= npages);
+		WARN_ON(i >= npages);
 		for (j = 0; j < npages_this_entry; j++)
 			*(tmp++) = page++;
 	}
Signature · 1 line
1.9.1