12 Sep, 2009
1 commit
-
Error handling code following a kmalloc should free the allocated data.
The semantic match that finds the problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)//
@r exists@
local idexpression x;
statement S;
expression E;
identifier f,f1,l;
position p1,p2;
expression *ptr != NULL;
@@x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
...
if (x == NULL) S
}
(
x->f1 = E
|
(x->f1 == NULL || ...)
|
f(...,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: David S. Miller
01 Feb, 2009
1 commit
-
Base versions handle constant folding now.
Signed-off-by: Harvey Harrison
Signed-off-by: David S. Miller
22 Jan, 2009
1 commit
-
Also remove unneeded last_rx update from Synclink drivers.
Synclink part mostly by Stephen Hemminger.Signed-off-by: Krzysztof Hałasa
Signed-off-by: David S. Miller
22 Dec, 2008
1 commit
-
Signed-off-by: Krzysztof Hałasa
22 Nov, 2008
1 commit
-
Signed-off-by: Krzysztof Hałasa
24 Jul, 2008
1 commit
-
Signed-off-by: Krzysztof Hałasa
12 May, 2008
1 commit
-
The syncppp layer wants a mid-level netdev private pointer.
It was using netdev->priv but that only worked by accident,
and thus this scheme was broken when the device private
allocation strategy changed.Add a proper mid-layer private pointer for uses like this,
update syncppp and all users, and remove the HDLC_PPP broken
tag from drivers/net/wan/KconfigSigned-off-by: David S. Miller
06 Feb, 2008
1 commit
-
Removes now unneeded struct hdlc_device_desc
Signed-off-by: Krzysztof Halasa
Signed-off-by: Jeff Garzik
29 Jan, 2008
1 commit
-
Signed-off-by: Al Viro
Signed-off-by: Jeff Garzik
11 Oct, 2007
1 commit
-
Since hardware header operations are part of the protocol class
not the device instance, make them into a separate object and
save memory.Signed-off-by: Stephen Hemminger
Signed-off-by: David S. Miller
03 Mar, 2007
1 commit
-
Switching HDLC devices from Ethernet-framing mode caused stale ethernet
function assignments within net_device.Signed-off-by: Krzysztof Halasa
Signed-off-by: David S. Miller
27 Sep, 2006
1 commit
-
This patch enables building of individual WAN protocol support
routines (parts of generic HDLC) as separate modules.
All protocol-private definitions are moved from hdlc.h file
to protocol drivers. User-space interface and interface
between generic HDLC and underlying low-level HDLC drivers
are unchanged.Signed-off-by: Krzysztof Halasa
Signed-off-by: Jeff Garzik
22 Jul, 2006
1 commit
-
WAN: Fixed a problem with PPP/raw HDLC/X.25 protocols not doing
netif_dormant_off() at startup.Signed-off-by: Krzysztof Halasa
Signed-off-by: David S. Miller
13 Jul, 2005
1 commit
-
tr_type_trans(), hippi_type_trans() left as-is.
Signed-off-by: Alexey Dobriyan
Signed-off-by: David S. Miller
17 Apr, 2005
1 commit
-
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.Let it rip!