commit | 77b52e37aed2156d4565fe3fa8595459f3204b1a | [log] [tgz] |
---|---|---|
author | Vijayavardhan Vennapusa <vvreddy@codeaurora.org> | Fri Jul 14 16:47:10 2017 +0530 |
committer | Mayank Rana <mrana@codeaurora.org> | Fri Jul 21 11:25:10 2017 -0700 |
tree | b8e8f7d7411cd272171e67cedd7d4301eac66e26 | |
parent | 4bb2701f57dc4d3229e2797205d27c248a421c66 [diff] |
USB: f_accessory: Check for length before updating accessory string It is possible that host sends SEND_STRING control request with zero length and in that case, driver ends up setting string as NULL. This results in CTS failure for accessory test. Hence add check for length and update string only if length is nonzero. Change-Id: I4594a46f830f45fc49f80a74ec6042383edf007d Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>