android_kernel_oneplus_msm8998/drivers
Chandana Kishori Chiluveru 025b721004 USB: gadget: u_data_ipa: Handle usb requests allocation/free correctly
Currently USB requests are allocated during connect work for starting
endless TX and RX in BAM2BAM over IPA. But these requests are not freed
during disconnect which leads to memory leak and could result in memory
allocation failure in function drivers during next connect. Hence free USB
requests allocated during disconnect to fix memleak issue and also move
allocation of RX/TX usb requests to gbam_connect to avoid crashes due
to NULL pointer dereference.

Also extend spinlock protection to avoid the crashes during connect and
disconnect functions.

Change-Id: I4362fde2928857253d2150e4d9531cada876cd58
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2016-12-20 15:41:24 +05:30
..
accessibility
acpi Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
amba
android Merge "ANDROID: binder: Clear binder and cookie when setting handle in flat binder struct" 2016-11-08 11:19:02 -08:00
ata Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
atm
auxdisplay
base Merge "Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4" 2016-11-04 22:22:00 -07:00
bcma
bif
block Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4 2016-10-21 18:00:55 -07:00
bluetooth Merge "Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4" 2016-11-04 22:22:00 -07:00
bus Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
cdrom
char Merge "diag: Set in_busy only after initialization of read buffers" 2016-11-28 23:57:57 -08:00
clk clk: qcom: Update fmax tables and few frequencies clocks of MSMfalcon 2016-12-13 13:05:35 +05:30
clocksource
connector
cpufreq qcom-cpufreq: skip frequencies that round to same rate 2016-11-14 16:34:04 -08:00
cpuidle Merge "Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4" 2016-11-04 22:22:00 -07:00
crypto Merge "msm: crypto: set CLR_CNTXT bit for crypto operations" 2016-11-30 05:40:56 -08:00
dca
devfreq adreno_tz: Fix divide by zero problem in gpu_load_show() 2016-11-24 12:45:39 +05:30
dio
dma Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4 2016-10-21 18:00:55 -07:00
dma-buf
edac Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4 2016-10-28 10:48:35 -07:00
eisa
esoc
extcon Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4 2016-10-21 18:00:55 -07:00
firewire
firmware Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4 2016-10-28 10:48:35 -07:00
fmc
fpga
gpio Merge "gpio: qpnp-pin: Fix reading the GPIO mode for GPIO_LV_MV subtype" 2016-11-08 11:18:49 -08:00
gpu Merge "ARM: dts: msm: Add GPU coresight properties for msm8998" 2016-12-09 19:59:21 -08:00
hid HID: core: prevent out-of-bound readings 2016-11-18 16:59:58 -08:00
hsi
hv
hwmon Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4 2016-10-28 10:48:35 -07:00
hwspinlock
hwtracing coresight: fix 32-bit compilation issues 2016-12-05 08:58:05 +05:30
i2c Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4 2016-10-21 18:00:55 -07:00
ide
idle
iio iio: rradc: Update reading USBIN_V channel 2016-11-17 15:08:05 -08:00
infiniband Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
input Merge "input: misc: add condition check for ddic reset" 2016-12-06 21:03:12 -08:00
iommu Merge "iommu: arm-smmu: Fix clock reference count error" 2016-12-09 19:59:38 -08:00
ipack
irqchip Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4 2016-10-28 10:48:35 -07:00
isdn
leds leds: qpnp-wled: Handle OVP fault interrupt properly 2016-12-05 20:52:25 -08:00
lguest
lightnvm
macintosh
mailbox
mcb
md CHROMIUM: dm: boot time specification of dm= 2016-10-28 17:08:21 -07:00
media msm: dvb: demux: compilation error fix for 32 bit version 2016-12-12 18:07:54 +05:30
memory
memstick
message
mfd Merge "ASoC: wcd9xxx: clean up bootup errors" 2016-11-10 15:14:25 -08:00
misc Merge "misc: qcom: qdsp6v2: register ioctl calls for g711mlaw driver" 2016-12-02 09:02:16 -08:00
mmc Merge "mmc: core: check if CQE is already disabled before halt/unhalt" 2016-12-01 09:23:47 -08:00
mtd Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4 2016-10-28 10:48:35 -07:00
net Revert "wil6210: prevent XTAL off in device bootloader" 2016-12-05 16:20:16 +02:00
nfc NFC: Inform CLF whenever eSE is powered off 2016-12-09 15:43:21 +05:30
ntb
nubus
nvdimm
nvme
nvmem Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
of Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4 2016-10-28 10:48:35 -07:00
oprofile
parisc
parport
pci msm: 8998: Replace cobalt with 8998 2016-11-22 13:07:05 -08:00
pcmcia
perf
phy phy: qcom-ufs: Modify the vdd-phy min-max range 2016-12-07 01:32:35 -08:00
pinctrl pinctrl: qcom: add UFS_RESET pin data for msm8998 2016-11-24 07:53:45 -08:00
platform Merge "msm: ipa3: check the rx_door_bell value on disable" 2016-12-09 19:59:27 -08:00
pnp
power Merge "qpnp-fg-gen3: Use the correct property name to get fastcharge current" 2016-12-13 12:18:00 -08:00
powercap
pps
ps3
ptp
pwm Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4 2016-10-21 18:00:55 -07:00
rapidio
ras
regulator Merge "defconfig: msm: falcon: enable LCDB driver" 2016-12-06 14:33:51 -08:00
remoteproc
reset
rpmsg
rtc Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4 2016-10-21 18:00:55 -07:00
s390
sbus
scsi scsi: ufs: fix shutdown race condition 2016-12-02 11:45:12 -08:00
sensors sensors: ssc: add support to read SLPI fw name 2016-10-26 15:39:02 +05:30
sfi
sh
slimbus Merge "slim: msm: Avoid registration with notifier if service is not located" 2016-09-13 05:43:48 -07:00
sn
soc Merge "icnss: Remove dev reference" 2016-12-13 12:17:58 -08:00
soundwire soundwire: Add support for usecases without compander 2016-09-21 02:49:13 -07:00
spi Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4 2016-10-21 18:00:55 -07:00
spmi spmi: pmic-arb: support show_resume_irq 2016-11-08 10:23:45 -08:00
ssb
staging msm: ion: Modified Secure Display buffer permissions 2016-11-23 12:04:29 +02:00
switch
target
tc
thermal msm: thermal: Notify LMH DCVSh driver after freq mitigation request 2016-12-07 11:36:37 -07:00
thunderbolt
tty tty: Prevent ldisc drivers from re-using stale tty fields 2016-11-18 16:57:49 -08:00
uio
usb USB: gadget: u_data_ipa: Handle usb requests allocation/free correctly 2016-12-20 15:41:24 +05:30
uwb
vfio
vhost
video Merge "ARM: dts: msm: set dcs commands in hs for mode switch in jdi panel" 2016-12-06 14:33:46 -08:00
virt
virtio
vlynq
vme
w1
watchdog
xen Revert "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-08-26 14:34:05 -07:00
zorro
Kconfig
Makefile scsi: ufs: Initiate crypto before SCSI for UFS fast boot 2016-08-29 00:30:38 -07:00