From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751510AbdBUFjQ (ORCPT ); Tue, 21 Feb 2017 00:39:16 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34098 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750837AbdBUFjO (ORCPT ); Tue, 21 Feb 2017 00:39:14 -0500 Date: Mon, 20 Feb 2017 21:39:11 -0800 From: Dmitry Torokhov To: Paul Burton Cc: Miguel Ojeda Sandonis , Ralf Baechle , linux-kernel@vger.kernel.org Subject: [PATCH] auxdisplay: img-ascii-lcd: add missing sentinel entry in img_ascii_lcd_matches Message-ID: <20170221053911.GA3229@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The OF device table must be terminated, otherwise we'll be walking past it and into areas unknown. This causes KASAN errors reported by 0day kernel testing robot. Reported-by: Fengguang Wu Tested-by: Fengguang Wu Fixes: 0cad855fbd08 ("auxdisplay: img-ascii-lcd: driver for simple ASCII...") Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov --- drivers/auxdisplay/img-ascii-lcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/auxdisplay/img-ascii-lcd.c b/drivers/auxdisplay/img-ascii-lcd.c index bf43b5d2aafc..83f1439e57fd 100644 --- a/drivers/auxdisplay/img-ascii-lcd.c +++ b/drivers/auxdisplay/img-ascii-lcd.c @@ -218,6 +218,7 @@ static const struct of_device_id img_ascii_lcd_matches[] = { { .compatible = "img,boston-lcd", .data = &boston_config }, { .compatible = "mti,malta-lcd", .data = &malta_config }, { .compatible = "mti,sead3-lcd", .data = &sead3_config }, + { /* sentinel */ } }; /** -- 2.11.0.483.g087da7b7c-goog -- Dmitry