Skip to contentSkip to conversation

Staging:android:ion:ion_system_heap.c : Using WARN_ON() rather than BUG_ON() Signed-off-by: harsha <[email protected]>

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_system_heap.c : Using WARN_ON() rather than BUG_ON() Signed-off-by: harsha <[email protected]>

---
 drivers/staging/android/ion/ion_system_heap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/android/ion/ion_system_heap.c +2 -1
index 4dc5d7a..46125bc 100644
@@ -39,7 +39,8 @@ static int order_to_index(unsigned int order)
 	for (i = 0; i < NUM_ORDERS; i++)
 		if (order == orders[i])
 			return i;
-	BUG();
+	WARN_ON();
+
 	return -1;
 }
 
Signature · 1 line
1.9.1