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

Commit 7738650d authored by Jiebing Li's avatar Jiebing Li Committed by Amit Pundir
Browse files

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: default avatarJiebing Li <jiebing.li@intel.com>
Signed-off-by: default avatarWang, Yu <yu.y.wang@intel.com>
Signed-off-by: default avatarRuss Weight <russell.h.weight@intel.com>
parent 7e19de36
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