diff options
| author | Julia Lawall <[email protected]> | 2013-08-19 18:00:08 +0200 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2013-08-27 14:17:03 -0500 |
| commit | 51ef74f6400c731827454d010b35b122103fe9f9 (patch) | |
| tree | 31da411ab585eadc5dcff11996d28d2eb9157457 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 272b05a9885bfe8575beac0e4fa1a1bc121f17ec (diff) | |
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 <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions