commit | ecae644a4d9be0af8b1806669c38ae4093b1a42c | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Sat May 23 15:16:48 2015 +0800 |
committer | Stefano Babic <sbabic@denx.de> | Tue May 26 14:13:09 2015 +0200 |
tree | d3277cb3ce0b5e5ee2ac3b9387b0088add824e23 | |
parent | fdb5afa93553261bfcaad843297dd19c51d2d710 [diff] |
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>