Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b150ef84 authored by Liangliang Lu's avatar Liangliang Lu
Browse files

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: default avatarLiangliang Lu <luliang@codeaurora.org>
parent 82e598b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment