git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9820ccb
)
phy: omap-usb2: fix devm_ioremap_resource error detection code
author
Himangi Saraogi
<himangi774@gmail.com>
Thu, 10 Jul 2014 06:25:00 +0000
(11:55 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 01:23:49 +0000
(18:23 -0700)
devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure.
A simplified version of the semantic match that finds this problem is as
follows:
// <smpl>
@@
expression e,e1;
statement S;
@@
*e = devm_ioremap_resource(...);
if (!e1) S
// </smpl>
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/phy-omap-usb2.c
patch
|
blob
|
history
diff --cc
drivers/phy/phy-omap-usb2.c
Simple merge