]> 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)
commit4474ca8ceb17d8c9c5387202240ebcd95bbf833b
treef4b1e2c44e2bed22e593e7071092c272c25ba1e7
parent4be5762f666665199f18814b6d43156c563e3fa1
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