]> git.karo-electronics.de Git - linux-beck.git/commit
USB: serial: cp210x: use kmemdup
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Thu, 19 May 2016 14:04:36 +0000 (19:34 +0530)
committerJohan Hovold <johan@kernel.org>
Fri, 15 Jul 2016 12:23:21 +0000 (14:23 +0200)
commitd6c4dc3bf4e934fae7002f296aaef4b578f7ca14
treebbd9f52d4c241faff29e296b12faf2fbf040b8d8
parentd8d841e8332779fae2b18420d39ef407ea3729da
USB: serial: cp210x: use kmemdup

Use kmemdup when some other buffer is immediately copied into allocated
region. It replaces call to allocation followed by memcpy, by a single
call to kmemdup.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c