USB: gadget: android: Add NULL check for platform data
Add NULL check for platform data which might otherwise
cause NULL pointer derefernce in case pdata is not defined
for the target.
Change-Id: Ie482f107048acc5c4ba0993196af3902af3b81d6
Signed-off-by:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please sign in to comment