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:
2a96dfa
)
clk: sunxi: fix devm_ioremap_resource error detection code
author
Himangi Saraogi
<himangi774@gmail.com>
Sat, 28 Jun 2014 17:23:55 +0000
(22:53 +0530)
committer
Mike Turquette
<mturquette@linaro.org>
Wed, 2 Jul 2014 06:37:34 +0000
(23:37 -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>
Acked-by Boris BREZILLON <boris.brezillon@free-electrons.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/sunxi/clk-sun6i-apb0-gates.c
patch
|
blob
|
history
diff --cc
drivers/clk/sunxi/clk-sun6i-apb0-gates.c
Simple merge