mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
clocksource: fix NULL pointer deferencing issue
PD#151226: driver defect clean up #229 Change-Id: Ie37dc17d5036813958180415d2b9b4405a44c793 Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
This commit is contained in:
@@ -214,8 +214,7 @@ int clockevent_init_and_register(struct device_node *np)
|
||||
|
||||
timer = np;
|
||||
if (!timer) {
|
||||
pr_info(" * %s missing timer phandle\n",
|
||||
timer->full_name);
|
||||
pr_info(" * missing timer phandle\n");
|
||||
return -1;
|
||||
}
|
||||
if (of_property_read_string(timer, "timer_name",
|
||||
|
||||
Reference in New Issue
Block a user