commit | 3711c22b8964d35cf7b9c294d83f8110e7b0ba87 | [log] [tgz] |
---|---|---|
author | Liangliang Lu <luliang@codeaurora.org> | Mon Jun 25 15:29:41 2018 +0800 |
committer | Liangliang Lu <luliang@codeaurora.org> | Mon Jun 25 15:54:01 2018 +0800 |
tree | 13028b309ce4a7937cbcb96bc2dd31edb44cf72e | |
parent | f65c42f237332a57f7d6ab4b887aecc007bda3dc [diff] |
usb: gadget: Fix NULL pointer access if NCM not instantiated ncm_ctrlrequest() will be called in android_setup(), in the case NCM instance is not created, structure _ncm_setup_desc is not created, it will run into a NULL pointer exception. Fix this by checking _ncm_setup_desc is NULL or not. Change-Id: If8048a03a7ab46138739472327a17c65ce158382 Signed-off-by: Liangliang Lu <luliang@codeaurora.org>