aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorHauke Mehrtens <[email protected]>2020-08-20 19:14:25 +0200
committerThierry Reding <[email protected]>2020-09-24 09:18:13 +0200
commitb39c0615d0667b3a6f2f5c4bf99ffadf3b518bb1 (patch)
tree9d1687967df0543b7087dd6f8964f1052af5beed /lib/test_overflow.c
parentbce54366946a7a190a1df74f6f605412f731709c (diff)
pwm: img: Fix null pointer access in probe
dev_get_drvdata() is called in img_pwm_runtime_resume() before the driver data is set. When pm_runtime_enabled() returns false in img_pwm_probe() it calls img_pwm_runtime_resume() which results in a null pointer access. This patch fixes the problem by setting the driver data earlier in the img_pwm_probe() function. This crash was seen when booting the Imagination Technologies Creator Ci40 (Marduk) with kernel 5.4 in OpenWrt. Fixes: e690ae526216 ("pwm: img: Add runtime PM") Signed-off-by: Hauke Mehrtens <[email protected]> Acked-by: Lee Jones <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions