summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-09-11 06:22:09 +0000
committerDavid S. Miller <davem@davemloft.net>2009-09-11 12:54:34 -0700
commita4b11649618ef5366ee553f4083449d6bee5d8ec (patch)
tree50d7ffad6a9d1ab544e8ef6b7d9e0ec93ba6bb17 /tools/perf/scripts/python/netdev-times.py
parent966a5d1b85c45f1b55abbc1b595e0b5ca14b87db (diff)
downloadkernel-a4b11649618ef5366ee553f4083449d6bee5d8ec.tar.gz
drivers/net/phy: introduce missing kfree
Error handling code following a kzalloc should free the allocated data. The semantic match that finds the problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @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 <... when != x when != if (...) { <+...x...+> } ( x->f1 = E | (x->f1 == NULL || ...) | f(...,x->f1,...) ) ...> ( return \(0\|<+...x...+>\|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) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
Al Viro 2012-12-12SUNRPC handle EKEYEXPIRED in call_refreshresultAndy Adamson 2012-07-30NFS: Only initialize the ACL client in the v3 caseBryan Schumaker 2012-07-30NFS: Create a try_mount rpc opBryan Schumaker 2012-07-17NFS: Split out NFS v2 inode operationsBryan Schumaker 2012-07-16Merge commit '9249e17fe094d853d1ef7475dd559a2cc7e23d42' into nfs-for-3.6Trond Myklebust 2012-07-14nfs: clean up ->create in nfs_rpc_opsMiklos Szeredi 2012-06-29NFS: Create an write_pageio_init() functionBryan Schumaker 2012-06-29NFS: Create an read_pageio_init() functionBryan Schumaker 2012-06-29NFS: Create an alloc_client rpc_opBryan Schumaker 2012-06-29NFS: Create a free_client rpc_opBryan Schumaker 2012-06-29NFS: Create a return_delegation rpc opBryan Schumaker 2012-06-29NFS: Create a have_delegation rpc_opBryan Schumaker 2012-06-11NFSv2: EOF incorrectly set on short readSachin Prabhu 2012-05-29Merge tag 'nfs-for-3.5-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfsLinus Torvalds 2012-05-10vfs: make it possible to access the dentry hash/len as one 64-bit entryLinus Torvalds 2012-04-27NFS: Remove extra rpc_clnt argument to proc_lookupBryan Schumaker 2012-04-27NFS: Create a submount rpc_opBryan Schumaker 2012-04-27NFS: create common nfs_pgio_header for both read and writeFred Isaman 2012-04-27NFS: add a struct nfs_commit_data to replace nfs_write_data in commitsFred Isaman 2012-03-21NFS: Remove nfs4_setup_sequence from generic rename codeBryan Schumaker 2012-03-21NFS: Remove nfs4_setup_sequence from generic unlink codeBryan Schumaker 2012-03-21NFS: Remove nfs4_setup_sequence from generic read codeBryan Schumaker 2012-03-21NFS: Remove nfs4_setup_sequence from generic write codeBryan Schumaker