diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-08-19 05:04:54 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 17:20:45 -0300 |
commit | fb6609280db902bd5d34445fba1c926e95e63914 (patch) | |
tree | 13286596c1bbea4a203f63dd2a69a09794b8cd6a /drivers/media/usb/hackrf/hackrf.c | |
parent | 8eb14e8084b0f39dbf23dcd0c263fc2fac862048 (diff) | |
download | linux-fb6609280db902bd5d34445fba1c926e95e63914.tar.gz linux-fb6609280db902bd5d34445fba1c926e95e63914.tar.bz2 linux-fb6609280db902bd5d34445fba1c926e95e63914.zip |
[media] dvb_frontend: Use memdup_user() rather than duplicating its implementation
* Reuse existing functionality from memdup_user() instead of keeping
duplicate source code.
This issue was detected by using the Coccinelle software.
* Return directly if this copy operation failed.
* Replace the specification of data structures by pointer dereferences
to make the corresponding size determination a bit safer according to
the Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/hackrf/hackrf.c')
0 files changed, 0 insertions, 0 deletions