05 Jan, 2012
1 commit
-
Error handling code following a kmalloc should free the allocated data.
The label fail_alloc already does this for rfkill.A simplified version of the semantic match that finds the problem is as
follows: (http://coccinelle.lip6.fr)//
@r exists@
local idexpression x;
statement S;
identifier f1;
position p1,p2;
expression *ptr != NULL;
@@x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
...
if (x == NULL) S
}
x->f1
...>
(
return \(0\|\|ptr\);
|
return@p2 ...;
)@script:python@
p1 << r.p1;
p2 << r.p2;
@@print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
//Signed-off-by: Julia Lawall
Signed-off-by: John W. Linville
01 Dec, 2011
1 commit
-
This patch converts the drivers in net/rfkill/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.Cc: "David S. Miller"
Cc: "John W. Linville"
Cc: Johannes Berg
Cc: Antonio Ospite
Cc: Rhyland Klein
Signed-off-by: Axel Lin
Acked-by: Rhyland Klein
Signed-off-by: John W. Linville
04 Oct, 2011
1 commit
-
Add a gpio setup function which gives a chance to set up
platform specific configuration such as pin multiplexing,
input/output direction at the runtime or booting time.Signed-off-by: Sangwook Lee
Signed-off-by: John W. Linville
20 May, 2011
1 commit
-
This adds a new generic gpio rfkill driver to support rfkill switches
which are controlled by gpios. The driver also supports passing in
data about the clock for the radio, so that when rfkill is blocking,
it can disable the clock.This driver assumes platform data is passed from the board files to
configure it for specific devices.Original-patch-by: Anantha Idapalapati
Signed-off-by: Rhyland Klein
Signed-off-by: John W. Linville