beagleboard / linux

The official Read Only BeagleBoard and BeagleBone kernel repository https://git.beagleboard.org/beagleboard/linux
http://beagleboard.org/source
Other
726 stars 563 forks source link

pm33xx.c: omap_rtc NULL dereferencing fixed #279

Open SergeySheleg opened 1 year ago

SergeySheleg commented 1 year ago

On some board designs rtc is turned off so rtc node in devicetree has status = "disabled". In this case(according to am33xx_pm_rtc_setup) rtc-only mode is disabled and omap_rtc remains NULL. However, standby mode is still available. Implementation of am33xx_pm_end in vanilla kernel 5.2+ causes NULL dereferencing of omap_rtc for such boards. This patch fixes that.

RobertCNelson commented 1 year ago

Thanks @SergeySheleg ! Ps, have you posted for upstream, just want to document the patch for our side. ;)

Regards,