Commit f0f95d80 authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Bryan Huntsman
Browse files

USB: Trivial cleanup in MSM drivers



This patch does the following cleanup:

1. Use strncpy() instead of strcpy()
2. Add NULL reference checks
3. Remove unnecessary NULL checks
3. Fix accessing dangling pointers
4. Pass target's string length as length argument to memcmp().

Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>

Conflicts:

	drivers/usb/gadget/android.c
parent f6d7d1a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment