android_kernel_google_msm/drivers
Kazuya Mizuguchi 6a2fa48e01 usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable()
commit 11432050f070810ba139d0226344eef120c3a559 upstream.

This patch fixes an issue that the NULL pointer dereference happens
when we uses g_audio driver. Since the g_audio driver will call
usb_ep_disable() in afunc_set_alt() before it calls usb_ep_enable(),
the uep->pipe of renesas usbhs driver will be NULL. So, this patch
adds a condition to avoid the oops.

Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fixes: 2f98382dc (usb: renesas_usbhs: Add Renesas USBHS Gadget)
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-04-14 17:33:41 +08:00
..
accessibility
acpi ACPI / cpuidle: fix deadlock between cpuidle_lock and cpu_hotplug.lock 2014-12-01 18:02:22 +08:00
amba
ata ahci: disable MSI on SAMSUNG 0xa800 SSD 2015-04-14 17:33:40 +08:00
atm skb: Add inline helper for getting the skb end offset from head 2014-06-07 16:02:00 -07:00
auxdisplay
base sysfs: driver core: Fix glue dir race condition by gdp_mutex 2015-02-02 17:05:16 +08:00
bcma
block virtio-blk: Don't free ida when disk is in use 2014-06-11 12:04:18 -07:00
bluetooth Bluetooth: Fix issue with USB suspend in btusb driver 2015-02-02 17:04:36 +08:00
cdrom
char random: add and use memzero_explicit() for clearing data 2015-02-02 17:04:54 +08:00
clk
clocksource
connector
cpufreq cpufreq: expose scaling_cur_freq sysfs file for set_policy() drivers 2015-02-02 17:04:56 +08:00
cpuidle
crypto crypto: caam - add allocation failure handling in SPRINTFCAT macro 2014-06-07 16:02:03 -07:00
dca
devfreq
dio
dma
edac mpc85xx_edac: Make L2 interrupt shared too 2015-02-02 17:04:46 +08:00
eisa
firewire firewire: cdev: prevent kernel stack leaking into ioctl arguments 2015-02-02 17:05:24 +08:00
firmware x86, efivars: firmware bug workarounds should be in platform code 2014-06-07 16:02:10 -07:00
gpio gpio: mxs: Allow for recursive enable_irq_wake() call 2014-05-13 14:11:31 +02:00
gpu drm/radeon: kernel panic in drm_calc_vbltimestamp_from_scanoutpos with 3.18.0-rc6 2015-04-14 17:33:39 +08:00
hid HID: picolcd: sanity check report size in raw_event() callback 2014-09-25 11:49:15 +08:00
hsi
hv Drivers: hv: vmbus: Cleanup vmbus_close_internal() 2015-02-02 17:04:41 +08:00
hwmon hwmon: (adm1029) Ensure the fan_div cache is updated in set_fan_div 2014-07-17 15:39:50 -07:00
hwspinlock
i2c i2c: davinci: generate STP always when NACK is received 2015-04-14 17:33:40 +08:00
ide
idle intel_idle: Don't register CPU notifier if we are not running. 2014-06-07 16:02:07 -07:00
ieee802154
infiniband srp-target: Retry when QP creation fails with ENOMEM 2015-02-02 17:05:20 +08:00
input Input: xpad - use proper endpoint type 2015-04-14 17:33:38 +08:00
iommu iommu/amd: Fix cleanup_domain for mass device removal 2014-09-25 11:49:11 +08:00
isdn isdnloop: several buffer overflows 2014-04-26 17:13:18 -07:00
leds
lguest
macintosh
mca
md dm raid: ensure superblock's size matches device's logical block size 2015-02-02 17:05:17 +08:00
media media: media-device: fix infoleak in ioctl media_enum_entities() 2014-06-07 16:02:02 -07:00
memstick
message
mfd mfd: max8997: Fix possible NULL pointer dereference on i2c_new_dummy error 2014-05-06 07:51:41 -07:00
misc MISC: hpilo, remove pci_disable_device 2014-06-07 16:02:06 -07:00
mmc mmc: mxs-mmc: fix deadlock caused by recursion loop 2014-04-14 06:44:32 -07:00
mtd mtd: pxa3xx_nand: make the driver work on big-endian systems 2014-07-09 10:51:20 -07:00
net drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets 2015-02-02 17:05:26 +08:00
nfc
nubus
of of/base: Fix PowerPC address parsing hack 2015-02-02 17:05:22 +08:00
oprofile
parisc
parport
pci PCI: Generate uppercase hex for modalias interface class 2015-02-02 17:04:38 +08:00
pcmcia
pinctrl
platform acer-wmi: Add acpi_backlight=video quirk for the Acer KAV80 2015-02-02 17:05:10 +08:00
pnp
power power: charger-manager: Fix NULL pointer exception with missing cm-fuel-gauge 2015-02-02 17:04:43 +08:00
pps
ps3
ptp
rapidio rapidio/tsi721: Fix interrupt mask when handling MSI 2014-06-07 16:02:14 -07:00
regulator regulator: max8998: Ensure enough delay time for max8998_set_voltage_buck_time_sel 2014-06-07 16:02:07 -07:00
remoteproc
rpmsg
rtc drivers/rtc/rtc-pl031.c: restore ST variant functionality 2014-06-07 16:02:14 -07:00
s390
sbus bbc-i2c: Fix BBC I2C envctrl on SunBlade 2000 2014-08-14 08:42:37 +08:00
scsi bnx2fc: do not add shared skbs to the fcoe_rx_list 2015-04-14 17:33:37 +08:00
sfi
sh
sn
spi spi: dw: Fix dynamic speed change. 2015-04-14 17:33:35 +08:00
ssb
staging iio: Fix IIO_EVENT_CODE_EXTRACT_DIR bit mask 2015-04-14 17:33:35 +08:00
target target: Fix queue full status NULL pointer for SCF_TRANSPORT_TASK_SENSE 2015-02-02 17:04:52 +08:00
tc
thermal
tty tty/vt: don't set font mappings on vc not supporting this 2015-02-02 17:05:15 +08:00
uio
usb usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable() 2015-04-14 17:33:41 +08:00
uwb uwb: init beacon cache entry before registering uwb device 2014-12-01 18:02:28 +08:00
vhost vhost: validate vhost_get_vq_desc return value 2014-04-26 17:13:17 -07:00
video framebuffer: fix border color 2015-02-02 17:04:45 +08:00
virt
virtio virtio_pci: fix virtio spec compliance on restore 2015-02-02 17:04:50 +08:00
vlynq
w1 w1: fix w1_send_slave dropping a slave id 2014-05-06 07:51:41 -07:00
watchdog watchdog: sp805: Set watchdog_device->timeout from ->set_timeout() 2014-07-06 18:49:19 -07:00
xen xen/manage: Always freeze/thaw processes when suspend/resuming 2014-12-01 18:02:25 +08:00
zorro
Kconfig
Makefile