]> 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)
committerFelipe Balbi <balbi@ti.com>
Fri, 2 Mar 2012 10:12:04 +0000 (12:12 +0200)
commit27a78d6a283d6782438f72306746afe4bf44c215
treef4b1e2c44e2bed22e593e7071092c272c25ba1e7
parent8d62cd65d74d0e241b3a152f7347bb66126b705b
usb: dwc3: use proper function for setting endpoint name

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.

Cc: stable@vger.kernel.org
Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c