From: Julia Lawall Date: Mon, 19 Aug 2013 16:00:08 +0000 (+0200) Subject: usb: musb: dsps: fix devm_ioremap_resource error detection code X-Git-Tag: v3.12-rc1~186^2~19^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51ef74f6400c731827454d010b35b122103fe9f9;p=pandora-kernel.git usb: musb: dsps: fix devm_ioremap_resource error detection code devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure. Furthermore, the value returned by devm_ioremap_resource should be tested. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression e,e1; statement S; @@ *e = devm_ioremap_resource(...); if (!e1) S // Signed-off-by: Julia Lawall Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed