[FIX] dereference null pointer in lcd_init()
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 13 Dec 2013 16:21:55 +0000 (20:21 +0400)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 16 Dec 2013 07:14:30 +0000 (07:14 +0000)
Change-Id: Ia5a30859853bf975a43d9dca05b4158eb972adbc
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
energy/lcd/lcd_base.c

index 75931c8..a2521ba 100644 (file)
@@ -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;
                }