Amitoj Kaur Chawla 5c93f56f77 dlm: Use kmemdup instead of kmalloc and memcpy
Replace calls to kmalloc followed by a memcpy with a direct call to
kmemdup.

The Coccinelle semantic patch used to make this change is as follows:
@@
expression from,to,size,flag;
statement S;
@@

-  to = \(kmalloc\|kzalloc\)(size,flag);
+  to = kmemdup(from,size,flag);
   if (to==NULL || ...) S
-  memcpy(to, from, size);

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
2016-06-23 11:55:58 -05:00
..
2014-02-14 11:54:44 -06:00
2011-07-15 12:30:43 -05:00
2016-06-21 09:04:24 -05:00
2016-06-21 09:04:24 -05:00
2014-02-14 11:54:44 -06:00
2012-07-16 14:16:19 -05:00
2016-06-21 09:04:24 -05:00
2012-11-01 15:27:24 -05:00
2014-11-19 14:48:02 -06:00
2014-11-19 14:48:02 -06:00
2014-02-14 11:54:44 -06:00
2012-01-04 08:56:31 -06:00
2011-07-12 16:02:09 -05:00
2008-12-23 10:15:40 -06:00
2015-11-05 11:15:25 -08:00
2012-07-16 14:16:19 -05:00
2014-02-14 11:54:44 -06:00
2014-02-14 11:54:44 -06:00
2012-08-08 11:33:49 -05:00
2012-05-02 14:15:27 -05:00
2011-03-10 10:40:00 -06:00