diff options
| author | Cristina Opriceana <[email protected]> | 2015-03-28 02:57:34 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-04-01 17:26:58 +0200 |
| commit | 45de432775d6df1b349b02c4d783237937278906 (patch) | |
| tree | 3b5005cb3d215ef7805b0de5864e911ca5f13625 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 66687e6aed4ab25ab5aac52ed94b277c4db2093f (diff) | |
Staging: rtl8712: Use memdup_user() instead of copy_from_user()
Use memdup_user() to avoid its duplicated implementation and simplify
code. memdup_user() uses GFP_KERNEL instead of GFP_ATOMIC,
which is valid because copy_from_user() might sleep and it's useless
to make the allocation atomic. Found with coccinelle.
Signed-off-by: Cristina Opriceana <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions