Commit cc34faf
mfd: atmel-hlcdc: Clean invalid sys_clk pointer
In case the Device Tree provided the LVDS PLL instead of the GCK, the
sys_clk pointer here was assigned a PTR_ERR. From then, further code in
drivers/pwm/pwm-atmel-hlcdc.c would simply test sys_clk against NULL and
treat sys_clk as valid, causing a Oops:
Unable to handle kernel paging request at virtual address fffffffe
[fffffffe] *pgd=6ffde861, *pte=00000000, *ppte=00000000
Internal error: Oops: 37 [#1] ARM
Fixes: 3887775 ("mfd: atmel-hlcdc: Obtain essential clock for LCD operation")
Signed-off-by: Aubin Constans <[email protected]>1 parent 66eb7e3 commit cc34faf
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
0 commit comments