]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: dwc3: use proper function for setting endpoint name
authorAnton Tikhomirov <av.tikhomirov@samsung.com>
Thu, 23 Feb 2012 06:38:46 +0000 (15:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:52:29 +0000 (09:52 -0700)
commit289bd26e44bc08df86466f7bdf5257d28765b5b1
tree5bbee36195b898069b326d4ed50f74c9a4e3e1cf
parent8b2c433eb4ca5df49724fc77cef209ab2a3b54d1
usb: dwc3: use proper function for setting endpoint name

commit 27a78d6a283d6782438f72306746afe4bf44c215 upstream.

It's wrong to use the size of array as an argument for strncat.
Memory corruption is possible. strlcat is exactly what we need here.

Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c