Message ID | 153492344324191@kroah.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Patch "clocksource/drivers/stm32: Fix error return code" has been added to the 4.17-stable tree | expand |
--- a/drivers/clocksource/timer-stm32.c +++ b/drivers/clocksource/timer-stm32.c @@ -304,8 +304,10 @@ static int __init stm32_timer_init(struc to->private_data = kzalloc(sizeof(struct stm32_timer_private), GFP_KERNEL); - if (!to->private_data) + if (!to->private_data) { + ret = -ENOMEM; goto deinit; + } rstc = of_reset_control_get(node, NULL); if (!IS_ERR(rstc)) {