Coccinelle: Add api/memdup_user
authorNicolas Palix <npalix@diku.dk>
Tue, 24 Aug 2010 15:39:07 +0000 (17:39 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 31 Aug 2010 09:37:54 +0000 (11:37 +0200)
commit034174598bc8ffd9586432852502e368a43ef0f1
treef49d60d39b1a7c7b67d27d09c54214f5e76172c0
parent0426a97c4b672166cbcfdc7b18466d4f207f7a36
Coccinelle: Add api/memdup_user

Use kmemdup_user rather than duplicating its implementation
This is a little bit restricted to reduce false positives

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/api/memdup_user.cocci [new file with mode: 0644]