summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2016-05-02 11:09:00 -0700
committerKyle Yan <kyan@codeaurora.org>2016-06-10 15:14:12 -0700
commit9f9acf870f64fe5edeee8f76482568fbfe925bd4 (patch)
treef48ceda0dbfc4b5d81be852bc5f88070ed05fa1f /scripts/objdiff
parentff1259b38e88824ec1c8208091e475c55d6f8204 (diff)
usb: gadget: f_mtp: Fix issue of NULL pointer access in mtp_read
MTP usb device node created as a part of mtp function init call. Userspace can read/write to MTP device using this node. If MTP is not enabled in the composition and trying to read mtp_usb dev node from the userspace leading to null pointer access in mtp_read. Do not access ep OUT maxpacket size in mtp_read. First block on mtp_read until the state become online which doesn't wakeup from the thread and expecting for the read completion or state change which occurs as a part of set_alt. Change-Id: Icbee5fe7ae2c02b2bca185a0dc7587eb4940058a Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org> Signed-off-by: Azhar Shaikh <azhars@codeaurora.org> Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions