commit | 49bce159fb3750eaf586c0b583a4930ca9db0d9c | [log] [tgz] |
---|---|---|
author | Vladimir Zapolskiy <vz@mleia.com> | Sun Mar 29 05:43:22 2015 +0300 |
committer | Felipe Balbi <balbi@ti.com> | Mon Apr 27 14:38:34 2015 -0500 |
tree | eb0e8819d5ed19d840ecbe4d78099348d1b98c04 | |
parent | 228321904089b166a034711dd4f94dc657b39227 [diff] |
usb: gadget: xilinx: fix devm_ioremap_resource() check devm_ioremap_resource() returns IOMEM_ERR_PTR() and it never returns NULL, fix the check to prevent access to invalid virtual address. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Reviewed-by: Sören Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Felipe Balbi <balbi@ti.com>