From af95d1f652435410895cf4a97e5d09609f55f34c Mon Sep 17 00:00:00 2001 From: Vyacheslav Cherkashin Date: Fri, 13 Dec 2013 20:21:55 +0400 Subject: [PATCH] [FIX] dereference null pointer in lcd_init() Change-Id: Ia5a30859853bf975a43d9dca05b4158eb972adbc Signed-off-by: Vyacheslav Cherkashin --- energy/lcd/lcd_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/energy/lcd/lcd_base.c b/energy/lcd/lcd_base.c index 75931c8..a2521ba 100644 --- a/energy/lcd/lcd_base.c +++ b/energy/lcd/lcd_base.c @@ -283,7 +283,7 @@ int lcd_init(void) for (i = 0; i < lcd_ops_cnt; ++i) { ops = lcd_ops[i](); if (ops == NULL) { - printk("error %s [ops == NULL]\n", ops->name); + printk("error %s [ops == NULL]\n", __func__); continue; } -- 2.7.4