Skip to content

Commit

Permalink
clocksource: fix NULL pointer deferencing issue
Browse files Browse the repository at this point in the history
PD#151226: driver defect clean up
torvalds#229

Change-Id: Ie37dc17d5036813958180415d2b9b4405a44c793
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
  • Loading branch information
Jiamin Ma authored and akiernan committed Nov 3, 2022
1 parent 606af33 commit e704b09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/amlogic/clocksource/meson_bc_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e704b09

Please sign in to comment.