Coccinelle: limit memdup_user transformation to GFP_KERNEL case
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 21 Sep 2016 15:48:39 +0000 (17:48 +0200)
committerMichal Marek <mmarek@suse.com>
Sat, 1 Oct 2016 21:03:09 +0000 (23:03 +0200)
commit43d96390d57aa0e61d15ce2bcb887df8516d58f5
treeba3d86262a4c413d26982a117eb43b0cd185bfba
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
Coccinelle: limit memdup_user transformation to GFP_KERNEL case

Memdup_user encapsulates a memory allocation with the flag GFP_KERNEL, so
only allow this flag in the original code.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/coccinelle/api/memdup_user.cocci