ASoC: msm: Add bounds checking to ADM get params

Add additional bounds checking to ADM get params.
Validate that all buffer sizes are valid before
dereferencing.

Change-Id: If7c7a5ae6a56812e9c4a11a38c9bdc78f42d09f3
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
Merge "ASoC: msm: Add bounds checking to ADM get params"
usb_bam: Fix bug while handling pending bam_reset

Driver doesn't clear pending_bam_reset flag after
resetting BAM and may end up performing reset again.

Change-Id: I166dfc95f75f41737a42c7dfd281505ceca51ee7
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
USB: gadget: rndis: Allow reading of 'rx_trigger' attribute value

rx_trigger attribute is used by userspace to kickstart RX
once end to end data path is setup on USB connection.
Currently this attribute is write only. Make it readable
so that userspace can read it back during fast USB connect
disconnect scenarios which results in net core missing to
send NETLINK DISCONNECT events. Userspace can read this back
on CONNECT to figure out any missed disconnect events.

Change-Id: Ief1d93b1e29103336b672cf0e8abcfe881aaa617
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
USB: gadget: u_bam_data: Check USB state under spinlock

While starting/stopping endless transfers, USB may get
disconnected. This is checked using port_data just before
calling usb_ep_queue. But, this is possibility of disconnect
happening after this check resulting in NULL pointer
dereference when accessing port_usb->in/out EPs. Fix this
by checking for cable connection under spinlock and using
a copy of EP context for calling usb_ep_queue.

Change-Id: I196650223f1350a5c5cc2cd173a67dc3c64c2dc6
CRs-fixed: 756048
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Merge "USB: gadget: u_bam_data: Check USB state under spinlock"
Merge "usb_bam: Fix bug while handling pending bam_reset"
Merge "USB: gadget: rndis: Allow reading of 'rx_trigger' attribute value"