Searched hist:"51 ef74f6400c731827454d010b35b122103fe9f9" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/usb/musb/ |
H A D | musb_dsps.c | diff 51ef74f6400c731827454d010b35b122103fe9f9 Mon Aug 19 18:00:08 CEST 2013 Julia Lawall <Julia.Lawall@lip6.fr> 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/)
// <smpl> @@ expression e,e1; statement S; @@
*e = devm_ioremap_resource(...); if (!e1) S
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Felipe Balbi <balbi@ti.com>
|