ALSA: pcm: check for integer overflow during multiplication

Channel info data structure is parsed from userspace and if
user does not set the no. of channels correctly, it could lead
to security vulnerability if we don't check for overflow when the
no. of channels is multiplied with pcm bit width. Add a condition
to check for overflow during multiplication.

CRs-fixed: 537818
Change-Id: Ia3c31406dd8b7627ea704c076643c0348582da28
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
msm: audio: qdsp6v2: Change acdb_mmap size variable to unsigned

The acdb_mmap fuction does a size calculation but
stores the result in an int which makes negitive
numbers possible. Changing the variable to unsigned
ensures that the size used is never out of bounds.

Change-Id: I78714044594310a4411db1f50456e1294cf6ffce
CRs-fixed: 548145
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
usb: gadget: Fix remote wakeup during low-power mode

Fix remote wakeup failure during low-power mode. The remote wakeup
operation issues an asynchronous low-power mode exit in a remote task
and then immediately continues to access the USB hardware for priming
the endpoint. In some cases it might happen that the remote task that
performs the low-power mode exit hasn't completed before the endpoint
priming and therefore a failure occurs. The fix adds a 'remote wakeup'
queue which holds the requests until the USB HW exits from low-power mode
and resumes.After resume, the pending requests are pushed to the hardware.

CRs-fixed: 470164
Change-Id: I3e572a082d0e93560bf69889e269fa34336cf5e8
Signed-off-by: Danny Segal <dsegal@codeaurora.org>
qdsp5: memset stack buffer allocation.

This is needed to avoid garbage data in uninitialized variables.

Change-Id: I3a043a4ce4e14d8e0c24b434181dff484eddac72
CRs-Fixed: 551548
CRs-Fixed: 551542
CRs-Fixed: 551555
CRs-Fixed: 551563
CRs-Fixed: 551566
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
EHCI: HSIC: Abort system suspend if controller is outside LPM

98089c0d commit (USB: Prevent system suspend when HSIC device
is active) ensures that USB devices are auto suspended before
system suspend begins.  Apply the same policy to HSIC controller
platform device.  This will cover the corner case where controller
and root hub are resumed after root hub system suspend routine
returns success.

CRs-Fixed: 482498
Change-Id: I604b24775e1c2f52020161c236c44c20d579d5e0
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Shimrit Malichi <smalichi@codeaurora.org>
Merge "usb: gadget: Fix remote wakeup during low-power mode"
Merge "ALSA: pcm: check for integer overflow during multiplication"
Merge "msm: audio: qdsp6v2: Change acdb_mmap size variable to unsigned"
Merge "qdsp5: memset stack buffer allocation."
Merge "EHCI: HSIC: Abort system suspend if controller is outside LPM"