]> git.baikalelectronics.ru Git - kernel.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)
commitc82bbb6c9bf71bce05091a1daa2c5330f8ff7bd5
treef4b1e2c44e2bed22e593e7071092c272c25ba1e7
parent7104d41f6bed18be8344e6e6a4cb6822d192ce95
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