commit | f0f95d80188c549983738de738c2007928c0d582 | [log] [tgz] |
---|---|---|
author | Pavankumar Kondeti <pkondeti@codeaurora.org> | Fri Sep 23 11:38:57 2011 +0530 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Tue Oct 04 09:51:50 2011 -0700 |
tree | 976e4e02fdda7cb17c7cf0d5c334726614a0d84e | |
parent | f6d7d1a1136024343ea79ecb6180bed708589718 [diff] |
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: Pavankumar Kondeti <pkondeti@codeaurora.org> Conflicts: drivers/usb/gadget/android.c