https://github.com/torvalds/linux
Revision 3df9fcd59fd829da046ca63518ad8e51482a39e0 authored by Himangi Saraogi on 10 July 2014, 06:25:00 UTC, committed by Greg Kroah-Hartman on 12 July 2014, 01:23:49 UTC
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>
1 parent 9820ccb
History
Tip revision: 3df9fcd59fd829da046ca63518ad8e51482a39e0 authored by Himangi Saraogi on 10 July 2014, 06:25:00 UTC
phy: omap-usb2: fix devm_ioremap_resource error detection code
Tip revision: 3df9fcd
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 275.5 KB
Makefile -rw-r--r-- 51.0 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top