]> git.dujemihanovic.xyz Git - u-boot.git/commit
pwm: imx: Prevent NULL pointer dereference
authorAxel Lin <axel.lin@ingics.com>
Sat, 23 May 2015 07:16:48 +0000 (15:16 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 26 May 2015 12:13:09 +0000 (14:13 +0200)
commit16b0c0ce83ec3f8bf96de69b1c84214cacc39416
treed3277cb3ce0b5e5ee2ac3b9387b0088add824e23
parent53940a50797d4287af1c998a251170ef65927533
pwm: imx: Prevent NULL pointer dereference

pwm_id_to_reg() can return NULL, so add NULL testing to prevent NULL pointer
dereference.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/pwm/pwm-imx.c