commit | baa169bed66ac8d131d5dd4b64d9c8867a8d59e4 | [log] [tgz] |
---|---|---|
author | Liangliang Lu <luliang@codeaurora.org> | Wed Oct 18 16:35:18 2017 +0800 |
committer | Pratham Pratap <prathampratap@codeaurora.org> | Sun Dec 10 16:22:31 2017 +0530 |
tree | 166865e60c03c038a86ff3e8c9def3734b5d0a27 | |
parent | 0a1aee549df22bce611d69c13e44b21ab8995f0c [diff] |
usb: gadget: Add check gadget function bind or not For NCM gadget function, net device structure opts->net will be freed when NCM unbind, but user space related device node doesn't know it, will access net structre without checking it exist or not, finally lead to crash. Fix this by adding check gadget function bind or not. Change-Id: I6af9e3868f71e7fa923600721e1f716508de9b55 Signed-off-by: Liangliang Lu <luliang@codeaurora.org>