summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJiebing Li <jiebing.li@intel.com>2015-03-10 11:25:50 +0800
committerDmitry Shmidt <dimitrysh@google.com>2017-05-15 16:57:05 +0000
commit9a83b8157a75b297e3a5f105bf209a44184ca52d (patch)
treee52863a2d23dc54f4bc952b517fa187a80443c1f /net/unix/af_unix.c
parent73661512d284dac703ffbeca68c675cebd648110 (diff)
ANDROID: usb: gadget: fix NULL pointer issue in mtp_read()
pointer dev->ep_out->desc is set to NULL if MTP function is disabled during read operation. So we need to do pointer check before access it and add spin lock protection in case it's modified at another place in future. Patchset: mtp Change-Id: I96d3d685e93276c9065a1aa7b0cbbdc2e159aa6f Signed-off-by: Jiebing Li <jiebing.li@intel.com> Signed-off-by: Wang, Yu <yu.y.wang@intel.com> Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions