linux-stable/drivers
Steffen Maier e3c914631c scsi: zfcp: drop default switch case which might paper over missing case
[ Upstream commit 0c902936e5 ]

This was introduced with v4.18 commit 8c3d20aada ("scsi: zfcp: fix
missing REC trigger trace for all objects in ERP_FAILED") but would now
suppress helpful -Wswitch compiler warnings when building with W=1 such as
the following forced example:

drivers/s390/scsi/zfcp_erp.c: In function 'zfcp_erp_handle_failed':
drivers/s390/scsi/zfcp_erp.c:126:2: warning: enumeration value 'ZFCP_ERP_ACTION_REOPEN_PORT_FORCED' not handled in switch [-Wswitch]
  switch (want) {
  ^~~~~~

But then again, only with W=1 we would notice unhandled enum cases.
Without the default cases and a missed unhandled enum case, the code might
perform unforeseen things we might not want...

As of today, we never run through the removed default case, so removing it
is no functional change.  In the future, we never should run through a
default case but introduce the necessary specific case(s) to handle new
functionality.

Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-17 20:37:53 +01:00
..
accessibility
acpi ACPI / APEI: Switch estatus pool to use vmalloc memory 2019-12-05 15:38:03 +01:00
amba
android binder: fix possible UAF when freeing buffer 2019-08-04 09:32:01 +02:00
ata ata: ep93xx: Use proper enums for directions 2019-11-24 08:23:06 +01:00
atm atm: zatm: Fix empty body Clang warnings 2019-12-01 09:13:43 +01:00
auxdisplay auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach 2019-09-06 10:20:43 +02:00
base drivers/base/platform.c: kmemleak ignore a known leak 2019-12-05 15:37:53 +01:00
bcma
block rsxx: add missed destroy_workqueue calls in remove 2019-12-17 20:37:30 +01:00
bluetooth Bluetooth: hci_bcm: Handle specific unknown packets after firmware loading 2019-12-05 15:37:37 +01:00
bus
cdrom cdrom: don't attempt to fiddle with cdo->capability 2019-12-01 09:13:21 +01:00
char hwrng: stm32 - fix unbalanced pm_runtime_enable 2019-12-05 15:38:30 +01:00
clk clk: rockchip: fix rk3188 sclk_mac_lbtest parameter ordering 2019-12-17 20:37:49 +01:00
clocksource clocksource/drivers/fttmr010: Fix invalid interrupt register access 2019-12-05 15:37:34 +01:00
connector
cpufreq cpufreq: Add NULL checks to show() and store() methods of cpufreq 2019-12-01 09:14:25 +01:00
cpuidle
crypto crypto: stm32/hash - Fix hmac issue more than 256 bytes 2019-12-05 15:38:29 +01:00
dax
dca
devfreq PM / devfreq: tegra: Fix kHz to Hz conversion 2019-10-11 18:18:30 +02:00
dio
dma dmaengine: rcar-dmac: set scatter/gather max segment size 2019-11-24 08:23:17 +01:00
dma-buf dma-buf/sw_sync: Synchronize signal vs syncpt free 2019-10-07 18:55:07 +02:00
edac EDAC, thunderx: Fix memory leak in thunderx_l2c_threaded_isr() 2019-12-01 09:13:19 +01:00
eisa
extcon extcon: max8997: Fix lack of path setting in USB device mode 2019-12-17 20:37:42 +01:00
firewire
firmware gsmi: Fix bug in append_to_eventlog sysfs handler 2019-12-01 09:13:23 +01:00
fmc
fpga fpga: altera-ps-spi: Fix getting of optional confd gpio 2019-09-21 07:15:32 +02:00
fsi
gpio gpio: max77620: Fixup debounce delays 2019-12-01 09:13:12 +01:00
gpu gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change 2019-12-05 15:37:56 +01:00
hid HID: core: check whether Usage Page item is after Usage ID items 2019-12-05 15:38:29 +01:00
hsi
hv Drivers: hv: vmbus: Fix synic per-cpu context initialization 2019-11-20 17:59:56 +01:00
hwmon hwmon: (ina3221) Fix INA3221_CONFIG_MODE macros 2019-11-24 08:23:31 +01:00
hwspinlock
hwtracing coresight: tmc: Fix byte-address alignment for RRP 2019-11-20 18:00:38 +01:00
i2c i2c: core: fix use after free in of_i2c_notify 2019-12-17 20:37:32 +01:00
ide
idle x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:18:42 +02:00
iio iio: dac: mcp4922: fix error handling in mcp4922_write_raw 2019-11-20 17:59:35 +01:00
infiniband RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN 2019-12-17 20:37:25 +01:00
input Input: cyttsp4_core - fix use after free bug 2019-12-17 20:37:28 +01:00
iommu iommu/amd: Fix NULL dereference bug in match_hid_uid 2019-12-05 15:38:00 +01:00
ipack
irqchip irqchip/irq-mvebu-icu: Fix wrong private data retrieval 2019-11-24 08:22:56 +01:00
isdn mISDN: Fix type of switch control variable in ctrl_teimanager 2019-12-01 09:13:44 +01:00
leds leds: leds-lp5562 allow firmware files up to the maximum length 2019-10-05 12:47:45 +02:00
lightnvm
macintosh macintosh/windfarm_smu_sat: Fix debug output 2019-12-01 09:13:39 +01:00
mailbox mailbox: mailbox-test: fix null pointer if no mmio 2019-12-05 15:38:31 +01:00
mcb
md dm flakey: Properly corrupt multi-page bios. 2019-12-05 15:37:32 +01:00
media media: stm32-dcmi: fix DMA corruption when stopping streaming 2019-12-05 15:38:30 +01:00
memory memory: tegra: Fix integer overflow on tick value calculation 2019-05-25 18:25:25 +02:00
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-29 09:17:43 +01:00
message
mfd mfd: max8997: Enale irq-wakeup unconditionally 2019-12-01 09:13:46 +01:00
misc mei: bus: prefix device names on bus with the bus name 2019-12-05 15:38:10 +01:00
mmc mmc: meson-gx: make sure the descriptor is stopped on errors 2019-12-05 15:37:24 +01:00
mtd mtd: spi-nor: cast to u64 to avoid uint overflows 2019-12-05 15:38:22 +01:00
mux
net net: dsa: mv88e6xxx: Work around mv886e6161 SERDES missing MII_PHYSID2 2019-12-17 20:37:53 +01:00
nfc NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error 2019-12-17 20:37:27 +01:00
ntb ntb: intel: fix return value for ndev_vec_mask() 2019-12-01 09:13:59 +01:00
nubus
nvdimm libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
nvme nvmet-fcloop: suppress a compiler warning 2019-12-01 09:13:31 +01:00
nvmem nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-20 17:59:56 +01:00
of of: unittest: allow base devicetree to have symbol metadata 2019-12-01 09:14:12 +01:00
oprofile
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2019-10-05 12:48:05 +02:00
parport parport: Fix mem leak in parport_register_dev_model 2019-06-25 11:36:51 +08:00
pci PCI/MSI: Return -ENOSPC from pci_alloc_irq_vectors_affinity() 2019-12-05 15:37:55 +01:00
pcmcia
perf drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-08-06 19:05:27 +02:00
phy phy: lantiq: Fix compile warning 2019-11-20 18:00:41 +01:00
pinctrl pinctrl: stm32: fix memory leak issue 2019-12-05 15:38:32 +01:00
platform platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size 2019-12-05 15:38:35 +01:00
pnp
power PM / AVS: SmartReflex: NULL check before some freeing functions is not needed 2019-12-05 15:37:14 +01:00
powercap x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:18:42 +02:00
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2019-08-04 09:32:03 +02:00
ps3
ptp
pwm pwm: Clear chip_data in pwm_put() 2019-12-05 15:38:12 +01:00
rapidio drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings 2019-08-06 19:05:24 +02:00
ras RAS/CEC: Fix pfn insertion 2019-07-31 07:28:24 +02:00
regulator regulator: tps65910: fix a missing check of return value 2019-12-05 15:37:47 +01:00
remoteproc remoteproc: Check for NULL firmwares in sysfs interface 2019-11-24 08:23:15 +01:00
reset reset: Fix memory leak in reset_control_array_put() 2019-12-05 15:36:49 +01:00
rpmsg
rtc rtc: s3c-rtc: Avoid using broken ALMYEAR register 2019-12-17 20:37:45 +01:00
s390 scsi: zfcp: drop default switch case which might paper over missing case 2019-12-17 20:37:53 +01:00
sbus
scsi scsi: libsas: Check SMP PHY control function result 2019-12-05 15:38:03 +01:00
sfi
sh
sn
soc soc: qcom: wcnss_ctrl: Avoid string overflow 2019-11-20 17:59:59 +01:00
spi spi: omap2-mcspi: Fix DMA and FIFO event trigger size mismatch 2019-12-01 09:14:14 +01:00
spmi
ssb ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit 2019-05-31 06:47:13 -07:00
staging staging: rtl8723bs: Add 024c:0525 to the list of SDIO device-ids 2019-12-05 15:38:09 +01:00
target scsi: target: core: Do not overwrite CDB byte 1 2019-11-10 11:25:15 +01:00
tc
tee tee: optee: add missing of_node_put after of_device_is_available 2019-11-24 08:22:44 +01:00
thermal thermal: rcar_thermal: Prevent hardware access during system suspend 2019-12-01 09:13:47 +01:00
thunderbolt thunderbolt: Use 32-bit writes when writing ring producer/consumer 2019-11-06 12:43:22 +01:00
tty serial: ifx6x60: add missed pm_runtime_disable 2019-12-17 20:37:24 +01:00
uio
usb usb: gadget: u_serial: add missing port entry locking 2019-12-17 20:37:20 +01:00
uwb
vfio vfio/spapr_tce: Get rid of possible infinite loop 2019-12-05 15:37:42 +01:00
vhost vhost/vsock: split packets to send using multiple buffers 2019-12-01 09:13:11 +01:00
video backlight: lm3639: Unconditionally call led_classdev_unregister 2019-11-24 08:23:24 +01:00
virt drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl 2019-05-16 19:42:35 +02:00
virtio virtio_ring: fix return code on DMA mapping fails 2019-12-01 09:14:28 +01:00
vlynq
vme
w1 w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size). 2019-12-01 09:13:24 +01:00
watchdog watchdog: sama5d4: fix WDD value to be always set to max 2019-12-05 15:38:19 +01:00
xen xen/pciback: Check dev_data before using it 2019-12-05 15:37:27 +01:00
zorro
Kconfig
Makefile