Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756176AbdHYRhE (ORCPT ); Fri, 25 Aug 2017 13:37:04 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34611 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755172AbdHYRhD (ORCPT ); Fri, 25 Aug 2017 13:37:03 -0400 From: harsha To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, harsha Subject: [PATCH] Staging:android:ion:ion_heap.c : Using WARN_ON() rather than BUG_ON() Date: Fri, 25 Aug 2017 23:05:05 +0530 Message-Id: <1503682505-18935-1-git-send-email-harshasharmaiitr@gmail.com> X-Mailer: git-send-email 1.9.1 Signed-off-by: harsha Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 609 Lines: 19 --- drivers/staging/android/ion/ion_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/ion_heap.c b/drivers/staging/android/ion/ion_heap.c index 91faa7f..476e741 100644 --- a/drivers/staging/android/ion/ion_heap.c +++ b/drivers/staging/android/ion/ion_heap.c @@ -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++; } -- 1.9.1