diff options
| author | Vladimir Zapolskiy <[email protected]> | 2016-03-06 01:21:46 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2016-03-23 16:11:45 +0000 |
| commit | c5857e3f94ab2719dfac649a146cb5dd6f21fcf3 (patch) | |
| tree | e479810eace5b41648c2783aedf5a20383c5706c /drivers/pwm/pwm-omap-dmtimer.c | |
| parent | pwm: rcar: Depend on ARCH_RENESAS instead of ARCH_SHMOBILE (diff) | |
| download | kernel-c5857e3f94ab2719dfac649a146cb5dd6f21fcf3.tar.gz kernel-c5857e3f94ab2719dfac649a146cb5dd6f21fcf3.zip | |
pwm: brcmstb: Fix check of devm_ioremap_resource() return code
The change fixes potential oops while accessing iomem on invalid address
if devm_ioremap_resource() fails due to some reason.
The devm_ioremap_resource() function returns ERR_PTR() and never returns
NULL, which makes useless a following check for NULL.
Signed-off-by: Vladimir Zapolskiy <[email protected]>
Fixes: 3a9f5957020f ("pwm: Add Broadcom BCM7038 PWM controller support")
Acked-by: Florian Fainelli <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-omap-dmtimer.c')
0 files changed, 0 insertions, 0 deletions
