summaryrefslogtreecommitdiff
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2016-11-01 13:00:57 -0700
committerHemant Kumar <hemantk@codeaurora.org>2016-11-01 19:21:33 -0700
commit02153a0f439130b3a65ae42d9ef20381e59a4774 (patch)
tree6170d1209eac2ae128eb71afaf8248459bab83f1 /lib/mpi/mpicoder.c
parentbbd8499b43c68d14ee8d4be46680f59516f81a70 (diff)
usb: gadget: Do not disconnect unregistered dev
configfs_composite_unbind sets the gadget data to null. Therefore, add check in android_disconnect function to make sure that cdev is not NULL. This prevents NULL pointer dereference upon accessing cdev. Change-Id: Ib59cdd88557d917c85d8d33968efc295bcef2280 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions