Skip to contentSkip to conversation

Linux 4.14.322

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Aug 11, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 4.14.322 kernel.

All users of the 4.14 kernel series must upgrade.

The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/admin-guide/security-bugs.rst                   |   24 +-
 Makefile                                                      |    2 
 arch/arm/boot/dts/bcm5301x.dtsi                               |    1 
 arch/arm/mach-ep93xx/timer-ep93xx.c                           |    3 
 arch/arm/mach-orion5x/board-dt.c                              |    3 
 arch/arm/mach-orion5x/common.h                                |    6 
 arch/arm/mach-sa1100/assabet.c                                |    2 
 arch/ia64/kernel/process.c                                    |    2 
 arch/ia64/mm/discontig.c                                      |    2 
 arch/ia64/mm/tlb.c                                            |    2 
 arch/powerpc/Kconfig.debug                                    |    2 
 arch/powerpc/include/asm/word-at-a-time.h                     |    2 
 arch/powerpc/platforms/52xx/mpc52xx_pic.c                     |    2 
 arch/s390/kernel/smp.c                                        |    2 
 arch/sh/drivers/dma/dma-sh.c                                  |   37 ++--
 arch/sh/kernel/cpu/sh2/probe.c                                |    2 
 arch/x86/kernel/cpu/microcode/amd.c                           |    2 
 arch/x86/kernel/quirks.c                                      |   10 -
 arch/x86/kernel/smpboot.c                                     |   24 +-
 arch/xtensa/platforms/iss/network.c                           |    2 
 drivers/acpi/acpi_pad.c                                       |    2 
 drivers/ata/libata-scsi.c                                     |    2 
 drivers/ata/pata_ns87415.c                                    |    2 
 drivers/atm/zatm.c                                            |    2 
 drivers/base/power/domain.c                                   |    6 
 drivers/block/drbd/drbd_nl.c                                  |    6 
 drivers/block/loop.c                                          |    3 
 drivers/block/nbd.c                                           |    3 
 drivers/char/hw_random/imx-rngc.c                             |    6 
 drivers/char/tpm/tpm_tis_core.c                               |   10 -
 drivers/char/tpm/tpm_vtpm_proxy.c                             |   30 ---
 drivers/clk/clk-gate.c                                        |    2 
 drivers/crypto/nx/Makefile                                    |    2 
 drivers/crypto/nx/nx.h                                        |    4 
 drivers/extcon/extcon.c                                       |    8 
 drivers/firewire/ohci.c                                       |   14 -
 drivers/gpio/gpio-tps68470.c                                  |    6 
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c                        |    4 
 drivers/gpu/drm/bridge/sil-sii8620.c                          |    2 
 drivers/gpu/drm/drm_edid.c                                    |    4 
 drivers/gpu/drm/drm_fb_helper.c                               |    5 
 drivers/gpu/drm/exynos/exynos_drm_dsi.c                       |    6 
 drivers/gpu/drm/panel/panel-simple.c                          |    4 
 drivers/gpu/drm/radeon/ci_dpm.c                               |   28 ++-
 drivers/gpu/drm/radeon/cypress_dpm.c                          |    8 
 drivers/gpu/drm/radeon/ni_dpm.c                               |    8 
 drivers/gpu/drm/radeon/rv740_dpm.c                            |    8 
 drivers/hwmon/nct7802.c                                       |    2 
 drivers/i2c/busses/i2c-rk3x.c                                 |    2 
 drivers/ide/ide-acpi.c                                        |    2 
 drivers/ide/ide-atapi.c                                       |    2 
 drivers/ide/ide-io-std.c                                      |    4 
 drivers/ide/ide-io.c                                          |    4 
 drivers/ide/ide-sysfs.c                                       |    2 
 drivers/ide/umc8672.c                                         |    2 
 drivers/iio/adc/meson_saradc.c                                |    2 
 drivers/infiniband/core/uverbs_cmd.c                          |    4 
 drivers/infiniband/hw/cxgb4/cm.c                              |    2 
 drivers/infiniband/hw/mlx5/cq.c                               |    2 
 drivers/infiniband/hw/mthca/mthca_qp.c                        |   10 -
 drivers/input/misc/adxl34x.c                                  |    3 
 drivers/input/misc/drv260x.c                                  |    1 
 drivers/input/serio/serio_raw.c                               |    2 
 drivers/irqchip/irq-bcm6345-l1.c                              |   14 -
 drivers/mailbox/ti-msgmgr.c                                   |   12 +
 drivers/md/dm-cache-policy-smq.c                              |   28 ++-
 drivers/md/dm-io.c                                            |    2 
 drivers/md/dm-ioctl.c                                         |    2 
 drivers/md/dm-raid.c                                          |    9 -
 drivers/md/dm-snap-persistent.c                               |    2 
 drivers/md/dm-table.c                                         |    2 
 drivers/md/md.c                                               |   23 ++
 drivers/md/raid0.c                                            |   62 ++++++-
 drivers/md/raid0.h                                            |    1 
 drivers/md/raid10.c                                           |   24 ++
 drivers/md/raid5.c                                            |    2 
 drivers/media/dvb-frontends/rtl2832.c                         |    2 
 drivers/media/usb/dvb-usb-v2/az6007.c                         |    3 
 drivers/media/usb/gspca/vicam.c                               |    2 
 drivers/media/usb/siano/smsusb.c                              |    3 
 drivers/media/usb/uvc/uvc_video.c                             |    8 
 drivers/memstick/host/jmb38x_ms.c                             |    2 
 drivers/memstick/host/r592.c                                  |    4 
 drivers/memstick/host/tifm_ms.c                               |    2 
 drivers/mfd/intel-lpss-acpi.c                                 |    3 
 drivers/mfd/rt5033.c                                          |    3 
 drivers/mfd/stmpe.c                                           |    4 
 drivers/misc/pci_endpoint_test.c                              |    4 
 drivers/mmc/core/quirks.h                                     |   14 +
 drivers/mmc/host/sdhci.c                                      |    2 
 drivers/mtd/nand/omap_elm.c                                   |   24 +-
 drivers/mtd/ubi/eba.c                                         |    2 
 drivers/net/bonding/bond_main.c                               |    5 
 drivers/net/can/janz-ican3.c                                  |    2 
 drivers/net/can/usb/gs_usb.c                                  |    2 
 drivers/net/ethernet/atheros/atl1e/atl1e_main.c               |    7 
 drivers/net/ethernet/broadcom/bnx2.c                          |    4 
 drivers/net/ethernet/broadcom/tg3.c                           |    1 
 drivers/net/ethernet/emulex/benet/be_main.c                   |    3 
 drivers/net/ethernet/intel/i40e/i40e_debugfs.c                |    2 
 drivers/net/ethernet/intel/igb/igb_main.c                     |    5 
 drivers/net/ethernet/marvell/mvneta.c                         |    4 
 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c |    4 
 drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c           |    4 
 drivers/net/ethernet/neterion/s2io.c                          |    2 
 drivers/net/ethernet/qlogic/qla3xxx.c                         |    2 
 drivers/net/ethernet/sun/cassini.c                            |    2 
 drivers/net/ethernet/sun/niu.c                                |    6 
 drivers/net/ethernet/ti/cpsw_ale.c                            |   24 ++
 drivers/net/gtp.c                                             |    2 
 drivers/net/team/team.c                                       |    9 +
 drivers/net/usb/cdc_ether.c                                   |   21 ++
 drivers/net/usb/usbnet.c                                      |    6 
 drivers/net/usb/zaurus.c                                      |   21 ++
 drivers/net/wan/z85230.c                                      |    2 
 drivers/net/wireless/ath/ath10k/core.c                        |    2 
 drivers/net/wireless/ath/ath6kl/init.c                        |    2 
 drivers/net/wireless/ath/ath9k/ar9003_hw.c                    |   27 ++-
 drivers/net/wireless/ath/ath9k/htc_hst.c                      |    8 
 drivers/net/wireless/ath/ath9k/init.c                         |    2 
 drivers/net/wireless/ath/ath9k/main.c                         |   11 -
 drivers/net/wireless/ath/ath9k/wmi.c                          |    4 
 drivers/net/wireless/atmel/atmel_cs.c                         |   13 +
 drivers/net/wireless/broadcom/b43/debugfs.c                   |    2 
 drivers/net/wireless/broadcom/b43/dma.c                       |    2 
 drivers/net/wireless/broadcom/b43/lo.c                        |    2 
 drivers/net/wireless/broadcom/b43/phy_n.c                     |    2 
 drivers/net/wireless/broadcom/b43/xmit.c                      |   12 -
 drivers/net/wireless/broadcom/b43legacy/debugfs.c             |    2 
 drivers/net/wireless/broadcom/b43legacy/main.c                |    2 
 drivers/net/wireless/cisco/airo.c                             |    5 
 drivers/net/wireless/intel/iwlegacy/3945.c                    |    2 
 drivers/net/wireless/intel/iwlegacy/4965-mac.c                |    2 
 drivers/net/wireless/intersil/orinoco/orinoco_cs.c            |   13 +
 drivers/net/wireless/intersil/orinoco/spectrum_cs.c           |   13 +
 drivers/net/wireless/ray_cs.c                                 |   16 +
 drivers/net/wireless/wl3501_cs.c                              |   16 +
 drivers/ntb/hw/amd/ntb_hw_amd.c                               |    7 
 drivers/ntb/hw/idt/ntb_hw_idt.c                               |    7 
 drivers/ntb/hw/intel/ntb_hw_intel.c                           |    7 
 drivers/ntb/ntb_transport.c                                   |    2 
 drivers/pci/quirks.c                                          |    2 
 drivers/pinctrl/intel/pinctrl-cherryview.c                    |   15 +
 drivers/pinctrl/pinctrl-amd.c                                 |   28 +--
 drivers/pinctrl/pinctrl-at91-pio4.c                           |    2 
 drivers/platform/x86/hdaps.c                                  |    4 
 drivers/platform/x86/msi-laptop.c                             |    8 
 drivers/rtc/rtc-st-lpc.c                                      |    2 
 drivers/s390/block/dasd_ioctl.c                               |    1 
 drivers/scsi/3w-xxxx.c                                        |    4 
 drivers/scsi/dc395x.c                                         |    2 
 drivers/scsi/pm8001/pm8001_hwi.c                              |    2 
 drivers/scsi/pm8001/pm80xx_hwi.c                              |    2 
 drivers/scsi/qla2xxx/qla_attr.c                               |   13 +
 drivers/scsi/qla2xxx/qla_bsg.c                                |    6 
 drivers/scsi/qla2xxx/qla_iocb.c                               |    3 
 drivers/soc/fsl/qe/Kconfig                                    |    1 
 drivers/spi/spi-bcm-qspi.c                                    |   10 -
 drivers/spi/spi-bcm63xx.c                                     |    2 
 drivers/spi/spi-fsl-spi.c                                     |   25 +--
 drivers/ssb/driver_chipcommon.c                               |    4 
 drivers/staging/ks7010/ks_wlan_net.c                          |    6 
 drivers/tty/cyclades.c                                        |    2 
 drivers/tty/isicom.c                                          |    2 
 drivers/tty/serial/8250/8250.h                                |    1 
 drivers/tty/serial/8250/8250_pci.c                            |   19 --
 drivers/tty/serial/8250/8250_port.c                           |   11 -
 drivers/tty/serial/atmel_serial.c                             |    4 
 drivers/tty/serial/samsung.c                                  |   14 +
 drivers/usb/host/ohci-at91.c                                  |    8 
 drivers/usb/host/xhci-mtk.c                                   |    1 
 drivers/usb/musb/cppi_dma.c                                   |    2 
 drivers/usb/phy/phy-tahvo.c                                   |    2 
 drivers/usb/serial/option.c                                   |   10 +
 drivers/usb/serial/usb-serial-simple.c                        |   73 ++++----
 drivers/usb/storage/sddr55.c                                  |    4 
 drivers/vhost/net.c                                           |    4 
 drivers/video/fbdev/au1200fb.c                                |    3 
 drivers/video/fbdev/imsttfb.c                                 |   18 +-
 drivers/video/fbdev/imxfb.c                                   |    4 
 drivers/video/fbdev/matrox/matroxfb_maven.c                   |    6 
 drivers/video/fbdev/omap/lcd_mipid.c                          |    6 
 drivers/video/fbdev/pm3fb.c                                   |    6 
 drivers/video/fbdev/riva/riva_hw.c                            |    3 
 drivers/virtio/virtio_ring.c                                  |    2 
 drivers/w1/w1.c                                               |    4 
 fs/afs/dir.c                                                  |    2 
 fs/afs/security.c                                             |    2 
 fs/btrfs/qgroup.c                                             |    2 
 fs/dlm/netlink.c                                              |    2 
 fs/dlm/plock.c                                                |    4 
 fs/ext2/ext2.h                                                |   12 -
 fs/ext2/super.c                                               |   23 --
 fs/ext4/indirect.c                                            |    8 
 fs/ext4/inode.c                                               |   10 -
 fs/ext4/mballoc.c                                             |    4 
 fs/ext4/xattr.c                                               |   14 +
 fs/fat/dir.c                                                  |    2 
 fs/fuse/control.c                                             |    2 
 fs/fuse/cuse.c                                                |    2 
 fs/fuse/dir.c                                                 |    2 
 fs/fuse/file.c                                                |    2 
 fs/gfs2/aops.c                                                |    2 
 fs/gfs2/super.c                                               |    8 
 fs/hfsplus/unicode.c                                          |    2 
 fs/isofs/namei.c                                              |    4 
 fs/jffs2/build.c                                              |    5 
 fs/jffs2/erase.c                                              |    2 
 fs/jffs2/xattr.c                                              |   13 +
 fs/jffs2/xattr.h                                              |    4 
 fs/jfs/jfs_dmap.c                                             |    6 
 fs/jfs/jfs_filsys.h                                           |    2 
 fs/nfsd/nfs4xdr.c                                             |    2 
 fs/nfsd/nfsctl.c                                              |    2 
 fs/ocfs2/alloc.c                                              |    4 
 fs/ocfs2/dir.c                                                |   14 -
 fs/ocfs2/extent_map.c                                         |    4 
 fs/ocfs2/namei.c                                              |    2 
 fs/ocfs2/refcounttree.c                                       |    2 
 fs/ocfs2/xattr.c                                              |    2 
 fs/omfs/file.c                                                |    2 
 fs/sysv/itree.c                                               |    4 
 fs/ubifs/commit.c                                             |    6 
 fs/ubifs/file.c                                               |    4 
 fs/ubifs/journal.c                                            |    2 
 fs/ubifs/lpt.c                                                |    2 
 fs/ubifs/tnc.c                                                |    6 
 fs/ubifs/tnc_misc.c                                           |    4 
 fs/udf/balloc.c                                               |    2 
 fs/xfs/xfs_bmap_util.c                                        |    2 
 include/asm-generic/word-at-a-time.h                          |    2 
 include/linux/nmi.h                                           |    2 
 include/linux/pci.h                                           |    1 
 include/linux/sched/signal.h                                  |    2 
 include/linux/serial_8250.h                                   |    1 
 include/linux/tcp.h                                           |    2 
 include/linux/workqueue.h                                     |   15 -
 include/net/ipv6.h                                            |    8 
 include/net/netfilter/nf_tables.h                             |    1 
 include/net/pkt_sched.h                                       |    2 
 include/net/sock.h                                            |    1 
 include/net/tcp.h                                             |    6 
 include/uapi/linux/affs_hardblocks.h                          |   68 ++++----
 include/uapi/linux/blkzoned.h                                 |   10 -
 include/uapi/linux/videodev2.h                                |    2 
 kernel/async.c                                                |    4 
 kernel/audit.c                                                |    2 
 kernel/bpf/bpf_lru_list.c                                     |   21 +-
 kernel/bpf/bpf_lru_list.h                                     |    7 
 kernel/events/core.c                                          |   10 -
 kernel/events/uprobes.c                                       |    2 
 kernel/exit.c                                                 |    2 
 kernel/futex.c                                                |   12 -
 kernel/kexec_core.c                                           |    5 
 kernel/locking/lockdep.c                                      |    6 
 kernel/sched/fair.c                                           |    2 
 kernel/time/posix-timers.c                                    |   31 ++-
 kernel/trace/ring_buffer.c                                    |   48 +++--
 kernel/trace/trace_events.c                                   |   14 -
 kernel/watchdog_hld.c                                         |    6 
 kernel/workqueue.c                                            |   13 -
 lib/debugobjects.c                                            |    9 +
 lib/radix-tree.c                                              |    2 
 lib/test_firmware.c                                           |   10 +
 lib/ts_bm.c                                                   |    4 
 mm/frontswap.c                                                |    2 
 mm/ksm.c                                                      |    2 
 mm/memcontrol.c                                               |    2 
 mm/mempolicy.c                                                |    4 
 mm/percpu.c                                                   |    2 
 mm/slub.c                                                     |    4 
 mm/swap.c                                                     |    4 
 net/bluetooth/l2cap_sock.c                                    |    2 
 net/bridge/br_if.c                                            |    5 
 net/can/bcm.c                                                 |   12 -
 net/ceph/osd_client.c                                         |   20 +-
 net/core/rtnetlink.c                                          |    8 
 net/core/sock.c                                               |   23 ++
 net/dccp/options.c                                            |    2 
 net/ipv4/netfilter/nf_socket_ipv4.c                           |    6 
 net/ipv4/tcp.c                                                |   17 +-
 net/ipv4/tcp_fastopen.c                                       |    6 
 net/ipv4/tcp_input.c                                          |   12 +
 net/ipv4/tcp_metrics.c                                        |   70 +++++---
 net/ipv6/addrconf.c                                           |   17 +-
 net/ipv6/ip6_flowlabel.c                                      |    2 
 net/ipv6/ip6mr.c                                              |    2 
 net/ipv6/netfilter/nf_socket_ipv6.c                           |    2 
 net/ipv6/udp.c                                                |    2 
 net/llc/llc_input.c                                           |    3 
 net/netfilter/nf_conntrack_ftp.c                              |    2 
 net/netfilter/nf_conntrack_helper.c                           |    4 
 net/netfilter/nf_conntrack_sip.c                              |    2 
 net/netfilter/nf_tables_api.c                                 |   32 +++
 net/netfilter/nfnetlink_log.c                                 |    2 
 net/netfilter/nfnetlink_queue.c                               |    4 
 net/netfilter/nft_byteorder.c                                 |   14 -
 net/netlink/af_netlink.c                                      |    5 
 net/netlink/diag.c                                            |    7 
 net/sched/act_pedit.c                                         |    1 
 net/sched/cls_flow.c                                          |    2 
 net/sched/cls_fw.c                                            |   10 -
 net/sched/cls_route.c                                         |    1 
 net/sched/cls_u32.c                                           |   22 +-
 net/sched/sch_cbq.c                                           |    2 
 net/sched/sch_fq_codel.c                                      |    2 
 net/sched/sch_qfq.c                                           |    7 
 net/sched/sch_sfq.c                                           |    2 
 net/sctp/socket.c                                             |    4 
 net/sunrpc/svcsock.c                                          |   27 +--
 net/unix/af_unix.c                                            |    2 
 net/wireless/wext-core.c                                      |    6 
 scripts/mod/modpost.c                                         |   26 ++-
 scripts/tags.sh                                               |    9 -
 security/integrity/evm/evm_main.c                             |    2 
 security/integrity/iint.c                                     |   15 +
 sound/core/control_compat.c                                   |    2 
 sound/isa/sb/sb16_csp.c                                       |    2 
 sound/pci/ac97/ac97_codec.c                                   |    4 
 sound/soc/codecs/es8316.c                                     |    9 -
 sound/soc/codecs/wm8904.c                                     |    3 
 sound/soc/fsl/fsl_spdif.c                                     |    2 
 sound/usb/endpoint.c                                          |    2 
 tools/perf/tests/shell/test_uprobe_from_different_cu.sh       |   83 ++++++++++
 tools/perf/util/dwarf-aux.c                                   |    2 
 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c           |    2 
 326 files changed, 1530 insertions(+), 866 deletions(-)

Adrian Hunter (1):
perf intel-pt: Fix CYC timestamps after standalone CBR

Ahmed S. Darwish (1):
scripts/tags.sh: Resolve gtags empty index generation

Alan Stern (1):
net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb

Alexander Aring (1):
fs: dlm: return positive pid value for F_GETLK

Alexander Steffen (1):
tpm_tis: Explicitly check for error code

Andy Shevchenko (3):
pinctrl: cherryview: Return correct value if pin in push-pull mode
extcon: Fix kernel doc of property fields to avoid warnings
extcon: Fix kernel doc of property capability fields to avoid warnings

Arnd Bergmann (4):
memstick r592: make memstick_debug_get_tpc_name() static
ARM: ep93xx: fix missing-prototype warnings
ARM: orion5x: fix d2net gpio initialization
ata: pata_ns87415: mark ns87560_tf_read static

Artur Rojek (1):
sh: dma: Fix DMA channel offset calculation

Baokun Li (1):
ext4: only update i_reserved_data_blocks on successful block allocation

Bart Van Assche (2):
block: Fix a source code comment in include/uapi/linux/blkzoned.h
loop: Select I/O scheduler 'none' from inside add_disk()

Bas Nieuwenhuizen (1):
drm/amdgpu: Validate VM ioctl flags.

Bikash Hazarika (1):
scsi: qla2xxx: Fix potential NULL pointer dereference

Bob Peterson (1):
gfs2: Don't deref jdesc in evict

Borislav Petkov (AMD) (1):
x86/microcode/AMD: Load late on both threads too

Chengfeng Ye (1):

      sctp: fix potential deadlock on &net->sctp.addr_wq_lock

Christophe JAILLET (10):
wifi: orinoco: Fix an error handling path in spectrum_cs_probe()
wifi: orinoco: Fix an error handling path in orinoco_cs_probe()
wifi: atmel: Fix an error handling path in atmel_probe()
wifi: wl3501_cs: Fix an error handling path in wl3501_probe()
wifi: ray_cs: Fix an error handling path in ray_probe()
fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe()
mfd: stmpe: Only disable the regulators if they are enabled
rtc: st-lpc: Release some resources in st_rtc_probe() in case of error
tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() in case of error
tty: serial: samsung_tty: Fix a memory leak in s3c24xx_serial_getclk() when iterating clk

Claudiu Beznea (1):
pinctrl: at91-pio4: check return value of devm_kasprintf()

Cristian Ciocaltea (1):
ASoC: es8316: Increment max value for ALC Capture Target Volume control

Dai Ngo (1):
NFSD: add encoding of op_recall flag for write delegation

Damien Le Moal (1):
misc: pci_endpoint_test: Re-init completion for every test

Dan Carpenter (3):
modpost: fix off by one in is_executable_section()
w1: fix loop in w1_fini()
serial: atmel: don't enable IRQs prematurely

Daniil Dulov (1):
media: usb: Check az6007_read() return value

Dario Binacchi (1):
drm/panel: simple: fix active size for Ampire AM-480272H3TMQW-T01H

Davide Tronchin (1):
USB: serial: option: add LARA-R6 01B PIDs

Ding Hui (1):
SUNRPC: Fix UAF in svc_tcp_listen_data_ready()

Dmitry Antipov (1):
wifi: ath9k: convert msecs to jiffies where needed

Douglas Anderson (2):
watchdog/perf: define dummy watchdog_update_hrtimer_threshold() on correct config watchdog/perf: more properly prevent false positives with turbo modes

Duoming Zhou (1):
media: usb: siano: Fix warning due to null work_func_t function pointer

Eric Dumazet (15):
netlink: fix potential deadlock in netlink_set_err()
netlink: do not hard code device address lenth in fdb dumps
tcp: annotate data races in __tcp_oow_rate_limited()
udp6: fix udp6_ehashfn() typo
tcp: annotate data-races around rskq_defer_accept
tcp: annotate data-races around tp->notsent_lowat
tcp: annotate data-races around fastopenq.max_qlen
net: add missing data-race annotations around sk->sk_peek_off
net: add missing data-race annotation for sk_ll_usec
tcp_metrics: fix addr_same() helper
tcp_metrics: annotate data-races around tm->tcpm_stamp
tcp_metrics: annotate data-races around tm->tcpm_lock
tcp_metrics: annotate data-races around tm->tcpm_vals[]
tcp_metrics: annotate data-races around tm->tcpm_net
tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopen

Eric Whitney (1):
ext4: correct inline offset when handling xattrs in inode body

Fabian Frederick (1):
jffs2: reduce stack usage in jffs2_build_xattr_subsystem()

Fedor Pchelkin (2):
wifi: ath9k: avoid referencing uninit memory in ath9k_wmi_ctrl_rx
wifi: ath9k: don't allow to overwrite ENDPOINT0 attributes

Filipe Manana (1):
btrfs: fix race when deleting quota root from the dirty cow roots list

Florent Revest (1):
netfilter: conntrack: Avoid nf_ct_helper_hash uses after free

Florian Westphal (1):
netfilter: nf_tables: fix spurious set element insertion failure

Georg Müller (2):
perf probe: Add test for regression introduced by switch to die_get_decl_file() perf test uprobe_from_different_cu: Skip if there is no gcc

George Stark (1):
meson saradc: fix clock divider mask length

Gilles Buloz (1):
hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled

Greg Kroah-Hartman (2):
Documentation: security-bugs.rst: update preferences when dealing with the linux-distros group Linux 4.14.322

Guiting Shen (1):
usb: ohci-at91: Fix the unhandle interrupt when resume

Gustavo A. R. Silva (1):
wifi: wext-core: Fix -Wstringop-overflow warning in ioctl_standard_iw_point()

Hangbin Liu (2):
bonding: reset bond's flags when down link is P2P device
team: reset team's flags when down link is P2P device

Hans de Goede (1):
gpio: tps68470: Make tps68470_gpio_output() always set the initial value

Ilia.Gavrilov (1):
netfilter: nf_conntrack_sip: fix the ct_sip_parse_numerical_param() return value.

Ilya Dryomov (1):
libceph: fix potential hang in ceph_osdc_notify()

Jan Kara (1):
ext2: Drop fragment support

Jarkko Sakkinen (1):
tpm: tpm_vtpm_proxy: fix a race condition in /dev/vtpmx creation

Jason Baron (1):
md/raid0: add discard support for the 'original' layout

Jeremy Sowden (1):
lib/ts_bm: reset initial match offset for every block of text

Jerry Meng (1):
USB: serial: option: support Quectel EM060K_128

Jiaqing Zhao (1):
Revert "8250: add support for ASIX devices with a FIFO bug"

Jiasheng Jiang (1):
mfd: intel-lpss: Add missing check for platform_get_resource

Jocelyn Falempe (1):
drm/client: Fix memory leak in drm_client_target_cloned

Joe Thornber (1):
dm cache policy smq: ensure IO doesn't prevent cleaner policy progress

Johan Hovold (1):
USB: serial: simple: sort driver entries

John Paul Adrian Glaubitz (1):
sh: j2: Use ioremap() to translate device tree address into kernel memory

Jonas Gorski (3):
spi: bcm-qspi: return error if neither hif_mspi nor mspi is available
spi: bcm63xx: fix max prepend length
irq-bcm6345-l1: Do not assume a fixed block to cpu mapping

Kees Cook (1):
treewide: Remove uninitialized_var() usage

Kemeng Shi (1):
ext4: fix wrong unit use in ext4_mb_clear_bb

Klaus Kudielka (1):

      net: mvneta: fix txq_map in case of txq_number==1

Kuniyuki Iwashima (3):
gtp: Fix use-after-free in __gtp_encap_destroy().
netlink: Add __sock_i_ino() for __netlink_diag_dump().
llc: Don't drop packet from non-root netns.

Lee Jones (1):
net/sched: cls_u32: Fix reference counter leak leading to overflow

Li Nan (3):
md/raid10: fix overflow of md/safe_mode_delay md/raid10: fix wrong setting of max_corr_read_errors md/raid10: fix io loss while replacement replace rdev

Li Yang (1):
usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe()

Lin Ma (1):
net/sched: act_pedit: Add size check for TCA_PEDIT_PARMS_EX

Linus Torvalds (2):
workqueue: clean up WORK_* constant types, clarify masking drm/edid: fix objtool warning in drm_cvt_modes()

Luca Weiss (1):

      Input: drv260x - sleep between polling GO bit

Lyude Paul (1):
drm/edid: Fix uninitialized variable in drm_cvt_modes()

M A Ramdhan (1):
net/sched: cls_fw: Fix improper refcount update leads to use-after-free

Maciej Żenczykowski (1):
ipv6 addrconf: fix bug where deleting a mngtmpaddr can create a new temporary address

Marc Kleine-Budde (1):
can: gs_usb: gs_can_close(): add missing set of CAN state to CAN_STATE_STOPPED

Marek Vasut (2):
Input: adxl34x - do not hardcode interrupt trigger type
media: videodev2.h: Fix struct v4l2_input tuner index comment

Mario Limonciello (1):
pinctrl: amd: Use amd_pinconf_set() for all config options

Mark Brown (1):
ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register

Martin KaFai Lau (1):
bpf: Address KCSAN report on bpf_lru_list

Martin Kaiser (2):
hwrng: imx-rngc - fix the timeout for init and self check
fbdev: imxfb: warn about invalid left/right margin

Masahiro Yamada (2):
modpost: fix section mismatch message for R_ARM_ABS32
modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24}

Matus Gajdos (1):
ASoC: fsl_spdif: Silence output on stop

Max Filippov (1):
xtensa: ISS: fix call to split_if_spec

Maxim Mikityanskiy (1):
platform/x86: msi-laptop: Fix rfkill out-of-sync on MSI Wind U100

Michael Schmitz (1):
block: change all __u32 annotations to __be32 in affs_hardblocks.h

Miklos Szeredi (1):
fuse: revalidate: don't invalidate if interrupted

Mirsad Goran Todorovac (1):
test_firmware: fix a memory leak with reqs buffer

Mohsen Tahmasebi (1):
USB: serial: option: add Quectel EC200A module support

Namhyung Kim (1):
perf dwarf-aux: Fix off-by-one in die_get_varname()

Nikita Zhandarovich (3):
PM: domains: fix integer overflow issues in genpd_parse_state()
radeon: avoid double free in ci_dpm_init() drm/radeon: fix possible division-by-zero errors

Nilesh Javali (1):
scsi: qla2xxx: Check valid rport returned by fc_bsg_to_rport()

Nishanth Menon (1):

      mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0

Oliver Neukum (1):
USB: serial: simple: add Kaufmann RKS+CAN VCP

Pablo Neira Ayuso (3):
netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE
netfilter: nf_tables: add NFT_TRANS_PREPARE_ERROR to deal with bound set/chain
netfilter: nf_tables: unbind non-anonymous set if rule construction fails

Pedro Tammela (2):
net/sched: make psched_mtu() RTNL-less safe net/sched: sch_qfq: account for stab overhead in qfq_enqueue

Peter Seiderer (1):
wifi: ath9k: fix AR9003 mac hardware hang check register offset calculation

Peter Zijlstra (1):
perf: Fix function pointer case

Prince Kumar Maurya (1):
fs/sysv: Null check to prevent null-ptr-deref bug

Quinn Tran (1):
scsi: qla2xxx: Wait for io return on terminate rport

Rafał Miłecki (1):
ARM: dts: BCM5301X: Drop "clock-names" from the SPI node

Randy Dunlap (4):
soc/fsl/qe: fix usb.c build errors
crypto: nx - fix build warnings when DEBUG_FS is not enabled
powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y
wifi: airo: avoid uninitialized warning in airo_get_rate()

Rasmus Villemoes (3):
spi: spi-fsl-spi: remove always-true conditional in fsl_spi_do_one_msg
spi: spi-fsl-spi: relax message sanity checking a little
spi: spi-fsl-spi: allow changing bits_per_word while CS is still active

Remi Pommarel (1):
wifi: ath9k: Fix possible stall on ath9k_txq_list_has_key()

Ricardo Ribalda (1):
usb: xhci-mtk: set the dma max_seg_size

Robert Marko (2):
mmc: core: disable TRIM on Kingston EMMC04G-M627
mmc: core: disable TRIM on Micron MTFC4GACAJCN-1M

Roberto Sassu (1):
evm: Complete description of evm_inode_setattr()

Robin Murphy (1):
PCI: Add function 1 DMA alias quirk for Marvell 88SE9235

Roger Quadros (1):
mtd: rawnand: omap_elm: Fix incorrect type in assignment

Ross Maynard (1):

      USB: zaurus: Add ID for A-300/B-500/C-700

Shreyas Deodhar (1):
scsi: qla2xxx: Pointer may be dereferenced

Siddh Raman Pant (1):
jfs: jfs_dmap: Validate db_l2nbperpage while mounting

Stefan Haberland (1):
s390/dasd: fix hanging device after quiesce/resume

Stephan Gerhold (1):

      mfd: rt5033: Drop rt5033-battery sub-device

Stewart Smith (1):
tcp: Reduce chance of collisions in inet6_hashfn().

Su Hui (1):
ALSA: ac97: Fix possible NULL dereference in snd_ac97_mixer

Sui Jingfeng (1):
PCI: Add pci_clear_master() stub for non-CONFIG_PCI

Sungwoo Kim (1):
Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb

Tanmay Patil (1):
net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()/cpsw_ale_set_field()

Tetsuo Handa (1):
debugobjects: Recheck debug_objects_enabled before reporting

Thadeu Lima de Souza Cascardo (1):
netfilter: nf_tables: prevent OOB access in nft_byteorder_eval

Thomas Gleixner (2):
x86/smp: Use dedicated cache-line for mwait_play_dead()
posix-timers: Ensure timer ID search-loop limit is valid

Tianjia Zhang (1):
integrity: Fix possible multiple allocation in integrity_inode_get()

Tobias Heider (1):
Add MODULE_FIRMWARE() for FIRMWARE_TG357766.

Vladimir Oltean (1):
net: bridge: keep ports without IFF_UNICAST_FLT in BR_PROMISC mode

Wang Ming (1):
i40e: Fix an NULL vs IS_ERR() bug for debugfs_create_dir()

Yang Yingliang (1):
NTB: ntb_transport: fix possible memory leak while device_register() fails

Yicong Yang (1):
sched/fair: Don't balance task to its current running CPU

Ying Hsu (1):
igb: Fix igb_down hung on surprise removal

Yu Kuai (3):
md: fix data corruption for raid456 when reshape restart while grow up md/raid10: prevent soft lockup while flush writes
dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths

Yuan Can (3):
ntb: idt: Fix error handling in idt_pci_driver_init()
NTB: amd: Fix error handling in amd_ntb_pci_driver_init()
ntb: intel: Fix error handling in intel_ntb_pci_driver_init()

Yuanjun Gong (3):
ethernet: atheros: fix return value check in atl1e_tso_csum()
benet: fix return value check in be_lancer_xmit_workarounds() net/mlx5e: fix return value check in mlx5e_ipsec_remove_trailer()

Yuchen Yang (1):
scsi: 3w-xxxx: Add error handling for initialization failure in tw_probe()

Yue Haibing (1):
ip6mr: Fix skb_under_panic in ip6mr_cache_report()

YueHaibing (1):
can: bcm: Fix UAF in bcm_proc_show()

Zhang Shurong (2):
fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe
staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext()

Zhen Lei (1):
kexec: fix a memory leak in crash_shrink_memory()

Zheng Wang (1):
fbdev: imsttfb: Fix use after free bug in imsttfb_probe

Zheng Yejian (3):
ring-buffer: Fix deadloop issue on reading trace_pipe
ring-buffer: Fix wrong stat of cpu_buffer->read
tracing: Fix warning in trace_buffered_event_disable()

Zhong Jinghua (1):
nbd: Add the maximum limit of allocated index in nbd_dev_add

Ziyang Xuan (1):
ipv6/addrconf: fix a potential refcount underflow for idev

[email protected] (1):
word-at-a-time: use the same return type for has_zero regardless of endianness

valis (2):
net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free

author maintainer
#1 lore raw
Documentation/admin-guide/security-bugs.rst +11 -13
index 47574b382d75..2ebf5742df27 100644
@@ -42,20 +42,18 @@ disclosure is from immediate (esp. if it's already publicly known)
 to a few weeks.  As a basic default policy, we expect report date to
 disclosure date to be on the order of 7 days.
 
-Coordination
-------------
+Coordination with other groups
+------------------------------
 
-Fixes for sensitive bugs, such as those that might lead to privilege
-escalations, may need to be coordinated with the private
-<[email protected]> mailing list so that distribution vendors
-are well prepared to issue a fixed kernel upon public disclosure of the
-upstream fix. Distros will need some time to test the proposed patch and
-will generally request at least a few days of embargo, and vendor update
-publication prefers to happen Tuesday through Thursday. When appropriate,
-the security team can assist with this coordination, or the reporter can
-include linux-distros from the start. In this case, remember to prefix
-the email Subject line with "[vs]" as described in the linux-distros wiki:
-<http://oss-security.openwall.org/wiki/mailing-lists/distros#how-to-use-the-lists>
+The kernel security team strongly recommends that reporters of potential
+security issues NEVER contact the "linux-distros" mailing list until
+AFTER discussing it with the kernel security team.  Do not Cc: both
+lists at once.  You may contact the linux-distros mailing list after a
+fix has been agreed on and you fully understand the requirements that
+doing so will impose on you and the kernel community.
+
+The different lists have different goals and the linux-distros rules do
+not contribute to actually fixing any potential security problems.
 
 CVE assignment
 --------------
Makefile +1 -1
index eb73f214cc92..3e6450cba24b 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 14
-SUBLEVEL = 321
+SUBLEVEL = 322
 EXTRAVERSION =
 NAME = Petit Gorille
 
arch/arm/boot/dts/bcm5301x.dtsi +0 -1
index c3b6ba4db8e3..b48d8336b798 100644
@@ -449,7 +449,6 @@
 				  "spi_lr_session_done",
 				  "spi_lr_overread";
 		clocks = <&iprocmed>;
-		clock-names = "iprocmed";
 		num-cs = <2>;
 		#address-cells = <1>;
 		#size-cells = <0>;
arch/arm/mach-ep93xx/timer-ep93xx.c +2 -1
index de998830f534..b07956883e16 100644
@@ -9,6 +9,7 @@
 #include <linux/io.h>
 #include <asm/mach/time.h>
 #include "soc.h"
+#include "platform.h"
 
 /*************************************************************************
  * Timer handling for EP93xx
@@ -60,7 +61,7 @@ static u64 notrace ep93xx_read_sched_clock(void)
 	return ret;
 }
 
-u64 ep93xx_clocksource_read(struct clocksource *c)
+static u64 ep93xx_clocksource_read(struct clocksource *c)
 {
 	u64 ret;
 
arch/arm/mach-orion5x/board-dt.c +3 -0
index 3d36f1d95196..3f651df3a71c 100644
@@ -63,6 +63,9 @@ static void __init orion5x_dt_init(void)
 	if (of_machine_is_compatible("maxtor,shared-storage-2"))
 		mss2_init();
 
+	if (of_machine_is_compatible("lacie,d2-network"))
+		d2net_init();
+
 	of_platform_default_populate(NULL, orion5x_auxdata_lookup, NULL);
 }
 
arch/arm/mach-orion5x/common.h +6 -0
index eb96009e21c4..b9cfdb456456 100644
@@ -75,6 +75,12 @@ extern void mss2_init(void);
 static inline void mss2_init(void) {}
 #endif
 
+#ifdef CONFIG_MACH_D2NET_DT
+void d2net_init(void);
+#else
+static inline void d2net_init(void) {}
+#endif
+
 /*****************************************************************************
  * Helpers to access Orion registers
  ****************************************************************************/
arch/arm/mach-sa1100/assabet.c +1 -1
index d28ecb9ef172..5cce3c1326af 100644
@@ -518,7 +518,7 @@ static void __init map_sa1100_gpio_regs( void )
  */
 static void __init get_assabet_scr(void)
 {
-	unsigned long uninitialized_var(scr), i;
+	unsigned long scr, i;
 
 	GPDR |= 0x3fc;			/* Configure GPIO 9:2 as outputs */
 	GPSR = 0x3fc;			/* Write 0xFF to GPIO 9:2 */
arch/ia64/kernel/process.c +1 -1
index dda0082056b3..a26a22eb1f12 100644
@@ -448,7 +448,7 @@ static void
 do_copy_task_regs (struct task_struct *task, struct unw_frame_info *info, void *arg)
 {
 	unsigned long mask, sp, nat_bits = 0, ar_rnat, urbs_end, cfm;
-	unsigned long uninitialized_var(ip);	/* GCC be quiet */
+	unsigned long ip;
 	elf_greg_t *dst = arg;
 	struct pt_regs *pt;
 	char nat;
arch/ia64/mm/discontig.c +1 -1
index 99b59a7ec187..5b174e165e80 100644
@@ -185,7 +185,7 @@ static void *per_cpu_node_setup(void *cpu_data, int node)
 void __init setup_per_cpu_areas(void)
 {
 	struct pcpu_alloc_info *ai;
-	struct pcpu_group_info *uninitialized_var(gi);
+	struct pcpu_group_info *gi;
 	unsigned int *cpu_map;
 	void *base;
 	unsigned long base_offset;
arch/ia64/mm/tlb.c +1 -1
index 46ecc5d948aa..33d31e8bb776 100644
@@ -339,7 +339,7 @@ EXPORT_SYMBOL(flush_tlb_range);
 
 void ia64_tlb_init(void)
 {
-	ia64_ptce_info_t uninitialized_var(ptce_info); /* GCC be quiet */
+	ia64_ptce_info_t ptce_info;
 	u64 tr_pgbits;
 	long status;
 	pal_vm_info_1_u_t vm_info_1;
arch/powerpc/Kconfig.debug +1 -1
index 762bb08b0f59..6c60cc03a53c 100644
@@ -231,7 +231,7 @@ config PPC_EARLY_DEBUG_40x
 
 config PPC_EARLY_DEBUG_CPM
 	bool "Early serial debugging for Freescale CPM-based serial ports"
-	depends on SERIAL_CPM
+	depends on SERIAL_CPM=y
 	help
 	  Select this to enable early debugging for Freescale chips
 	  using a CPM-based serial port.  This assumes that the bootwrapper
arch/powerpc/include/asm/word-at-a-time.h +1 -1
index f3f4710d4ff5..99129b0cd8b8 100644
@@ -34,7 +34,7 @@ static inline long find_zero(unsigned long mask)
 	return leading_zero_bits >> 3;
 }
 
-static inline bool has_zero(unsigned long val, unsigned long *data, const struct word_at_a_time *c)
+static inline unsigned long has_zero(unsigned long val, unsigned long *data, const struct word_at_a_time *c)
 {
 	unsigned long rhs = val | c->low_bits;
 	*data = rhs;
arch/powerpc/platforms/52xx/mpc52xx_pic.c +1 -1
index fc98912f42cf..76a8102bdb98 100644
@@ -340,7 +340,7 @@ static int mpc52xx_irqhost_map(struct irq_domain *h, unsigned int virq,
 {
 	int l1irq;
 	int l2irq;
-	struct irq_chip *uninitialized_var(irqchip);
+	struct irq_chip *irqchip;
 	void *hndlr;
 	int type;
 	u32 reg;
arch/s390/kernel/smp.c +1 -1
index d43b48d8f67d..deb42245e200 100644
@@ -147,7 +147,7 @@ static int pcpu_sigp_retry(struct pcpu *pcpu, u8 order, u32 parm)
 
 static inline int pcpu_stopped(struct pcpu *pcpu)
 {
-	u32 uninitialized_var(status);
+	u32 status;
 
 	if (__pcpu_sigp(pcpu->address, SIGP_SENSE,
 			0, &status) != SIGP_CC_STATUS_STORED)
arch/sh/drivers/dma/dma-sh.c +24 -13
index afde2a7d3eb3..e0679d8a9b34 100644
@@ -21,6 +21,18 @@
 #include <cpu/dma-register.h>
 #include <cpu/dma.h>
 
+/*
+ * Some of the SoCs feature two DMAC modules. In such a case, the channels are
+ * distributed equally among them.
+ */
+#ifdef	SH_DMAC_BASE1
+#define	SH_DMAC_NR_MD_CH	(CONFIG_NR_ONCHIP_DMA_CHANNELS / 2)
+#else
+#define	SH_DMAC_NR_MD_CH	CONFIG_NR_ONCHIP_DMA_CHANNELS
+#endif
+
+#define	SH_DMAC_CH_SZ		0x10
+
 /*
  * Define the default configuration for dual address memory-memory transfer.
  * The 0x400 value represents auto-request, external->external.
@@ -32,7 +44,7 @@ static unsigned long dma_find_base(unsigned int chan)
 	unsigned long base = SH_DMAC_BASE0;
 
 #ifdef SH_DMAC_BASE1
-	if (chan >= 6)
+	if (chan >= SH_DMAC_NR_MD_CH)
 		base = SH_DMAC_BASE1;
 #endif
 
@@ -43,13 +55,13 @@ static unsigned long dma_base_addr(unsigned int chan)
 {
 	unsigned long base = dma_find_base(chan);
 
-	/* Normalize offset calculation */
-	if (chan >= 9)
-		chan -= 6;
-	if (chan >= 4)
-		base += 0x10;
+	chan = (chan % SH_DMAC_NR_MD_CH) * SH_DMAC_CH_SZ;
+
+	/* DMAOR is placed inside the channel register space. Step over it. */
+	if (chan >= DMAOR)
+		base += SH_DMAC_CH_SZ;
 
-	return base + (chan * 0x10);
+	return base + chan;
 }
 
 #ifdef CONFIG_SH_DMA_IRQ_MULTI
@@ -253,12 +265,11 @@ static int sh_dmac_get_dma_residue(struct dma_channel *chan)
 #define NR_DMAOR	1
 #endif
 
-/*
- * DMAOR bases are broken out amongst channel groups. DMAOR0 manages
- * channels 0 - 5, DMAOR1 6 - 11 (optional).
- */
-#define dmaor_read_reg(n)		__raw_readw(dma_find_base((n)*6))
-#define dmaor_write_reg(n, data)	__raw_writew(data, dma_find_base(n)*6)
+#define dmaor_read_reg(n)		__raw_readw(dma_find_base((n) * \
+						    SH_DMAC_NR_MD_CH) + DMAOR)
+#define dmaor_write_reg(n, data)	__raw_writew(data, \
+						     dma_find_base((n) * \
+						     SH_DMAC_NR_MD_CH) + DMAOR)
 
 static inline int dmaor_reset(int no)
 {
arch/sh/kernel/cpu/sh2/probe.c +1 -1
index a5bd03642678..75dcb1d6bc62 100644
@@ -24,7 +24,7 @@ static int __init scan_cache(unsigned long node, const char *uname,
 	if (!of_flat_dt_is_compatible(node, "jcore,cache"))
 		return 0;
 
-	j2_ccr_base = (u32 __iomem *)of_flat_dt_translate_address(node);
+	j2_ccr_base = ioremap(of_flat_dt_translate_address(node), 4);
 
 	return 1;
 }
arch/x86/kernel/cpu/microcode/amd.c +1 -1
index 22fb64951bb8..14366ee8f359 100644
@@ -532,7 +532,7 @@ static enum ucode_state apply_microcode_amd(int cpu)
 	rdmsr(MSR_AMD64_PATCH_LEVEL, rev, dummy);
 
 	/* need to apply patch? */
-	if (rev >= mc_amd->hdr.patch_id) {
+	if (rev > mc_amd->hdr.patch_id) {
 		ret = UCODE_OK;
 		goto out;
 	}
arch/x86/kernel/quirks.c +5 -5
index 736348ead421..2ecf1dcc86b2 100644
@@ -96,7 +96,7 @@ static void ich_force_hpet_resume(void)
 static void ich_force_enable_hpet(struct pci_dev *dev)
 {
 	u32 val;
-	u32 uninitialized_var(rcba);
+	u32 rcba;
 	int err = 0;
 
 	if (hpet_address || force_hpet_address)
@@ -186,7 +186,7 @@ static void hpet_print_force_info(void)
 static void old_ich_force_hpet_resume(void)
 {
 	u32 val;
-	u32 uninitialized_var(gen_cntl);
+	u32 gen_cntl;
 
 	if (!force_hpet_address || !cached_dev)
 		return;
@@ -208,7 +208,7 @@ static void old_ich_force_hpet_resume(void)
 static void old_ich_force_enable_hpet(struct pci_dev *dev)
 {
 	u32 val;
-	u32 uninitialized_var(gen_cntl);
+	u32 gen_cntl;
 
 	if (hpet_address || force_hpet_address)
 		return;
@@ -299,7 +299,7 @@ static void vt8237_force_hpet_resume(void)
 
 static void vt8237_force_enable_hpet(struct pci_dev *dev)
 {
-	u32 uninitialized_var(val);
+	u32 val;
 
 	if (hpet_address || force_hpet_address)
 		return;
@@ -430,7 +430,7 @@ static void nvidia_force_hpet_resume(void)
 
 static void nvidia_force_enable_hpet(struct pci_dev *dev)
 {
-	u32 uninitialized_var(val);
+	u32 val;
 
 	if (hpet_address || force_hpet_address)
 		return;
arch/x86/kernel/smpboot.c +14 -10
index aea06e7a6bee..21f6c0357d74 100644
@@ -94,6 +94,17 @@ DEFINE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_llc_shared_map);
 DEFINE_PER_CPU_READ_MOSTLY(struct cpuinfo_x86, cpu_info);
 EXPORT_PER_CPU_SYMBOL(cpu_info);
 
+struct mwait_cpu_dead {
+	unsigned int	control;
+	unsigned int	status;
+};
+
+/*
+ * Cache line aligned data for mwait_play_dead(). Separate on purpose so
+ * that it's unlikely to be touched by other CPUs.
+ */
+static DEFINE_PER_CPU_ALIGNED(struct mwait_cpu_dead, mwait_cpu_dead);
+
 /* Logical package management. We might want to allocate that dynamically */
 static int *physical_to_logical_pkg __read_mostly;
 static unsigned long *physical_package_map __read_mostly;;
@@ -1638,10 +1649,10 @@ static bool wakeup_cpu0(void)
  */
 static inline void mwait_play_dead(void)
 {
+	struct mwait_cpu_dead *md = this_cpu_ptr(&mwait_cpu_dead);
 	unsigned int eax, ebx, ecx, edx;
 	unsigned int highest_cstate = 0;
 	unsigned int highest_subcstate = 0;
-	void *mwait_ptr;
 	int i;
 
 	if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD)
@@ -1675,13 +1686,6 @@ static inline void mwait_play_dead(void)
 			(highest_subcstate - 1);
 	}
 
-	/*
-	 * This should be a memory location in a cache line which is
-	 * unlikely to be touched by other processors.  The actual
-	 * content is immaterial as it is not actually modified in any way.
-	 */
-	mwait_ptr = &current_thread_info()->flags;
-
 	wbinvd();
 
 	while (1) {
@@ -1693,9 +1697,9 @@ static inline void mwait_play_dead(void)
 		 * case where we return around the loop.
 		 */
 		mb();
-		clflush(mwait_ptr);
+		clflush(md);
 		mb();
-		__monitor(mwait_ptr, 0, 0);
+		__monitor(md, 0, 0);
 		mb();
 		__mwait(eax, 0);
 		/*
arch/xtensa/platforms/iss/network.c +1 -1
index 66a5d15a9e0e..9cc96907b45d 100644
@@ -234,7 +234,7 @@ static int tuntap_probe(struct iss_net_private *lp, int index, char *init)
 
 	init += sizeof(TRANSPORT_TUNTAP_NAME) - 1;
 	if (*init == ',') {
-		rem = split_if_spec(init + 1, &mac_str, &dev_name);
+		rem = split_if_spec(init + 1, &mac_str, &dev_name, NULL);
 		if (rem != NULL) {
 			pr_err("%s: extra garbage on specification : '%s'\n",
 			       dev->name, rem);
drivers/acpi/acpi_pad.c +1 -1
index 552c1f725b6c..40188632958c 100644
@@ -95,7 +95,7 @@ static void round_robin_cpu(unsigned int tsk_index)
 	cpumask_var_t tmp;
 	int cpu;
 	unsigned long min_weight = -1;
-	unsigned long uninitialized_var(preferred_cpu);
+	unsigned long preferred_cpu;
 
 	if (!alloc_cpumask_var(&tmp, GFP_KERNEL))
 		return;
drivers/ata/libata-scsi.c +1 -1
index 5728f458aad8..b44e8bc759c0 100644
@@ -176,7 +176,7 @@ static ssize_t ata_scsi_park_show(struct device *device,
 	struct ata_link *link;
 	struct ata_device *dev;
 	unsigned long now;
-	unsigned int uninitialized_var(msecs);
+	unsigned int msecs;
 	int rc = 0;
 
 	ap = ata_shost_to_port(sdev->host);
drivers/ata/pata_ns87415.c +1 -1
index 84c6b225b56e..9ee4aefca867 100644
@@ -260,7 +260,7 @@ static u8 ns87560_check_status(struct ata_port *ap)
  *	LOCKING:
  *	Inherited from caller.
  */
-void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
+static void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
 {
 	struct ata_ioports *ioaddr = &ap->ioaddr;
 
drivers/atm/zatm.c +1 -1
index 817c7edfec0b..b7ae2fe415d1 100644
@@ -939,7 +939,7 @@ static int open_tx_first(struct atm_vcc *vcc)
 	    vcc->qos.txtp.max_pcr >= ATM_OC3_PCR);
 	if (unlimited && zatm_dev->ubr != -1) zatm_vcc->shaper = zatm_dev->ubr;
 	else {
-		int uninitialized_var(pcr);
+		int pcr;
 
 		if (unlimited) vcc->qos.txtp.max_sdu = ATM_MAX_AAL5_PDU;
 		if ((zatm_vcc->shaper = alloc_shaper(vcc->dev,&pcr,
drivers/base/power/domain.c +3 -3
index a64b093a88cf..0f38df5856e1 100644
@@ -2206,10 +2206,10 @@ static int genpd_parse_state(struct genpd_power_state *genpd_state,
 
 	err = of_property_read_u32(state_node, "min-residency-us", &residency);
 	if (!err)
-		genpd_state->residency_ns = 1000 * residency;
+		genpd_state->residency_ns = 1000LL * residency;
 
-	genpd_state->power_on_latency_ns = 1000 * exit_latency;
-	genpd_state->power_off_latency_ns = 1000 * entry_latency;
+	genpd_state->power_on_latency_ns = 1000LL * exit_latency;
+	genpd_state->power_off_latency_ns = 1000LL * entry_latency;
 	genpd_state->fwnode = &state_node->fwnode;
 
 	return 0;
drivers/block/drbd/drbd_nl.c +3 -3
index bfefa8c4fa16..f55bcc86b4ee 100644
@@ -3394,7 +3394,7 @@ int drbd_adm_dump_devices(struct sk_buff *skb, struct netlink_callback *cb)
 {
 	struct nlattr *resource_filter;
 	struct drbd_resource *resource;
-	struct drbd_device *uninitialized_var(device);
+	struct drbd_device *device;
 	int minor, err, retcode;
 	struct drbd_genlmsghdr *dh;
 	struct device_info device_info;
@@ -3483,7 +3483,7 @@ int drbd_adm_dump_connections(struct sk_buff *skb, struct netlink_callback *cb)
 {
 	struct nlattr *resource_filter;
 	struct drbd_resource *resource = NULL, *next_resource;
-	struct drbd_connection *uninitialized_var(connection);
+	struct drbd_connection *connection;
 	int err = 0, retcode;
 	struct drbd_genlmsghdr *dh;
 	struct connection_info connection_info;
@@ -3645,7 +3645,7 @@ int drbd_adm_dump_peer_devices(struct sk_buff *skb, struct netlink_callback *cb)
 {
 	struct nlattr *resource_filter;
 	struct drbd_resource *resource;
-	struct drbd_device *uninitialized_var(device);
+	struct drbd_device *device;
 	struct drbd_peer_device *peer_device = NULL;
 	int minor, err, retcode;
 	struct drbd_genlmsghdr *dh;
drivers/block/loop.c +2 -1
index 6acb174c9a12..ba2a8a46ee5e 100644
@@ -1846,7 +1846,8 @@ static int loop_add(struct loop_device **l, int i)
 	lo->tag_set.queue_depth = 128;
 	lo->tag_set.numa_node = NUMA_NO_NODE;
 	lo->tag_set.cmd_size = sizeof(struct loop_cmd);
-	lo->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_SG_MERGE;
+	lo->tag_set.flags = BLK_MQ_F_SHOULD_MERGE | BLK_MQ_F_SG_MERGE |
+		BLK_MQ_F_NO_SCHED;
 	lo->tag_set.driver_data = lo;
 
 	err = blk_mq_alloc_tag_set(&lo->tag_set);
drivers/block/nbd.c +2 -1
index eb2ca7f6ab3a..33ad48719c12 100644
@@ -1630,7 +1630,8 @@ static int nbd_dev_add(int index)
 		if (err == -ENOSPC)
 			err = -EEXIST;
 	} else {
-		err = idr_alloc(&nbd_index_idr, nbd, 0, 0, GFP_KERNEL);
+		err = idr_alloc(&nbd_index_idr, nbd, 0,
+				(MINORMASK >> part_shift) + 1, GFP_KERNEL);
 		if (err >= 0)
 			index = err;
 	}
drivers/char/hw_random/imx-rngc.c +2 -4
index 48194d1a6076..5a31887867d6 100644
@@ -104,7 +104,7 @@ static int imx_rngc_self_test(struct imx_rngc *rngc)
 	cmd = readl(rngc->base + RNGC_COMMAND);
 	writel(cmd | RNGC_CMD_SELF_TEST, rngc->base + RNGC_COMMAND);
 
-	ret = wait_for_completion_timeout(&rngc->rng_op_done, RNGC_TIMEOUT);
+	ret = wait_for_completion_timeout(&rngc->rng_op_done, msecs_to_jiffies(RNGC_TIMEOUT));
 	if (!ret) {
 		imx_rngc_irq_mask_clear(rngc);
 		return -ETIMEDOUT;
@@ -187,9 +187,7 @@ static int imx_rngc_init(struct hwrng *rng)
 		cmd = readl(rngc->base + RNGC_COMMAND);
 		writel(cmd | RNGC_CMD_SEED, rngc->base + RNGC_COMMAND);
 
-		ret = wait_for_completion_timeout(&rngc->rng_op_done,
-				RNGC_TIMEOUT);
-
+		ret = wait_for_completion_timeout(&rngc->rng_op_done, msecs_to_jiffies(RNGC_TIMEOUT));
 		if (!ret) {
 			imx_rngc_irq_mask_clear(rngc);
 			return -ETIMEDOUT;
drivers/char/tpm/tpm_tis_core.c +8 -2
index 9e42943f6a59..325581558509 100644
@@ -209,6 +209,7 @@ static int tpm_tis_recv(struct tpm_chip *chip, u8 *buf, size_t count)
 	int size = 0;
 	int status;
 	u32 expected;
+	int rc;
 
 	if (count < TPM_HEADER_SIZE) {
 		size = -EIO;
@@ -228,8 +229,13 @@ static int tpm_tis_recv(struct tpm_chip *chip, u8 *buf, size_t count)
 		goto out;
 	}
 
-	size += recv_data(chip, &buf[TPM_HEADER_SIZE],
-			  expected - TPM_HEADER_SIZE);
+	rc = recv_data(chip, &buf[TPM_HEADER_SIZE],
+		       expected - TPM_HEADER_SIZE);
+	if (rc < 0) {
+		size = rc;
+		goto out;
+	}
+	size += rc;
 	if (size < expected) {
 		dev_err(&chip->dev, "Unable to read remainder of result\n");
 		size = -ETIME;
drivers/char/tpm/tpm_vtpm_proxy.c +7 -23
index 94a539384619..ab460183a13b 100644
@@ -700,37 +700,21 @@ static struct miscdevice vtpmx_miscdev = {
 	.fops = &vtpmx_fops,
 };
 
-static int vtpmx_init(void)
-{
-	return misc_register(&vtpmx_miscdev);
-}
-
-static void vtpmx_cleanup(void)
-{
-	misc_deregister(&vtpmx_miscdev);
-}
-
 static int __init vtpm_module_init(void)
 {
 	int rc;
 
-	rc = vtpmx_init();
-	if (rc) {
-		pr_err("couldn't create vtpmx device\n");
-		return rc;
-	}
-
 	workqueue = create_workqueue("tpm-vtpm");
 	if (!workqueue) {
 		pr_err("couldn't create workqueue\n");
-		rc = -ENOMEM;
-		goto err_vtpmx_cleanup;
+		return -ENOMEM;
 	}
 
-	return 0;
-
-err_vtpmx_cleanup:
-	vtpmx_cleanup();
+	rc = misc_register(&vtpmx_miscdev);
+	if (rc) {
+		pr_err("couldn't create vtpmx device\n");
+		destroy_workqueue(workqueue);
+	}
 
 	return rc;
 }
@@ -738,7 +722,7 @@ static int __init vtpm_module_init(void)
 static void __exit vtpm_module_exit(void)
 {
 	destroy_workqueue(workqueue);
-	vtpmx_cleanup();
+	misc_deregister(&vtpmx_miscdev);
 }
 
 module_init(vtpm_module_init);
drivers/clk/clk-gate.c +1 -1
index dd82485e09a1..c110f5d40b58 100644
@@ -43,7 +43,7 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable)
 {
 	struct clk_gate *gate = to_clk_gate(hw);
 	int set = gate->flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0;
-	unsigned long uninitialized_var(flags);
+	unsigned long flags;
 	u32 reg;
 
 	set ^= enable;
drivers/crypto/nx/Makefile +1 -1
index 015155da59c2..76139865d7fa 100644
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 obj-$(CONFIG_CRYPTO_DEV_NX_ENCRYPT) += nx-crypto.o
 nx-crypto-objs := nx.o \
-		  nx_debugfs.o \
 		  nx-aes-cbc.o \
 		  nx-aes-ecb.o \
 		  nx-aes-gcm.o \
@@ -11,6 +10,7 @@ nx-crypto-objs := nx.o \
 		  nx-sha256.o \
 		  nx-sha512.o
 
+nx-crypto-$(CONFIG_DEBUG_FS) += nx_debugfs.o
 obj-$(CONFIG_CRYPTO_DEV_NX_COMPRESS_PSERIES) += nx-compress-pseries.o nx-compress.o
 obj-$(CONFIG_CRYPTO_DEV_NX_COMPRESS_POWERNV) += nx-compress-powernv.o nx-compress.o
 nx-compress-objs := nx-842.o
drivers/crypto/nx/nx.h +2 -2
index c3e54af18645..ebad937a9545 100644
@@ -180,8 +180,8 @@ struct nx_sg *nx_walk_and_build(struct nx_sg *, unsigned int,
 int nx_debugfs_init(struct nx_crypto_driver *);
 void nx_debugfs_fini(struct nx_crypto_driver *);
 #else
-#define NX_DEBUGFS_INIT(drv)	(0)
-#define NX_DEBUGFS_FINI(drv)	(0)
+#define NX_DEBUGFS_INIT(drv)	do {} while (0)
+#define NX_DEBUGFS_FINI(drv)	do {} while (0)
 #endif
 
 #define NX_PAGE_NUM(x)		((u64)(x) & 0xfffffffffffff000ULL)
drivers/extcon/extcon.c +8 -0
index 81a552654cc7..e6e3e404052b 100644
@@ -204,6 +204,14 @@ struct __extcon_info {
  * @attr_name:		"name" sysfs entry
  * @attr_state:		"state" sysfs entry
  * @attrs:		the array pointing to attr_name and attr_state for attr_g
+ * @usb_propval:	the array of USB connector properties
+ * @chg_propval:	the array of charger connector properties
+ * @jack_propval:	the array of jack connector properties
+ * @disp_propval:	the array of display connector properties
+ * @usb_bits:		the bit array of the USB connector property capabilities
+ * @chg_bits:		the bit array of the charger connector property capabilities
+ * @jack_bits:		the bit array of the jack connector property capabilities
+ * @disp_bits:		the bit array of the display connector property capabilities
  */
 struct extcon_cable {
 	struct extcon_dev *edev;
drivers/firewire/ohci.c +7 -7
index d731b413cb2c..f2b624a440ca 100644
@@ -1114,7 +1114,7 @@ static void context_tasklet(unsigned long data)
 static int context_add_buffer(struct context *ctx)
 {
 	struct descriptor_buffer *desc;
-	dma_addr_t uninitialized_var(bus_addr);
+	dma_addr_t bus_addr;
 	int offset;
 
 	/*
@@ -1304,7 +1304,7 @@ static int at_context_queue_packet(struct context *ctx,
 				   struct fw_packet *packet)
 {
 	struct fw_ohci *ohci = ctx->ohci;
-	dma_addr_t d_bus, uninitialized_var(payload_bus);
+	dma_addr_t d_bus, payload_bus;
 	struct driver_data *driver_data;
 	struct descriptor *d, *last;
 	__le32 *header;
@@ -2460,7 +2460,7 @@ static int ohci_set_config_rom(struct fw_card *card,
 {
 	struct fw_ohci *ohci;
 	__be32 *next_config_rom;
-	dma_addr_t uninitialized_var(next_config_rom_bus);
+	dma_addr_t next_config_rom_bus;
 
 	ohci = fw_ohci(card);
 
@@ -2949,10 +2949,10 @@ static struct fw_iso_context *ohci_allocate_iso_context(struct fw_card *card,
 				int type, int channel, size_t header_size)
 {
 	struct fw_ohci *ohci = fw_ohci(card);
-	struct iso_context *uninitialized_var(ctx);
-	descriptor_callback_t uninitialized_var(callback);
-	u64 *uninitialized_var(channels);
-	u32 *uninitialized_var(mask), uninitialized_var(regs);
+	struct iso_context *ctx;
+	descriptor_callback_t callback;
+	u64 *channels;
+	u32 *mask, regs;
 	int index, ret = -EBUSY;
 
 	spin_lock_irq(&ohci->lock);
drivers/gpio/gpio-tps68470.c +3 -3
index fa2662f8b026..773c7426fd22 100644
@@ -99,13 +99,13 @@ static int tps68470_gpio_output(struct gpio_chip *gc, unsigned int offset,
 	struct tps68470_gpio_data *tps68470_gpio = gpiochip_get_data(gc);
 	struct regmap *regmap = tps68470_gpio->tps68470_regmap;
 
+	/* Set the initial value */
+	tps68470_gpio_set(gc, offset, value);
+
 	/* rest are always outputs */
 	if (offset >= TPS68470_N_REGULAR_GPIO)
 		return 0;
 
-	/* Set the initial value */
-	tps68470_gpio_set(gc, offset, value);
-
 	return regmap_update_bits(regmap, TPS68470_GPIO_CTL_REG_A(offset),
 				 TPS68470_GPIO_MODE_MASK,
 				 TPS68470_GPIO_MODE_OUT_CMOS);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +4 -0
index 57b1369aa522..d52e0bc70d45 100644
@@ -2712,6 +2712,10 @@ int amdgpu_vm_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)
 	struct amdgpu_fpriv *fpriv = filp->driver_priv;
 	int r;
 
+	/* No valid flags defined yet */
+	if (args->in.flags)
+		return -EINVAL;
+
 	switch (args->in.op) {
 	case AMDGPU_VM_OP_RESERVE_VMID:
 		/* current, we only have requirement to reserve vmid from gfxhub */
drivers/gpu/drm/bridge/sil-sii8620.c +1 -1
index 9edb7af37d1e..6e2a6e7f9fd0 100644
@@ -1011,7 +1011,7 @@ static void sii8620_set_auto_zone(struct sii8620 *ctx)
 
 static void sii8620_stop_video(struct sii8620 *ctx)
 {
-	u8 uninitialized_var(val);
+	u8 val;
 
 	sii8620_write_seq_static(ctx,
 		REG_TPI_INTR_EN, 0,
drivers/gpu/drm/drm_edid.c +3 -1
index de5fc79379e8..bb2de59baed0 100644
@@ -2671,7 +2671,7 @@ static int drm_cvt_modes(struct drm_connector *connector,
 	const u8 empty[3] = { 0, 0, 0 };
 
 	for (i = 0; i < 4; i++) {
-		int uninitialized_var(width), height;
+		int width, height;
 		cvt = &(timing->data.other_data.data.cvt[i]);
 
 		if (!memcmp(cvt->code, empty, 3))
@@ -2679,6 +2679,8 @@ static int drm_cvt_modes(struct drm_connector *connector,
 
 		height = (cvt->code[0] + ((cvt->code[1] & 0xf0) << 4) + 1) * 2;
 		switch (cvt->code[1] & 0x0c) {
+		/* default - because compiler doesn't see that we've enumerated all cases */
+		default:
 		case 0x00:
 			width = height * 4 / 3;
 			break;
drivers/gpu/drm/drm_fb_helper.c +5 -0
index fbf7f28d9df9..e8d0dbe92048 100644
@@ -2112,6 +2112,9 @@ static bool drm_target_cloned(struct drm_fb_helper *fb_helper,
 	can_clone = true;
 	dmt_mode = drm_mode_find_dmt(fb_helper->dev, 1024, 768, 60, false);
 
+	if (!dmt_mode)
+		goto fail;
+
 	drm_fb_helper_for_each_connector(fb_helper, i) {
 		if (!enabled[i])
 			continue;
@@ -2124,11 +2127,13 @@ static bool drm_target_cloned(struct drm_fb_helper *fb_helper,
 		if (!modes[i])
 			can_clone = false;
 	}
+	kfree(dmt_mode);
 
 	if (can_clone) {
 		DRM_DEBUG_KMS("can clone using 1024x768\n");
 		return true;
 	}
+fail:
 	DRM_INFO("kms: can't enable cloning when we probably wanted to.\n");
 	return false;
 }
drivers/gpu/drm/exynos/exynos_drm_dsi.c +3 -3
index 366c975cde5b..06e52b6fd03f 100644
@@ -545,9 +545,9 @@ static unsigned long exynos_dsi_pll_find_pms(struct exynos_dsi *dsi,
 	unsigned long best_freq = 0;
 	u32 min_delta = 0xffffffff;
 	u8 p_min, p_max;
-	u8 _p, uninitialized_var(best_p);
-	u16 _m, uninitialized_var(best_m);
-	u8 _s, uninitialized_var(best_s);
+	u8 _p, best_p;
+	u16 _m, best_m;
+	u8 _s, best_s;
 
 	p_min = DIV_ROUND_UP(fin, (12 * MHZ));
 	p_max = fin / (6 * MHZ);
drivers/gpu/drm/panel/panel-simple.c +2 -2
index 6df312ba1826..8bee025c0622 100644
@@ -407,8 +407,8 @@ static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
 	.num_modes = 1,
 	.bpc = 8,
 	.size = {
-		.width = 105,
-		.height = 67,
+		.width = 99,
+		.height = 58,
 	},
 	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
 };
drivers/gpu/drm/radeon/ci_dpm.c +20 -8
index 81bc2b89222f..0403924a2ca6 100644
@@ -5530,6 +5530,7 @@ static int ci_parse_power_table(struct radeon_device *rdev)
 	u8 frev, crev;
 	u8 *power_state_offset;
 	struct ci_ps *ps;
+	int ret;
 
 	if (!atom_parse_data_header(mode_info->atom_context, index, NULL,
 				   &frev, &crev, &data_offset))
@@ -5558,11 +5559,15 @@ static int ci_parse_power_table(struct radeon_device *rdev)
 		non_clock_array_index = power_state->v2.nonClockInfoIndex;
 		non_clock_info = (struct _ATOM_PPLIB_NONCLOCK_INFO *)
 			&non_clock_info_array->nonClockInfo[non_clock_array_index];
-		if (!rdev->pm.power_state[i].clock_info)
-			return -EINVAL;
+		if (!rdev->pm.power_state[i].clock_info) {
+			ret = -EINVAL;
+			goto err_free_ps;
+		}
 		ps = kzalloc(sizeof(struct ci_ps), GFP_KERNEL);
-		if (ps == NULL)
-			return -ENOMEM;
+		if (ps == NULL) {
+			ret = -ENOMEM;
+			goto err_free_ps;
+		}
 		rdev->pm.dpm.ps[i].ps_priv = ps;
 		ci_parse_pplib_non_clock_info(rdev, &rdev->pm.dpm.ps[i],
 					      non_clock_info,
@@ -5602,6 +5607,12 @@ static int ci_parse_power_table(struct radeon_device *rdev)
 	}
 
 	return 0;
+
+err_free_ps:
+	for (i = 0; i < rdev->pm.dpm.num_ps; i++)
+		kfree(rdev->pm.dpm.ps[i].ps_priv);
+	kfree(rdev->pm.dpm.ps);
+	return ret;
 }
 
 static int ci_get_vbios_boot_values(struct radeon_device *rdev,
@@ -5679,25 +5690,26 @@ int ci_dpm_init(struct radeon_device *rdev)
 
 	ret = ci_get_vbios_boot_values(rdev, &pi->vbios_boot_state);
 	if (ret) {
-		ci_dpm_fini(rdev);
+		kfree(rdev->pm.dpm.priv);
 		return ret;
 	}
 
 	ret = r600_get_platform_caps(rdev);
 	if (ret) {
-		ci_dpm_fini(rdev);
+		kfree(rdev->pm.dpm.priv);
 		return ret;
 	}
 
 	ret = r600_parse_extended_power_table(rdev);
 	if (ret) {
-		ci_dpm_fini(rdev);
+		kfree(rdev->pm.dpm.priv);
 		return ret;
 	}
 
 	ret = ci_parse_power_table(rdev);
 	if (ret) {
-		ci_dpm_fini(rdev);
+		kfree(rdev->pm.dpm.priv);
+		r600_free_extended_power_table(rdev);
 		return ret;
 	}
 
drivers/gpu/drm/radeon/cypress_dpm.c +6 -2
index 3eb7899a4035..2c637e04dfeb 100644
@@ -558,8 +558,12 @@ static int cypress_populate_mclk_value(struct radeon_device *rdev,
 						     ASIC_INTERNAL_MEMORY_SS, vco_freq)) {
 			u32 reference_clock = rdev->clock.mpll.reference_freq;
 			u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div);
-			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
-			u32 clk_v = ss.percentage *
+			u32 clk_s, clk_v;
+
+			if (!decoded_ref)
+				return -EINVAL;
+			clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
+			clk_v = ss.percentage *
 				(0x4000 * dividers.whole_fb_div + 0x800 * dividers.frac_fb_div) / (clk_s * 625);
 
 			mpll_ss1 &= ~CLKV_MASK;
drivers/gpu/drm/radeon/ni_dpm.c +6 -2
index fa88c1809946..701c99a55138 100644
@@ -2239,8 +2239,12 @@ static int ni_populate_mclk_value(struct radeon_device *rdev,
 						     ASIC_INTERNAL_MEMORY_SS, vco_freq)) {
 			u32 reference_clock = rdev->clock.mpll.reference_freq;
 			u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div);
-			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
-			u32 clk_v = ss.percentage *
+			u32 clk_s, clk_v;
+
+			if (!decoded_ref)
+				return -EINVAL;
+			clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
+			clk_v = ss.percentage *
 				(0x4000 * dividers.whole_fb_div + 0x800 * dividers.frac_fb_div) / (clk_s * 625);
 
 			mpll_ss1 &= ~CLKV_MASK;
drivers/gpu/drm/radeon/rv740_dpm.c +6 -2
index afd597ec5085..50290e93c79d 100644
@@ -251,8 +251,12 @@ int rv740_populate_mclk_value(struct radeon_device *rdev,
 						     ASIC_INTERNAL_MEMORY_SS, vco_freq)) {
 			u32 reference_clock = rdev->clock.mpll.reference_freq;
 			u32 decoded_ref = rv740_get_decoded_reference_divider(dividers.ref_div);
-			u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
-			u32 clk_v = 0x40000 * ss.percentage *
+			u32 clk_s, clk_v;
+
+			if (!decoded_ref)
+				return -EINVAL;
+			clk_s = reference_clock * 5 / (decoded_ref * ss.rate);
+			clk_v = 0x40000 * ss.percentage *
 				(dividers.whole_fb_div + (dividers.frac_fb_div / 8)) / (clk_s * 10000);
 
 			mpll_ss1 &= ~CLKV_MASK;
drivers/hwmon/nct7802.c +1 -1
index 779ec8fdfae0..56dd2d6ba9e4 100644
@@ -698,7 +698,7 @@ static umode_t nct7802_temp_is_visible(struct kobject *kobj,
 	if (index >= 38 && index < 46 && !(reg & 0x01))		/* PECI 0 */
 		return 0;
 
-	if (index >= 0x46 && (!(reg & 0x02)))			/* PECI 1 */
+	if (index >= 46 && !(reg & 0x02))			/* PECI 1 */
 		return 0;
 
 	return attr->mode;
drivers/i2c/busses/i2c-rk3x.c +1 -1
index 548089aa9aba..b50476f93a66 100644
@@ -417,7 +417,7 @@ static void rk3x_i2c_handle_read(struct rk3x_i2c *i2c, unsigned int ipd)
 {
 	unsigned int i;
 	unsigned int len = i2c->msg->len - i2c->processed;
-	u32 uninitialized_var(val);
+	u32 val;
 	u8 byte;
 
 	/* we only care for MBRF here. */
drivers/ide/ide-acpi.c +1 -1
index 7d4e5c08f133..05e18d658141 100644
@@ -180,7 +180,7 @@ static int ide_get_dev_handle(struct device *dev, acpi_handle *handle,
 static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif)
 {
 	struct device		*dev = hwif->gendev.parent;
-	acpi_handle		uninitialized_var(dev_handle);
+	acpi_handle		dev_handle;
 	u64			pcidevfn;
 	acpi_handle		chan_handle;
 	int			err;
drivers/ide/ide-atapi.c +1 -1
index 215558c947de..3ef1afc64918 100644
@@ -591,7 +591,7 @@ static int ide_delayed_transfer_pc(ide_drive_t *drive)
 
 static ide_startstop_t ide_transfer_pc(ide_drive_t *drive)
 {
-	struct ide_atapi_pc *uninitialized_var(pc);
+	struct ide_atapi_pc *pc;
 	ide_hwif_t *hwif = drive->hwif;
 	struct request *rq = hwif->rq;
 	ide_expiry_t *expiry;
drivers/ide/ide-io-std.c +2 -2
index 19763977568c..508f98ca3fe8 100644
@@ -172,7 +172,7 @@ void ide_input_data(ide_drive_t *drive, struct ide_cmd *cmd, void *buf,
 	u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0;
 
 	if (io_32bit) {
-		unsigned long uninitialized_var(flags);
+		unsigned long flags;
 
 		if ((io_32bit & 2) && !mmio) {
 			local_irq_save(flags);
@@ -216,7 +216,7 @@ void ide_output_data(ide_drive_t *drive, struct ide_cmd *cmd, void *buf,
 	u8 mmio = (hwif->host_flags & IDE_HFLAG_MMIO) ? 1 : 0;
 
 	if (io_32bit) {
-		unsigned long uninitialized_var(flags);
+		unsigned long flags;
 
 		if ((io_32bit & 2) && !mmio) {
 			local_irq_save(flags);
drivers/ide/ide-io.c +2 -2
index 7f34dc49c9b5..70bc469e10c4 100644
@@ -767,13 +767,13 @@ irqreturn_t ide_intr (int irq, void *dev_id)
 {
 	ide_hwif_t *hwif = (ide_hwif_t *)dev_id;
 	struct ide_host *host = hwif->host;
-	ide_drive_t *uninitialized_var(drive);
+	ide_drive_t *drive;
 	ide_handler_t *handler;
 	unsigned long flags;
 	ide_startstop_t startstop;
 	irqreturn_t irq_ret = IRQ_NONE;
 	int plug_device = 0;
-	struct request *uninitialized_var(rq_in_flight);
+	struct request *rq_in_flight;
 
 	if (host->host_flags & IDE_HFLAG_SERIALIZE) {
 		if (hwif != host->cur_port)
drivers/ide/ide-sysfs.c +1 -1
index b9dfeb2e8bd6..c08a8a0916e2 100644
@@ -131,7 +131,7 @@ static struct device_attribute *ide_port_attrs[] = {
 
 int ide_sysfs_register_port(ide_hwif_t *hwif)
 {
-	int i, uninitialized_var(rc);
+	int i, rc;
 
 	for (i = 0; ide_port_attrs[i]; i++) {
 		rc = device_create_file(hwif->portdev, ide_port_attrs[i]);
drivers/ide/umc8672.c +1 -1
index 3aa0fea0f3d9..1414caa97b40 100644
@@ -107,7 +107,7 @@ static void umc_set_speeds(u8 speeds[])
 static void umc_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
 {
 	ide_hwif_t *mate = hwif->mate;
-	unsigned long uninitialized_var(flags);
+	unsigned long flags;
 	const u8 pio = drive->pio_mode - XFER_PIO_0;
 
 	printk("%s: setting umc8672 to PIO mode%d (speed %d)\n",
drivers/iio/adc/meson_saradc.c +1 -1
index 9b2121f24926..51c8ed9a4e00 100644
@@ -75,7 +75,7 @@
 	#define MESON_SAR_ADC_REG3_PANEL_DETECT_COUNT_MASK	GENMASK(20, 18)
 	#define MESON_SAR_ADC_REG3_PANEL_DETECT_FILTER_TB_MASK	GENMASK(17, 16)
 	#define MESON_SAR_ADC_REG3_ADC_CLK_DIV_SHIFT		10
-	#define MESON_SAR_ADC_REG3_ADC_CLK_DIV_WIDTH		5
+	#define MESON_SAR_ADC_REG3_ADC_CLK_DIV_WIDTH		6
 	#define MESON_SAR_ADC_REG3_BLOCK_DLY_SEL_MASK		GENMASK(9, 8)
 	#define MESON_SAR_ADC_REG3_BLOCK_DLY_MASK		GENMASK(7, 0)
 
drivers/infiniband/core/uverbs_cmd.c +2 -2
index f836ed1dd300..e59caabb6cdf 100644
@@ -1738,7 +1738,7 @@ ssize_t ib_uverbs_open_qp(struct ib_uverbs_file *file,
 	struct ib_udata                 udata;
 	struct ib_uqp_object           *obj;
 	struct ib_xrcd		       *xrcd;
-	struct ib_uobject	       *uninitialized_var(xrcd_uobj);
+	struct ib_uobject	       *xrcd_uobj;
 	struct ib_qp                   *qp;
 	struct ib_qp_open_attr          attr;
 	int ret;
@@ -3538,7 +3538,7 @@ static int __uverbs_create_xsrq(struct ib_uverbs_file *file,
 	struct ib_usrq_object           *obj;
 	struct ib_pd                    *pd;
 	struct ib_srq                   *srq;
-	struct ib_uobject               *uninitialized_var(xrcd_uobj);
+	struct ib_uobject               *xrcd_uobj;
 	struct ib_srq_init_attr          attr;
 	int ret;
 
drivers/infiniband/hw/cxgb4/cm.c +1 -1
index 2ea87fe1184d..357960d48e66 100644
@@ -3168,7 +3168,7 @@ static int get_lladdr(struct net_device *dev, struct in6_addr *addr,
 
 static int pick_local_ip6addrs(struct c4iw_dev *dev, struct iw_cm_id *cm_id)
 {
-	struct in6_addr uninitialized_var(addr);
+	struct in6_addr addr;
 	struct sockaddr_in6 *la6 = (struct sockaddr_in6 *)&cm_id->m_local_addr;
 	struct sockaddr_in6 *ra6 = (struct sockaddr_in6 *)&cm_id->m_remote_addr;
 
drivers/infiniband/hw/mlx5/cq.c +1 -1
index be6612fc33ac..109a21f8ca54 100644
@@ -1285,7 +1285,7 @@ int mlx5_ib_resize_cq(struct ib_cq *ibcq, int entries, struct ib_udata *udata)
 	__be64 *pas;
 	int page_shift;
 	int inlen;
-	int uninitialized_var(cqe_size);
+	int cqe_size;
 	unsigned long flags;
 
 	if (!MLX5_CAP_GEN(dev->mdev, cq_resize)) {
drivers/infiniband/hw/mthca/mthca_qp.c +5 -5
index d21960cd9a49..1fb3d0a5a880 100644
@@ -1630,8 +1630,8 @@ int mthca_tavor_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
 	 * without initializing f0 and size0, and they are in fact
 	 * never used uninitialized.
 	 */
-	int uninitialized_var(size0);
-	u32 uninitialized_var(f0);
+	int size0;
+	u32 f0;
 	int ind;
 	u8 op0 = 0;
 
@@ -1831,7 +1831,7 @@ int mthca_tavor_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *wr,
 	 * without initializing size0, and it is in fact never used
 	 * uninitialized.
 	 */
-	int uninitialized_var(size0);
+	int size0;
 	int ind;
 	void *wqe;
 	void *prev_wqe;
@@ -1945,8 +1945,8 @@ int mthca_arbel_post_send(struct ib_qp *ibqp, struct ib_send_wr *wr,
 	 * without initializing f0 and size0, and they are in fact
 	 * never used uninitialized.
 	 */
-	int uninitialized_var(size0);
-	u32 uninitialized_var(f0);
+	int size0;
+	u32 f0;
 	int ind;
 	u8 op0 = 0;
 
drivers/input/misc/adxl34x.c +1 -2
index 2e189646d8fe..d56ab4b25edf 100644
@@ -811,8 +811,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq,
 	AC_WRITE(ac, POWER_CTL, 0);
 
 	err = request_threaded_irq(ac->irq, NULL, adxl34x_irq,
-				   IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
-				   dev_name(dev), ac);
+				   IRQF_ONESHOT, dev_name(dev), ac);
 	if (err) {
 		dev_err(dev, "irq %d busy?\n", ac->irq);
 		goto err_free_mem;
drivers/input/misc/drv260x.c +1 -0
index 17eb84ab4c0b..fe3fbde989be 100644
@@ -443,6 +443,7 @@ static int drv260x_init(struct drv260x_data *haptics)
 	}
 
 	do {
+		usleep_range(15000, 15500);
 		error = regmap_read(haptics->regmap, DRV260X_GO, &cal_buf);
 		if (error) {
 			dev_err(&haptics->client->dev,
drivers/input/serio/serio_raw.c +1 -1
index 516f9fe77a17..20d37d6a60c0 100644
@@ -162,7 +162,7 @@ static ssize_t serio_raw_read(struct file *file, char __user *buffer,
 {
 	struct serio_raw_client *client = file->private_data;
 	struct serio_raw *serio_raw = client->serio_raw;
-	char uninitialized_var(c);
+	char c;
 	ssize_t read = 0;
 	int error;
 
drivers/irqchip/irq-bcm6345-l1.c +5 -9
index 31ea6332ecb8..60dc64b4ac6d 100644
@@ -85,6 +85,7 @@ struct bcm6345_l1_chip {
 };
 
 struct bcm6345_l1_cpu {
+	struct bcm6345_l1_chip	*intc;
 	void __iomem		*map_base;
 	unsigned int		parent_irq;
 	u32			enable_cache[];
@@ -118,17 +119,11 @@ static inline unsigned int cpu_for_irq(struct bcm6345_l1_chip *intc,
 
 static void bcm6345_l1_irq_handle(struct irq_desc *desc)
 {
-	struct bcm6345_l1_chip *intc = irq_desc_get_handler_data(desc);
-	struct bcm6345_l1_cpu *cpu;
+	struct bcm6345_l1_cpu *cpu = irq_desc_get_handler_data(desc);
+	struct bcm6345_l1_chip *intc = cpu->intc;
 	struct irq_chip *chip = irq_desc_get_chip(desc);
 	unsigned int idx;
 
-#ifdef CONFIG_SMP
-	cpu = intc->cpus[cpu_logical_map(smp_processor_id())];
-#else
-	cpu = intc->cpus[0];
-#endif
-
 	chained_irq_enter(chip, desc);
 
 	for (idx = 0; idx < intc->n_words; idx++) {
@@ -260,6 +255,7 @@ static int __init bcm6345_l1_init_one(struct device_node *dn,
 	if (!cpu)
 		return -ENOMEM;
 
+	cpu->intc = intc;
 	cpu->map_base = ioremap(res.start, sz);
 	if (!cpu->map_base)
 		return -ENOMEM;
@@ -275,7 +271,7 @@ static int __init bcm6345_l1_init_one(struct device_node *dn,
 		return -EINVAL;
 	}
 	irq_set_chained_handler_and_data(cpu->parent_irq,
-						bcm6345_l1_irq_handle, intc);
+						bcm6345_l1_irq_handle, cpu);
 
 	return 0;
 }
drivers/mailbox/ti-msgmgr.c +9 -3
index 54b9e4cb4cfa..0c4d3640fcbf 100644
@@ -310,14 +310,20 @@ static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data)
 		/* Ensure all unused data is 0 */
 		data_trail &= 0xFFFFFFFF >> (8 * (sizeof(u32) - trail_bytes));
 		writel(data_trail, data_reg);
-		data_reg++;
+		data_reg += sizeof(u32);
 	}
+
 	/*
 	 * 'data_reg' indicates next register to write. If we did not already
 	 * write on tx complete reg(last reg), we must do so for transmit
+	 * In addition, we also need to make sure all intermediate data
+	 * registers(if any required), are reset to 0 for TISCI backward
+	 * compatibility to be maintained.
 	 */
-	if (data_reg <= qinst->queue_buff_end)
-		writel(0, qinst->queue_buff_end);
+	while (data_reg <= qinst->queue_buff_end) {
+		writel(0, data_reg);
+		data_reg += sizeof(u32);
+	}
 
 	return 0;
 }
drivers/md/dm-cache-policy-smq.c +18 -10
index e5eb9c9b4bc8..4c8eeed2e255 100644
@@ -841,7 +841,13 @@ struct smq_policy {
 
 	struct background_tracker *bg_work;
 
-	bool migrations_allowed;
+	bool migrations_allowed:1;
+
+	/*
+	 * If this is set the policy will try and clean the whole cache
+	 * even if the device is not idle.
+	 */
+	bool cleaner:1;
 };
 
 /*----------------------------------------------------------------*/
@@ -1120,7 +1126,7 @@ static bool clean_target_met(struct smq_policy *mq, bool idle)
 	 * Cache entries may not be populated.  So we cannot rely on the
 	 * size of the clean queue.
 	 */
-	if (idle) {
+	if (idle || mq->cleaner) {
 		/*
 		 * We'd like to clean everything.
 		 */
@@ -1692,11 +1698,9 @@ static void calc_hotspot_params(sector_t origin_size,
 		*hotspot_block_size /= 2u;
 }
 
-static struct dm_cache_policy *__smq_create(dm_cblock_t cache_size,
-					    sector_t origin_size,
-					    sector_t cache_block_size,
-					    bool mimic_mq,
-					    bool migrations_allowed)
+static struct dm_cache_policy *
+__smq_create(dm_cblock_t cache_size, sector_t origin_size, sector_t cache_block_size,
+	     bool mimic_mq, bool migrations_allowed, bool cleaner)
 {
 	unsigned i;
 	unsigned nr_sentinels_per_queue = 2u * NR_CACHE_LEVELS;
@@ -1783,6 +1787,7 @@ static struct dm_cache_policy *__smq_create(dm_cblock_t cache_size,
 		goto bad_btracker;
 
 	mq->migrations_allowed = migrations_allowed;
+	mq->cleaner = cleaner;
 
 	return &mq->policy;
 
@@ -1806,21 +1811,24 @@ static struct dm_cache_policy *smq_create(dm_cblock_t cache_size,
 					  sector_t origin_size,
 					  sector_t cache_block_size)
 {
-	return __smq_create(cache_size, origin_size, cache_block_size, false, true);
+	return __smq_create(cache_size, origin_size, cache_block_size,
+			    false, true, false);
 }
 
 static struct dm_cache_policy *mq_create(dm_cblock_t cache_size,
 					 sector_t origin_size,
 					 sector_t cache_block_size)
 {
-	return __smq_create(cache_size, origin_size, cache_block_size, true, true);
+	return __smq_create(cache_size, origin_size, cache_block_size,
+			    true, true, false);
 }
 
 static struct dm_cache_policy *cleaner_create(dm_cblock_t cache_size,
 					      sector_t origin_size,
 					      sector_t cache_block_size)
 {
-	return __smq_create(cache_size, origin_size, cache_block_size, false, false);
+	return __smq_create(cache_size, origin_size, cache_block_size,
+			    false, false, true);
 }
 
 /*----------------------------------------------------------------*/
drivers/md/dm-io.c +1 -1
index 56e2c0e079d7..3ac1e907c9b5 100644
@@ -306,7 +306,7 @@ static void do_region(int op, int op_flags, unsigned region,
 	struct request_queue *q = bdev_get_queue(where->bdev);
 	unsigned short logical_block_size = queue_logical_block_size(q);
 	sector_t num_sectors;
-	unsigned int uninitialized_var(special_cmd_max_sectors);
+	unsigned int special_cmd_max_sectors;
 
 	/*
 	 * Reject unsupported discard and write same requests.
drivers/md/dm-ioctl.c +1 -1
index d49a0857cbb8..3e379105f20d 100644
@@ -1821,7 +1821,7 @@ static int ctl_ioctl(struct file *file, uint command, struct dm_ioctl __user *us
 	int ioctl_flags;
 	int param_flags;
 	unsigned int cmd;
-	struct dm_ioctl *uninitialized_var(param);
+	struct dm_ioctl *param;
 	ioctl_fn fn = NULL;
 	size_t input_param_size;
 	struct dm_ioctl param_kernel;
drivers/md/dm-raid.c +7 -2
index 025a36ddf26e..b818cc982e62 100644
@@ -3190,15 +3190,19 @@ static int raid_ctr(struct dm_target *ti, unsigned int argc, char **argv)
 	/* Try to adjust the raid4/5/6 stripe cache size to the stripe size */
 	if (rs_is_raid456(rs)) {
 		r = rs_set_raid456_stripe_cache(rs);
-		if (r)
+		if (r) {
+			mddev_unlock(&rs->md);
 			goto bad_stripe_cache;
+		}
 	}
 
 	/* Now do an early reshape check */
 	if (test_bit(RT_FLAG_RESHAPE_RS, &rs->runtime_flags)) {
 		r = rs_check_reshape(rs);
-		if (r)
+		if (r) {
+			mddev_unlock(&rs->md);
 			goto bad_check_reshape;
+		}
 
 		/* Restore new, ctr requested layout to perform check */
 		rs_config_restore(rs, &rs_layout);
@@ -3207,6 +3211,7 @@ static int raid_ctr(struct dm_target *ti, unsigned int argc, char **argv)
 			r = rs->md.pers->check_reshape(&rs->md);
 			if (r) {
 				ti->error = "Reshape check failed";
+				mddev_unlock(&rs->md);
 				goto bad_check_reshape;
 			}
 		}
drivers/md/dm-snap-persistent.c +1 -1
index 00025569e807..c3b29de70695 100644
@@ -613,7 +613,7 @@ static int persistent_read_metadata(struct dm_exception_store *store,
 						    chunk_t old, chunk_t new),
 				    void *callback_context)
 {
-	int r, uninitialized_var(new_snapshot);
+	int r, new_snapshot;
 	struct pstore *ps = get_info(store);
 
 	/*
drivers/md/dm-table.c +1 -1
index 3b2a880eed68..922ff492ab03 100644
@@ -670,7 +670,7 @@ static int validate_hardware_logical_block_alignment(struct dm_table *table,
 	 */
 	unsigned short remaining = 0;
 
-	struct dm_target *uninitialized_var(ti);
+	struct dm_target *ti;
 	struct queue_limits ti_limits;
 	unsigned i;
 
drivers/md/md.c +18 -5
index 69d1501d9160..3c2364d0d88f 100644
@@ -3647,8 +3647,9 @@ int strict_strtoul_scaled(const char *cp, unsigned long *res, int scale)
 static ssize_t
 safe_delay_show(struct mddev *mddev, char *page)
 {
-	int msec = (mddev->safemode_delay*1000)/HZ;
-	return sprintf(page, "%d.%03d\n", msec/1000, msec%1000);
+	unsigned int msec = ((unsigned long)mddev->safemode_delay*1000)/HZ;
+
+	return sprintf(page, "%u.%03u\n", msec/1000, msec%1000);
 }
 static ssize_t
 safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len)
@@ -3660,7 +3661,7 @@ safe_delay_store(struct mddev *mddev, const char *cbuf, size_t len)
 		return -EINVAL;
 	}
 
-	if (strict_strtoul_scaled(cbuf, &msec, 3) < 0)
+	if (strict_strtoul_scaled(cbuf, &msec, 3) < 0 || msec > UINT_MAX / HZ)
 		return -EINVAL;
 	if (msec == 0)
 		mddev->safemode_delay = 0;
@@ -4312,6 +4313,8 @@ max_corrected_read_errors_store(struct mddev *mddev, const char *buf, size_t len
 	rv = kstrtouint(buf, 10, &n);
 	if (rv < 0)
 		return rv;
+	if (n > INT_MAX)
+		return -EINVAL;
 	atomic_set(&mddev->max_corr_read_errors, n);
 	return len;
 }
@@ -4612,11 +4615,21 @@ action_store(struct mddev *mddev, const char *page, size_t len)
 			return -EINVAL;
 		err = mddev_lock(mddev);
 		if (!err) {
-			if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery))
+			if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) {
 				err =  -EBUSY;
-			else {
+			} else if (mddev->reshape_position == MaxSector ||
+				   mddev->pers->check_reshape == NULL ||
+				   mddev->pers->check_reshape(mddev)) {
 				clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
 				err = mddev->pers->start_reshape(mddev);
+			} else {
+				/*
+				 * If reshape is still in progress, and
+				 * md_check_recovery() can continue to reshape,
+				 * don't restart reshape because data can be
+				 * corrupted for raid456.
+				 */
+				clear_bit(MD_RECOVERY_FROZEN, &mddev->recovery);
 			}
 			mddev_unlock(mddev);
 		}
drivers/md/raid0.c +54 -8

110 lines not on this page · raw message

drivers/md/raid0.h +1 -0
index 3816e5477db1..8cc761ca7423 100644
@@ -6,6 +6,7 @@ struct strip_zone {
 	sector_t zone_end;	/* Start of the next zone (in sectors) */
 	sector_t dev_start;	/* Zone offset in real dev (in sectors) */
 	int	 nb_dev;	/* # of devices attached to the zone */
+	int	 disk_shift;	/* start disk for the original layout */
 };
 
 /* Linux 3.14 (20d0189b101) made an unintended change to
drivers/md/raid10.c +20 -4
index 95c3a21cd733..6ecc68fd702e 100644
@@ -775,8 +775,16 @@ static struct md_rdev *read_balance(struct r10conf *conf,
 		disk = r10_bio->devs[slot].devnum;
 		rdev = rcu_dereference(conf->mirrors[disk].replacement);
 		if (rdev == NULL || test_bit(Faulty, &rdev->flags) ||
-		    r10_bio->devs[slot].addr + sectors > rdev->recovery_offset)
+		    r10_bio->devs[slot].addr + sectors >
+		    rdev->recovery_offset) {
+			/*
+			 * Read replacement first to prevent reading both rdev
+			 * and replacement as NULL during replacement replace
+			 * rdev.
+			 */
+			smp_mb();
 			rdev = rcu_dereference(conf->mirrors[disk].rdev);
+		}
 		if (rdev == NULL ||
 		    test_bit(Faulty, &rdev->flags))
 			continue;
@@ -916,6 +924,7 @@ static void flush_pending_writes(struct r10conf *conf)
 			else
 				generic_make_request(bio);
 			bio = next;
+			cond_resched();
 		}
 		blk_finish_plug(&plug);
 	} else
@@ -1101,6 +1110,7 @@ static void raid10_unplug(struct blk_plug_cb *cb, bool from_schedule)
 		else
 			generic_make_request(bio);
 		bio = next;
+		cond_resched();
 	}
 	kfree(plug);
 }
@@ -1366,9 +1376,15 @@ static void raid10_write_request(struct mddev *mddev, struct bio *bio,
 
 	for (i = 0;  i < conf->copies; i++) {
 		int d = r10_bio->devs[i].devnum;
-		struct md_rdev *rdev = rcu_dereference(conf->mirrors[d].rdev);
-		struct md_rdev *rrdev = rcu_dereference(
-			conf->mirrors[d].replacement);
+		struct md_rdev *rdev, *rrdev;
+
+		rrdev = rcu_dereference(conf->mirrors[d].replacement);
+		/*
+		 * Read replacement first to prevent reading both rdev and
+		 * replacement as NULL during replacement replace rdev.
+		 */
+		smp_mb();
+		rdev = rcu_dereference(conf->mirrors[d].rdev);
 		if (rdev == rrdev)
 			rrdev = NULL;
 		if (rdev && unlikely(test_bit(Blocked, &rdev->flags))) {
drivers/md/raid5.c +1 -1
index dc053a43a3dc..d2ac3d189410 100644
@@ -2601,7 +2601,7 @@ static void raid5_end_write_request(struct bio *bi)
 	struct stripe_head *sh = bi->bi_private;
 	struct r5conf *conf = sh->raid_conf;
 	int disks = sh->disks, i;
-	struct md_rdev *uninitialized_var(rdev);
+	struct md_rdev *rdev;
 	sector_t first_bad;
 	int bad_sectors;
 	int replacement = 0;
drivers/media/dvb-frontends/rtl2832.c +1 -1
index 94bf5b7d6f3f..3690ea9dac22 100644
@@ -653,7 +653,7 @@ static int rtl2832_read_status(struct dvb_frontend *fe, enum fe_status *status)
 	struct i2c_client *client = dev->client;
 	struct dtv_frontend_properties *c = &fe->dtv_property_cache;
 	int ret;
-	u32 uninitialized_var(tmp);
+	u32 tmp;
 	u8 u8tmp, buf[2];
 	u16 u16tmp;
 
drivers/media/usb/dvb-usb-v2/az6007.c +2 -1
index 1414d59e85ba..1830badb180d 100644
@@ -210,7 +210,8 @@ static int az6007_rc_query(struct dvb_usb_device *d)
 	unsigned code;
 	enum rc_proto proto;
 
-	az6007_read(d, AZ6007_READ_IR, 0, 0, st->data, 10);
+	if (az6007_read(d, AZ6007_READ_IR, 0, 0, st->data, 10) < 0)
+		return -EIO;
 
 	if (st->data[1] == 0x44)
 		return 0;
drivers/media/usb/gspca/vicam.c +1 -1
index 554b90ef2200..2b15cb8e077c 100644
@@ -234,7 +234,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
 {
 	int ret;
 	const struct ihex_binrec *rec;
-	const struct firmware *uninitialized_var(fw);
+	const struct firmware *fw;
 	u8 *firmware_buf;
 
 	ret = request_ihex_firmware(&fw, VICAM_FIRMWARE,
drivers/media/usb/siano/smsusb.c +2 -1
index cdbc636e8ff8..92a6192f9ab2 100644
@@ -191,7 +191,8 @@ static void smsusb_stop_streaming(struct smsusb_device_t *dev)
 
 	for (i = 0; i < MAX_URBS; i++) {
 		usb_kill_urb(&dev->surbs[i].urb);
-		cancel_work_sync(&dev->surbs[i].wq);
+		if (dev->surbs[i].wq.func)
+			cancel_work_sync(&dev->surbs[i].wq);
 
 		if (dev->surbs[i].cb) {
 			smscore_putbuffer(dev->coredev, dev->surbs[i].cb);
drivers/media/usb/uvc/uvc_video.c +4 -4
index 601782663871..a0440f095515 100644
@@ -766,9 +766,9 @@ static void uvc_video_stats_decode(struct uvc_streaming *stream,
 	unsigned int header_size;
 	bool has_pts = false;
 	bool has_scr = false;
-	u16 uninitialized_var(scr_sof);
-	u32 uninitialized_var(scr_stc);
-	u32 uninitialized_var(pts);
+	u16 scr_sof;
+	u32 scr_stc;
+	u32 pts;
 
 	if (stream->stats.stream.nb_frames == 0 &&
 	    stream->stats.frame.nb_packets == 0)
@@ -1656,7 +1656,7 @@ static int uvc_init_video(struct uvc_streaming *stream, gfp_t gfp_flags)
 		struct usb_host_endpoint *best_ep = NULL;
 		unsigned int best_psize = UINT_MAX;
 		unsigned int bandwidth;
-		unsigned int uninitialized_var(altsetting);
+		unsigned int altsetting;
 		int intfnum = stream->intfnum;
 
 		/* Isochronous endpoint, select the alternate setting. */
drivers/memstick/host/jmb38x_ms.c +1 -1
index ba6cd576e997..6c762f4cfac7 100644
@@ -315,7 +315,7 @@ static int jmb38x_ms_transfer_data(struct jmb38x_ms_host *host)
 	}
 
 	while (length) {
-		unsigned int uninitialized_var(p_off);
+		unsigned int p_off;
 
 		if (host->req->long_data) {
 			pg = nth_page(sg_page(&host->req->sg),
drivers/memstick/host/r592.c +1 -3
index d52c89b2a1d5..a2dbf3331689 100644
@@ -47,12 +47,10 @@ static const char *tpc_names[] = {
  * memstick_debug_get_tpc_name - debug helper that returns string for
  * a TPC number
  */
-const char *memstick_debug_get_tpc_name(int tpc)
+static __maybe_unused const char *memstick_debug_get_tpc_name(int tpc)
 {
 	return tpc_names[tpc-1];
 }
-EXPORT_SYMBOL(memstick_debug_get_tpc_name);
-
 
 /* Read a register*/
 static inline u32 r592_read_reg(struct r592_device *dev, int address)
drivers/memstick/host/tifm_ms.c +1 -1
index 7bafa72f8f57..0625fd92e649 100644
@@ -200,7 +200,7 @@ static unsigned int tifm_ms_transfer_data(struct tifm_ms *host)
 		host->block_pos);
 
 	while (length) {
-		unsigned int uninitialized_var(p_off);
+		unsigned int p_off;
 
 		if (host->req->long_data) {
 			pg = nth_page(sg_page(&host->req->sg),
drivers/mfd/intel-lpss-acpi.c +3 -0
index fc44fb7c595b..281ef5f52eb5 100644
@@ -92,6 +92,9 @@ static int intel_lpss_acpi_probe(struct platform_device *pdev)
 		return -ENOMEM;
 
 	info->mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+	if (!info->mem)
+		return -ENODEV;
+
 	info->irq = platform_get_irq(pdev, 0);
 
 	ret = intel_lpss_probe(&pdev->dev, info);
drivers/mfd/rt5033.c +0 -3
index 9bd089c56375..94cdad91c065 100644
@@ -44,9 +44,6 @@ static const struct mfd_cell rt5033_devs[] = {
 	{
 		.name = "rt5033-charger",
 		.of_compatible = "richtek,rt5033-charger",
-	}, {
-		.name = "rt5033-battery",
-		.of_compatible = "richtek,rt5033-battery",
 	}, {
 		.name = "rt5033-led",
 		.of_compatible = "richtek,rt5033-led",
drivers/mfd/stmpe.c +2 -2
index 722ad2c368a5..d752c56d60e4 100644
@@ -1428,9 +1428,9 @@ int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum)
 
 int stmpe_remove(struct stmpe *stmpe)
 {
-	if (!IS_ERR(stmpe->vio))
+	if (!IS_ERR(stmpe->vio) && regulator_is_enabled(stmpe->vio))
 		regulator_disable(stmpe->vio);
-	if (!IS_ERR(stmpe->vcc))
+	if (!IS_ERR(stmpe->vcc) && regulator_is_enabled(stmpe->vcc))
 		regulator_disable(stmpe->vcc);
 
 	mfd_remove_devices(stmpe->dev);
drivers/misc/pci_endpoint_test.c +4 -0
index 953af49dd38a..60cf07497e7b 100644
@@ -425,6 +425,10 @@ static long pci_endpoint_test_ioctl(struct file *file, unsigned int cmd,
 	struct pci_endpoint_test *test = to_endpoint_test(file->private_data);
 
 	mutex_lock(&test->mutex);
+
+	reinit_completion(&test->irq_raised);
+	test->last_irq = -ENODATA;
+
 	switch (cmd) {
 	case PCITEST_BAR:
 		bar = arg;
drivers/mmc/core/quirks.h +14 -0
index 09897abb79ed..f67401aa3a98 100644
@@ -90,6 +90,20 @@ static const struct mmc_fixup mmc_blk_fixups[] = {
 	MMC_FIXUP("VZL00M", CID_MANFID_SAMSUNG, CID_OEMID_ANY, add_quirk_mmc,
 		  MMC_QUIRK_SEC_ERASE_TRIM_BROKEN),
 
+	/*
+	 * Kingston EMMC04G-M627 advertises TRIM but it does not seems to
+	 * support being used to offload WRITE_ZEROES.
+	 */
+	MMC_FIXUP("M62704", CID_MANFID_KINGSTON, 0x0100, add_quirk_mmc,
+		  MMC_QUIRK_TRIM_BROKEN),
+
+	/*
+	 * Micron MTFC4GACAJCN-1M advertises TRIM but it does not seems to
+	 * support being used to offload WRITE_ZEROES.
+	 */
+	MMC_FIXUP("Q2J54A", CID_MANFID_MICRON, 0x014e, add_quirk_mmc,
+		  MMC_QUIRK_TRIM_BROKEN),
+
 	/*
 	 *  On Some Kingston eMMCs, performing trim can result in
 	 *  unrecoverable data conrruption occasionally due to a firmware bug.
drivers/mmc/host/sdhci.c +1 -1
index 6bde13d9d49f..9f4b11a1aac9 100644
@@ -374,7 +374,7 @@ static void sdhci_read_block_pio(struct sdhci_host *host)
 {
 	unsigned long flags;
 	size_t blksize, len, chunk;
-	u32 uninitialized_var(scratch);
+	u32 scratch;
 	u8 *buf;
 
 	DBG("PIO reading\n");
drivers/mtd/nand/omap_elm.c +12 -12
index 6736777a4156..02d174038312 100644
@@ -184,17 +184,17 @@ static void elm_load_syndrome(struct elm_info *info,
 			switch (info->bch_type) {
 			case BCH8_ECC:
 				/* syndrome fragment 0 = ecc[9-12B] */
-				val = cpu_to_be32(*(u32 *) &ecc[9]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[9]);
 				elm_write_reg(info, offset, val);
 
 				/* syndrome fragment 1 = ecc[5-8B] */
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[5]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[5]);
 				elm_write_reg(info, offset, val);
 
 				/* syndrome fragment 2 = ecc[1-4B] */
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[1]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[1]);
 				elm_write_reg(info, offset, val);
 
 				/* syndrome fragment 3 = ecc[0B] */
@@ -204,35 +204,35 @@ static void elm_load_syndrome(struct elm_info *info,
 				break;
 			case BCH4_ECC:
 				/* syndrome fragment 0 = ecc[20-52b] bits */
-				val = (cpu_to_be32(*(u32 *) &ecc[3]) >> 4) |
+				val = ((__force u32)cpu_to_be32(*(u32 *)&ecc[3]) >> 4) |
 					((ecc[2] & 0xf) << 28);
 				elm_write_reg(info, offset, val);
 
 				/* syndrome fragment 1 = ecc[0-20b] bits */
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[0]) >> 12;
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[0]) >> 12;
 				elm_write_reg(info, offset, val);
 				break;
 			case BCH16_ECC:
-				val = cpu_to_be32(*(u32 *) &ecc[22]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[22]);
 				elm_write_reg(info, offset, val);
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[18]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[18]);
 				elm_write_reg(info, offset, val);
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[14]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[14]);
 				elm_write_reg(info, offset, val);
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[10]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[10]);
 				elm_write_reg(info, offset, val);
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[6]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[6]);
 				elm_write_reg(info, offset, val);
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[2]);
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[2]);
 				elm_write_reg(info, offset, val);
 				offset += 4;
-				val = cpu_to_be32(*(u32 *) &ecc[0]) >> 16;
+				val = (__force u32)cpu_to_be32(*(u32 *)&ecc[0]) >> 16;
 				elm_write_reg(info, offset, val);
 				break;
 			default:
drivers/mtd/ubi/eba.c +1 -1
index f452c510fa32..b7aa8cf2c3d7 100644
@@ -595,7 +595,7 @@ int ubi_eba_read_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
 	int err, pnum, scrub = 0, vol_id = vol->vol_id;
 	struct ubi_vid_io_buf *vidb;
 	struct ubi_vid_hdr *vid_hdr;
-	uint32_t uninitialized_var(crc);
+	uint32_t crc;
 
 	err = leb_read_lock(ubi, vol_id, lnum);
 	if (err)
drivers/net/bonding/bond_main.c +5 -0
index 0ffca2890e9a..e86b21f097b6 100644
@@ -1134,6 +1134,11 @@ static void bond_setup_by_slave(struct net_device *bond_dev,
 
 	memcpy(bond_dev->broadcast, slave_dev->broadcast,
 		slave_dev->addr_len);
+
+	if (slave_dev->flags & IFF_POINTOPOINT) {
+		bond_dev->flags &= ~(IFF_BROADCAST | IFF_MULTICAST);
+		bond_dev->flags |= (IFF_POINTOPOINT | IFF_NOARP);
+	}
 }
 
 /* On bonding slaves other than the currently active slave, suppress
drivers/net/can/janz-ican3.c +1 -1
index 12a53c8e8e1d..386a204685c4 100644
@@ -1455,7 +1455,7 @@ static int ican3_napi(struct napi_struct *napi, int budget)
 
 	/* process all communication messages */
 	while (true) {
-		struct ican3_msg uninitialized_var(msg);
+		struct ican3_msg msg;
 		ret = ican3_recv_msg(mod, &msg);
 		if (ret)
 			break;
drivers/net/can/usb/gs_usb.c +2 -0
index 5e21486baa22..a43f25de8574 100644
@@ -740,6 +740,8 @@ static int gs_can_close(struct net_device *netdev)
 	usb_kill_anchored_urbs(&dev->tx_submitted);
 	atomic_set(&dev->active_tx_urbs, 0);
 
+	dev->can.state = CAN_STATE_STOPPED;
+
 	/* reset the device */
 	rc = gs_cmd_reset(parent, dev);
 	if (rc < 0)
drivers/net/ethernet/atheros/atl1e/atl1e_main.c +5 -2
index 0d08039981b5..33a688d8aaba 100644
@@ -1650,8 +1650,11 @@ static int atl1e_tso_csum(struct atl1e_adapter *adapter,
 			real_len = (((unsigned char *)ip_hdr(skb) - skb->data)
 					+ ntohs(ip_hdr(skb)->tot_len));
 
-			if (real_len < skb->len)
-				pskb_trim(skb, real_len);
+			if (real_len < skb->len) {
+				err = pskb_trim(skb, real_len);
+				if (err)
+					return err;
+			}
 
 			hdr_len = (skb_transport_offset(skb) + tcp_hdrlen(skb));
 			if (unlikely(skb->len == hdr_len)) {
drivers/net/ethernet/broadcom/bnx2.c +2 -2
index 299cefe6f94b..fd73294cb11d 100644
@@ -1460,7 +1460,7 @@ bnx2_test_and_disable_2g5(struct bnx2 *bp)
 static void
 bnx2_enable_forced_2g5(struct bnx2 *bp)
 {
-	u32 uninitialized_var(bmcr);
+	u32 bmcr;
 	int err;
 
 	if (!(bp->phy_flags & BNX2_PHY_FLAG_2_5G_CAPABLE))
@@ -1504,7 +1504,7 @@ bnx2_enable_forced_2g5(struct bnx2 *bp)
 static void
 bnx2_disable_forced_2g5(struct bnx2 *bp)
 {
-	u32 uninitialized_var(bmcr);
+	u32 bmcr;
 	int err;
 
 	if (!(bp->phy_flags & BNX2_PHY_FLAG_2_5G_CAPABLE))
drivers/net/ethernet/broadcom/tg3.c +1 -0
index e0eacfc46dd4..bc046153edee 100644
@@ -228,6 +228,7 @@ MODULE_DESCRIPTION("Broadcom Tigon3 ethernet driver");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(DRV_MODULE_VERSION);
 MODULE_FIRMWARE(FIRMWARE_TG3);
+MODULE_FIRMWARE(FIRMWARE_TG357766);
 MODULE_FIRMWARE(FIRMWARE_TG3TSO);
 MODULE_FIRMWARE(FIRMWARE_TG3TSO5);
 
drivers/net/ethernet/emulex/benet/be_main.c +2 -1
index f8541d0c7bd5..bbe8f4b250d1 100644
@@ -1132,7 +1132,8 @@ static struct sk_buff *be_lancer_xmit_workarounds(struct be_adapter *adapter,
 	    (lancer_chip(adapter) || BE3_chip(adapter) ||
 	     skb_vlan_tag_present(skb)) && is_ipv4_pkt(skb)) {
 		ip = (struct iphdr *)ip_hdr(skb);
-		pskb_trim(skb, eth_hdr_len + ntohs(ip->tot_len));
+		if (unlikely(pskb_trim(skb, eth_hdr_len + ntohs(ip->tot_len))))
+			goto tx_drop;
 	}
 
 	/* If vlan tag is already inlined in the packet, skip HW VLAN
drivers/net/ethernet/intel/i40e/i40e_debugfs.c +1 -1
index 126207be492d..6cf38c7a157e 100644
@@ -1850,7 +1850,7 @@ void i40e_dbg_pf_exit(struct i40e_pf *pf)
 void i40e_dbg_init(void)
 {
 	i40e_dbg_root = debugfs_create_dir(i40e_driver_name, NULL);
-	if (!i40e_dbg_root)
+	if (IS_ERR(i40e_dbg_root))
 		pr_info("init of debugfs failed\n");
 }
 
drivers/net/ethernet/intel/igb/igb_main.c +5 -0
index ab54362c0992..d7b531eae819 100644
@@ -8257,6 +8257,11 @@ static pci_ers_result_t igb_io_error_detected(struct pci_dev *pdev,
 	struct net_device *netdev = pci_get_drvdata(pdev);
 	struct igb_adapter *adapter = netdev_priv(netdev);
 
+	if (state == pci_channel_io_normal) {
+		dev_warn(&pdev->dev, "Non-correctable non-fatal error reported.\n");
+		return PCI_ERS_RESULT_CAN_RECOVER;
+	}
+
 	netif_device_detach(netdev);
 
 	if (state == pci_channel_io_perm_failure)
drivers/net/ethernet/marvell/mvneta.c +2 -2
index dbed8fbedd8a..eff7c65fbe3c 100644
@@ -1402,7 +1402,7 @@ static void mvneta_defaults_set(struct mvneta_port *pp)
 			 */
 			if (txq_number == 1)
 				txq_map = (cpu == pp->rxq_def) ?
-					MVNETA_CPU_TXQ_ACCESS(1) : 0;
+					MVNETA_CPU_TXQ_ACCESS(0) : 0;
 
 		} else {
 			txq_map = MVNETA_CPU_TXQ_ACCESS_ALL_MASK;
@@ -3387,7 +3387,7 @@ static void mvneta_percpu_elect(struct mvneta_port *pp)
 		 */
 		if (txq_number == 1)
 			txq_map = (cpu == elected_cpu) ?
-				MVNETA_CPU_TXQ_ACCESS(1) : 0;
+				MVNETA_CPU_TXQ_ACCESS(0) : 0;
 		else
 			txq_map = mvreg_read(pp, MVNETA_CPU_MAP(cpu)) &
 				MVNETA_CPU_TXQ_ACCESS_ALL_MASK;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c +3 -1
index 4614ddfa91eb..3803e7f23299 100644
@@ -119,7 +119,9 @@ static int mlx5e_ipsec_remove_trailer(struct sk_buff *skb, struct xfrm_state *x)
 
 	trailer_len = alen + plen + 2;
 
-	pskb_trim(skb, skb->len - trailer_len);
+	ret = pskb_trim(skb, skb->len - trailer_len);
+	if (unlikely(ret))
+		return ret;
 	if (skb->protocol == htons(ETH_P_IP)) {
 		ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len);
 		ip_send_check(ipv4hdr);
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c +2 -2
index fc880c02459d..c9ba97b400fa 100644
@@ -471,8 +471,8 @@ void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id,
 
 int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot)
 {
-	u16 uninitialized_var(func_id);
-	s32 uninitialized_var(npages);
+	u16 func_id;
+	s32 npages;
 	int err;
 
 	err = mlx5_cmd_query_pages(dev, &func_id, &npages, boot);
drivers/net/ethernet/neterion/s2io.c +1 -1
index cb8094de89d1..de1484197cc0 100644
@@ -7296,7 +7296,7 @@ static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp)
 	int ring_no = ring_data->ring_no;
 	u16 l3_csum, l4_csum;
 	unsigned long long err = rxdp->Control_1 & RXD_T_CODE;
-	struct lro *uninitialized_var(lro);
+	struct lro *lro;
 	u8 err_mask;
 	struct swStat *swstats = &sp->mac_control.stats_info->sw_stat;
 
drivers/net/ethernet/qlogic/qla3xxx.c +1 -1
index 82f13d69631f..6c8a591db713 100644
@@ -3770,7 +3770,7 @@ static int ql3xxx_probe(struct pci_dev *pdev,
 	struct net_device *ndev = NULL;
 	struct ql3_adapter *qdev = NULL;
 	static int cards_found;
-	int uninitialized_var(pci_using_dac), err;
+	int pci_using_dac, err;
 
 	err = pci_enable_device(pdev);
 	if (err) {
drivers/net/ethernet/sun/cassini.c +1 -1
index 0d26e8047d70..df46850ac289 100644
@@ -2303,7 +2303,7 @@ static int cas_rx_ringN(struct cas *cp, int ring, int budget)
 	drops = 0;
 	while (1) {
 		struct cas_rx_comp *rxc = rxcs + entry;
-		struct sk_buff *uninitialized_var(skb);
+		struct sk_buff *skb;
 		int type, len;
 		u64 words[4];
 		int i, dring;
drivers/net/ethernet/sun/niu.c +3 -3
index 08ac19884133..9510928eb2c5 100644
@@ -428,7 +428,7 @@ static int serdes_init_niu_1g_serdes(struct niu *np)
 	struct niu_link_config *lp = &np->link_config;
 	u16 pll_cfg, pll_sts;
 	int max_retry = 100;
-	u64 uninitialized_var(sig), mask, val;
+	u64 sig, mask, val;
 	u32 tx_cfg, rx_cfg;
 	unsigned long i;
 	int err;
@@ -525,7 +525,7 @@ static int serdes_init_niu_10g_serdes(struct niu *np)
 	struct niu_link_config *lp = &np->link_config;
 	u32 tx_cfg, rx_cfg, pll_cfg, pll_sts;
 	int max_retry = 100;
-	u64 uninitialized_var(sig), mask, val;
+	u64 sig, mask, val;
 	unsigned long i;
 	int err;
 
@@ -713,7 +713,7 @@ static int esr_write_glue0(struct niu *np, unsigned long chan, u32 val)
 
 static int esr_reset(struct niu *np)
 {
-	u32 uninitialized_var(reset);
+	u32 reset;
 	int err;
 
 	err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
drivers/net/ethernet/ti/cpsw_ale.c +19 -5
index ddd43e09111e..d9db5c23a963 100644
@@ -67,23 +67,37 @@
 
 static inline int cpsw_ale_get_field(u32 *ale_entry, u32 start, u32 bits)
 {
-	int idx;
+	int idx, idx2;
+	u32 hi_val = 0;
 
 	idx    = start / 32;
+	idx2 = (start + bits - 1) / 32;
+	/* Check if bits to be fetched exceed a word */
+	if (idx != idx2) {
+		idx2 = 2 - idx2; /* flip */
+		hi_val = ale_entry[idx2] << ((idx2 * 32) - start);
+	}
 	start -= idx * 32;
 	idx    = 2 - idx; /* flip */
-	return (ale_entry[idx] >> start) & BITMASK(bits);
+	return (hi_val + (ale_entry[idx] >> start)) & BITMASK(bits);
 }
 
 static inline void cpsw_ale_set_field(u32 *ale_entry, u32 start, u32 bits,
 				      u32 value)
 {
-	int idx;
+	int idx, idx2;
 
 	value &= BITMASK(bits);
-	idx    = start / 32;
+	idx = start / 32;
+	idx2 = (start + bits - 1) / 32;
+	/* Check if bits to be set exceed a word */
+	if (idx != idx2) {
+		idx2 = 2 - idx2; /* flip */
+		ale_entry[idx2] &= ~(BITMASK(bits + start - (idx2 * 32)));
+		ale_entry[idx2] |= (value >> ((idx2 * 32) - start));
+	}
 	start -= idx * 32;
-	idx    = 2 - idx; /* flip */
+	idx = 2 - idx; /* flip */
 	ale_entry[idx] &= ~(BITMASK(bits) << start);
 	ale_entry[idx] |=  (value << start);
 }
drivers/net/gtp.c +2 -0
index 666f5e5740af..d7bf8212ff04 100644
@@ -301,7 +301,9 @@ static void __gtp_encap_destroy(struct sock *sk)
 			gtp->sk1u = NULL;
 		udp_sk(sk)->encap_type = 0;
 		rcu_assign_sk_user_data(sk, NULL);
+		release_sock(sk);
 		sock_put(sk);
+		return;
 	}
 	release_sock(sk);
 }
drivers/net/team/team.c +9 -0
index c7c1ff419d75..b318464a4fca 100644
@@ -2095,6 +2095,15 @@ static void team_setup_by_port(struct net_device *dev,
 	dev->mtu = port_dev->mtu;
 	memcpy(dev->broadcast, port_dev->broadcast, port_dev->addr_len);
 	eth_hw_addr_inherit(dev, port_dev);
+
+	if (port_dev->flags & IFF_POINTOPOINT) {
+		dev->flags &= ~(IFF_BROADCAST | IFF_MULTICAST);
+		dev->flags |= (IFF_POINTOPOINT | IFF_NOARP);
+	} else if ((port_dev->flags & (IFF_BROADCAST | IFF_MULTICAST)) ==
+		    (IFF_BROADCAST | IFF_MULTICAST)) {
+		dev->flags |= (IFF_BROADCAST | IFF_MULTICAST);
+		dev->flags &= ~(IFF_POINTOPOINT | IFF_NOARP);
+	}
 }
 
 static int team_dev_type_check_change(struct net_device *dev,
drivers/net/usb/cdc_ether.c +21 -0
index 0eb417b8f709..ff2f4e02b20f 100644
@@ -618,9 +618,23 @@ static const struct usb_device_id	products[] = {
 	.match_flags	=   USB_DEVICE_ID_MATCH_INT_INFO
 			  | USB_DEVICE_ID_MATCH_DEVICE,
 	.idVendor		= 0x04DD,
+	.idProduct		= 0x8005,   /* A-300 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info        = 0,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+			  | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor		= 0x04DD,
 	.idProduct		= 0x8006,	/* B-500/SL-5600 */
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info		= 0,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+			  | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor		= 0x04DD,
+	.idProduct		= 0x8006,   /* B-500/SL-5600 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info        = 0,
 }, {
 	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
 			  | USB_DEVICE_ID_MATCH_DEVICE,
@@ -628,6 +642,13 @@ static const struct usb_device_id	products[] = {
 	.idProduct		= 0x8007,	/* C-700 */
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info		= 0,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+			  | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor		= 0x04DD,
+	.idProduct		= 0x8007,   /* C-700 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info        = 0,
 }, {
 	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
 		 | USB_DEVICE_ID_MATCH_DEVICE,
drivers/net/usb/usbnet.c +6 -0
index 71b026277b30..d0b772f433c4 100644
@@ -1771,6 +1771,10 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
 	} else if (!info->in || !info->out)
 		status = usbnet_get_endpoints (dev, udev);
 	else {
+		u8 ep_addrs[3] = {
+			info->in + USB_DIR_IN, info->out + USB_DIR_OUT, 0
+		};
+
 		dev->in = usb_rcvbulkpipe (xdev, info->in);
 		dev->out = usb_sndbulkpipe (xdev, info->out);
 		if (!(info->flags & FLAG_NO_SETINT))
@@ -1780,6 +1784,8 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
 		else
 			status = 0;
 
+		if (status == 0 && !usb_check_bulk_endpoints(udev, ep_addrs))
+			status = -EINVAL;
 	}
 	if (status >= 0 && dev->status)
 		status = init_status (dev, udev);
drivers/net/usb/zaurus.c +21 -0
index 1f19fc5e6117..9a6ab75752e1 100644
@@ -301,9 +301,23 @@ static const struct usb_device_id	products [] = {
 	.match_flags	=   USB_DEVICE_ID_MATCH_INT_INFO
 			  | USB_DEVICE_ID_MATCH_DEVICE,
 	.idVendor		= 0x04DD,
+	.idProduct		= 0x8005,	/* A-300 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info = (unsigned long)&bogus_mdlm_info,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+			  | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor		= 0x04DD,
 	.idProduct		= 0x8006,	/* B-500/SL-5600 */
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info = ZAURUS_PXA_INFO,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+			  | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor		= 0x04DD,
+	.idProduct		= 0x8006,	/* B-500/SL-5600 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info = (unsigned long)&bogus_mdlm_info,
 }, {
 	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
 	          | USB_DEVICE_ID_MATCH_DEVICE,
@@ -311,6 +325,13 @@ static const struct usb_device_id	products [] = {
 	.idProduct		= 0x8007,	/* C-700 */
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info = ZAURUS_PXA_INFO,
+}, {
+	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
+			  | USB_DEVICE_ID_MATCH_DEVICE,
+	.idVendor		= 0x04DD,
+	.idProduct		= 0x8007,	/* C-700 */
+	ZAURUS_FAKE_INTERFACE,
+	.driver_info = (unsigned long)&bogus_mdlm_info,
 }, {
 	.match_flags    =   USB_DEVICE_ID_MATCH_INT_INFO
 		 | USB_DEVICE_ID_MATCH_DEVICE,
drivers/net/wan/z85230.c +1 -1
index deea41e96f01..96025d42b0ee 100644
@@ -705,7 +705,7 @@ EXPORT_SYMBOL(z8530_nop);
 irqreturn_t z8530_interrupt(int irq, void *dev_id)
 {
 	struct z8530_dev *dev=dev_id;
-	u8 uninitialized_var(intr);
+	u8 intr;
 	static volatile int locker=0;
 	int work=0;
 	struct z8530_irqhandler *irqs;
drivers/net/wireless/ath/ath10k/core.c +1 -1
index a4f635820f35..a75a5b56dd9a 100644
@@ -1657,7 +1657,7 @@ static int ath10k_init_uart(struct ath10k *ar)
 
 static int ath10k_init_hw_params(struct ath10k *ar)
 {
-	const struct ath10k_hw_params *uninitialized_var(hw_params);
+	const struct ath10k_hw_params *hw_params;
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(ath10k_hw_params_list); i++) {
drivers/net/wireless/ath/ath6kl/init.c +1 -1
index 58fb227a849f..49b93a5b7a72 100644
@@ -1575,7 +1575,7 @@ static int ath6kl_init_upload(struct ath6kl *ar)
 
 int ath6kl_init_hw_params(struct ath6kl *ar)
 {
-	const struct ath6kl_hw *uninitialized_var(hw);
+	const struct ath6kl_hw *hw;
 	int i;
 
 	for (i = 0; i < ARRAY_SIZE(hw_list); i++) {
drivers/net/wireless/ath/ath9k/ar9003_hw.c +18 -9
index 2fe12b0de5b4..dea8a998fb62 100644
@@ -1099,17 +1099,22 @@ static bool ath9k_hw_verify_hang(struct ath_hw *ah, unsigned int queue)
 {
 	u32 dma_dbg_chain, dma_dbg_complete;
 	u8 dcu_chain_state, dcu_complete_state;
+	unsigned int dbg_reg, reg_offset;
 	int i;
 
-	for (i = 0; i < NUM_STATUS_READS; i++) {
-		if (queue < 6)
-			dma_dbg_chain = REG_READ(ah, AR_DMADBG_4);
-		else
-			dma_dbg_chain = REG_READ(ah, AR_DMADBG_5);
+	if (queue < 6) {
+		dbg_reg = AR_DMADBG_4;
+		reg_offset = queue * 5;
+	} else {
+		dbg_reg = AR_DMADBG_5;
+		reg_offset = (queue - 6) * 5;
+	}
 
+	for (i = 0; i < NUM_STATUS_READS; i++) {
+		dma_dbg_chain = REG_READ(ah, dbg_reg);
 		dma_dbg_complete = REG_READ(ah, AR_DMADBG_6);
 
-		dcu_chain_state = (dma_dbg_chain >> (5 * queue)) & 0x1f;
+		dcu_chain_state = (dma_dbg_chain >> reg_offset) & 0x1f;
 		dcu_complete_state = dma_dbg_complete & 0x3;
 
 		if ((dcu_chain_state != 0x6) || (dcu_complete_state != 0x1))
@@ -1128,6 +1133,7 @@ static bool ar9003_hw_detect_mac_hang(struct ath_hw *ah)
 	u8 dcu_chain_state, dcu_complete_state;
 	bool dcu_wait_frdone = false;
 	unsigned long chk_dcu = 0;
+	unsigned int reg_offset;
 	unsigned int i = 0;
 
 	dma_dbg_4 = REG_READ(ah, AR_DMADBG_4);
@@ -1139,12 +1145,15 @@ static bool ar9003_hw_detect_mac_hang(struct ath_hw *ah)
 		goto exit;
 
 	for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) {
-		if (i < 6)
+		if (i < 6) {
 			chk_dbg = dma_dbg_4;
-		else
+			reg_offset = i * 5;
+		} else {
 			chk_dbg = dma_dbg_5;
+			reg_offset = (i - 6) * 5;
+		}
 
-		dcu_chain_state = (chk_dbg >> (5 * i)) & 0x1f;
+		dcu_chain_state = (chk_dbg >> reg_offset) & 0x1f;
 		if (dcu_chain_state == 0x6) {
 			dcu_wait_frdone = true;
 			chk_dcu |= BIT(i);
drivers/net/wireless/ath/ath9k/htc_hst.c +7 -1
index 6331c98088e0..d5e5f9cf4ca8 100644
@@ -114,7 +114,13 @@ static void htc_process_conn_rsp(struct htc_target *target,
 
 	if (svc_rspmsg->status == HTC_SERVICE_SUCCESS) {
 		epid = svc_rspmsg->endpoint_id;
-		if (epid < 0 || epid >= ENDPOINT_MAX)
+
+		/* Check that the received epid for the endpoint to attach
+		 * a new service is valid. ENDPOINT0 can't be used here as it
+		 * is already reserved for HTC_CTRL_RSVD_SVC service and thus
+		 * should not be modified.
+		 */
+		if (epid <= ENDPOINT0 || epid >= ENDPOINT_MAX)
 			return;
 
 		service_id = be16_to_cpu(svc_rspmsg->service_id);
drivers/net/wireless/ath/ath9k/init.c +1 -1
index b8e520fc2870..ffafd1bcc1e8 100644
@@ -175,7 +175,7 @@ static unsigned int ath9k_reg_rmw(void *hw_priv, u32 reg_offset, u32 set, u32 cl
 	struct ath_hw *ah = (struct ath_hw *) hw_priv;
 	struct ath_common *common = ath9k_hw_common(ah);
 	struct ath_softc *sc = (struct ath_softc *) common->priv;
-	unsigned long uninitialized_var(flags);
+	unsigned long flags;
 	u32 val;
 
 	if (NR_CPUS > 1 && ah->config.serialize_regmode == SER_REG_MODE_ON) {
drivers/net/wireless/ath/ath9k/main.c +6 -5
index 507d8c514968..f659bf793727 100644
@@ -199,7 +199,7 @@ void ath_cancel_work(struct ath_softc *sc)
 void ath_restart_work(struct ath_softc *sc)
 {
 	ieee80211_queue_delayed_work(sc->hw, &sc->hw_check_work,
-				     ATH_HW_CHECK_POLL_INT);
+				     msecs_to_jiffies(ATH_HW_CHECK_POLL_INT));
 
 	if (AR_SREV_9340(sc->sc_ah) || AR_SREV_9330(sc->sc_ah))
 		ieee80211_queue_delayed_work(sc->hw, &sc->hw_pll_work,
@@ -846,7 +846,7 @@ static bool ath9k_txq_list_has_key(struct list_head *txq_list, u32 keyix)
 static bool ath9k_txq_has_key(struct ath_softc *sc, u32 keyix)
 {
 	struct ath_hw *ah = sc->sc_ah;
-	int i;
+	int i, j;
 	struct ath_txq *txq;
 	bool key_in_use = false;
 
@@ -864,8 +864,9 @@ static bool ath9k_txq_has_key(struct ath_softc *sc, u32 keyix)
 		if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) {
 			int idx = txq->txq_tailidx;
 
-			while (!key_in_use &&
-			       !list_empty(&txq->txq_fifo[idx])) {
+			for (j = 0; !key_in_use &&
+			     !list_empty(&txq->txq_fifo[idx]) &&
+			     j < ATH_TXFIFO_DEPTH; j++) {
 				key_in_use = ath9k_txq_list_has_key(
 					&txq->txq_fifo[idx], keyix);
 				INCR(idx, ATH_TXFIFO_DEPTH);
@@ -2224,7 +2225,7 @@ void __ath9k_flush(struct ieee80211_hw *hw, u32 queues, bool drop,
 	}
 
 	ieee80211_queue_delayed_work(hw, &sc->hw_check_work,
-				     ATH_HW_CHECK_POLL_INT);
+				     msecs_to_jiffies(ATH_HW_CHECK_POLL_INT));
 }
 
 static bool ath9k_tx_frames_pending(struct ieee80211_hw *hw)
drivers/net/wireless/ath/ath9k/wmi.c +4 -0
index 9a17f7a07b1e..7b4e92218119 100644
@@ -217,6 +217,10 @@ static void ath9k_wmi_ctrl_rx(void *priv, struct sk_buff *skb,
 	if (unlikely(wmi->stopped))
 		goto free_skb;
 
+	/* Validate the obtained SKB. */
+	if (unlikely(skb->len < sizeof(struct wmi_cmd_hdr)))
+		goto free_skb;
+
 	hdr = (struct wmi_cmd_hdr *) skb->data;
 	cmd_id = be16_to_cpu(hdr->command_id);
 
drivers/net/wireless/atmel/atmel_cs.c +11 -2
index 7afc9c5329fb..f5fa1a95b0c1 100644
@@ -73,6 +73,7 @@ struct local_info {
 static int atmel_probe(struct pcmcia_device *p_dev)
 {
 	struct local_info *local;
+	int ret;
 
 	dev_dbg(&p_dev->dev, "atmel_attach()\n");
 
@@ -83,8 +84,16 @@ static int atmel_probe(struct pcmcia_device *p_dev)
 
 	p_dev->priv = local;
 
-	return atmel_config(p_dev);
-} /* atmel_attach */
+	ret = atmel_config(p_dev);
+	if (ret)
+		goto err_free_priv;
+
+	return 0;
+
+err_free_priv:
+	kfree(p_dev->priv);
+	return ret;
+}
 
 static void atmel_detach(struct pcmcia_device *link)
 {
drivers/net/wireless/broadcom/b43/debugfs.c +1 -1
index 77046384dd80..70b02d664170 100644
@@ -506,7 +506,7 @@ static ssize_t b43_debugfs_read(struct file *file, char __user *userbuf,
 	struct b43_wldev *dev;
 	struct b43_debugfs_fops *dfops;
 	struct b43_dfs_file *dfile;
-	ssize_t uninitialized_var(ret);
+	ssize_t ret;
 	char *buf;
 	const size_t bufsize = 1024 * 16; /* 16 kiB buffer */
 	const size_t buforder = get_order(bufsize);
drivers/net/wireless/broadcom/b43/dma.c +1 -1
index 6837064908be..e0cf2a974121 100644
@@ -50,7 +50,7 @@
 static u32 b43_dma_address(struct b43_dma *dma, dma_addr_t dmaaddr,
 			   enum b43_addrtype addrtype)
 {
-	u32 uninitialized_var(addr);
+	u32 addr;
 
 	switch (addrtype) {
 	case B43_DMA_ADDR_LOW:
drivers/net/wireless/broadcom/b43/lo.c +1 -1
index a335f94c72ff..10cc0c0d70c3 100644
@@ -742,7 +742,7 @@ struct b43_lo_calib *b43_calibrate_lo_setting(struct b43_wldev *dev,
 	};
 	int max_rx_gain;
 	struct b43_lo_calib *cal;
-	struct lo_g_saved_values uninitialized_var(saved_regs);
+	struct lo_g_saved_values saved_regs;
 	/* Values from the "TXCTL Register and Value Table" */
 	u16 txctl_reg;
 	u16 txctl_value;
drivers/net/wireless/broadcom/b43/phy_n.c +1 -1
index 9cbc17c2751c..6f0bf33e923d 100644
@@ -5655,7 +5655,7 @@ static int b43_nphy_rev2_cal_rx_iq(struct b43_wldev *dev,
 	u8 rfctl[2];
 	u8 afectl_core;
 	u16 tmp[6];
-	u16 uninitialized_var(cur_hpf1), uninitialized_var(cur_hpf2), cur_lna;
+	u16 cur_hpf1, cur_hpf2, cur_lna;
 	u32 real, imag;
 	enum nl80211_band band;
 
drivers/net/wireless/broadcom/b43/xmit.c +6 -6
index 1b9c191e2a22..c123e2204663 100644
@@ -435,10 +435,10 @@ int b43_generate_txhdr(struct b43_wldev *dev,
 	if ((rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) ||
 	    (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT)) {
 		unsigned int len;
-		struct ieee80211_hdr *uninitialized_var(hdr);
+		struct ieee80211_hdr *hdr;
 		int rts_rate, rts_rate_fb;
 		int rts_rate_ofdm, rts_rate_fb_ofdm;
-		struct b43_plcp_hdr6 *uninitialized_var(plcp);
+		struct b43_plcp_hdr6 *plcp;
 		struct ieee80211_rate *rts_cts_rate;
 
 		rts_cts_rate = ieee80211_get_rts_cts_rate(dev->wl->hw, info);
@@ -449,7 +449,7 @@ int b43_generate_txhdr(struct b43_wldev *dev,
 		rts_rate_fb_ofdm = b43_is_ofdm_rate(rts_rate_fb);
 
 		if (rates[0].flags & IEEE80211_TX_RC_USE_CTS_PROTECT) {
-			struct ieee80211_cts *uninitialized_var(cts);
+			struct ieee80211_cts *cts;
 
 			switch (dev->fw.hdr_format) {
 			case B43_FW_HDR_598:
@@ -471,7 +471,7 @@ int b43_generate_txhdr(struct b43_wldev *dev,
 			mac_ctl |= B43_TXH_MAC_SENDCTS;
 			len = sizeof(struct ieee80211_cts);
 		} else {
-			struct ieee80211_rts *uninitialized_var(rts);
+			struct ieee80211_rts *rts;
 
 			switch (dev->fw.hdr_format) {
 			case B43_FW_HDR_598:
@@ -663,8 +663,8 @@ void b43_rx(struct b43_wldev *dev, struct sk_buff *skb, const void *_rxhdr)
 	const struct b43_rxhdr_fw4 *rxhdr = _rxhdr;
 	__le16 fctl;
 	u16 phystat0, phystat3;
-	u16 uninitialized_var(chanstat), uninitialized_var(mactime);
-	u32 uninitialized_var(macstat);
+	u16 chanstat, mactime;
+	u32 macstat;
 	u16 chanid;
 	int padding, rate_idx;
 
drivers/net/wireless/broadcom/b43legacy/debugfs.c +1 -1
index 82ef56ed7ca1..d3c9a916b44c 100644
@@ -203,7 +203,7 @@ static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf,
 	struct b43legacy_wldev *dev;
 	struct b43legacy_debugfs_fops *dfops;
 	struct b43legacy_dfs_file *dfile;
-	ssize_t uninitialized_var(ret);
+	ssize_t ret;
 	char *buf;
 	const size_t bufsize = 1024 * 16; /* 16 KiB buffer */
 	const size_t buforder = get_order(bufsize);
drivers/net/wireless/broadcom/b43legacy/main.c +1 -1
index 6f123a52ae2d..2790ea8a3848 100644
@@ -2612,7 +2612,7 @@ static void b43legacy_put_phy_into_reset(struct b43legacy_wldev *dev)
 static int b43legacy_switch_phymode(struct b43legacy_wl *wl,
 				      unsigned int new_mode)
 {
-	struct b43legacy_wldev *uninitialized_var(up_dev);
+	struct b43legacy_wldev *up_dev;
 	struct b43legacy_wldev *down_dev;
 	int err;
 	bool gmode = false;
drivers/net/wireless/cisco/airo.c +4 -1
index d06dc446a393..ca4a3330337d 100644
@@ -6102,8 +6102,11 @@ static int airo_get_rate(struct net_device *dev,
 {
 	struct airo_info *local = dev->ml_priv;
 	StatusRid status_rid;		/* Card status info */
+	int ret;
 
-	readStatusRid(local, &status_rid, 1);
+	ret = readStatusRid(local, &status_rid, 1);
+	if (ret)
+		return -EBUSY;
 
 	vwrq->value = le16_to_cpu(status_rid.currentXmitRate) * 500000;
 	/* If more than one rate, set auto */
drivers/net/wireless/intel/iwlegacy/3945.c +1 -1
index dbf164d48ed3..7042912410be 100644
@@ -2117,7 +2117,7 @@ il3945_txpower_set_from_eeprom(struct il_priv *il)
 
 		/* set tx power value for all OFDM rates */
 		for (rate_idx = 0; rate_idx < IL_OFDM_RATES; rate_idx++) {
-			s32 uninitialized_var(power_idx);
+			s32 power_idx;
 			int rc;
 
 			/* use channel group's clip-power table,
drivers/net/wireless/intel/iwlegacy/4965-mac.c +1 -1
index 665e82effb03..86d5a0653bb9 100644
@@ -2787,7 +2787,7 @@ il4965_hdl_tx(struct il_priv *il, struct il_rx_buf *rxb)
 	struct ieee80211_tx_info *info;
 	struct il4965_tx_resp *tx_resp = (void *)&pkt->u.raw[0];
 	u32 status = le32_to_cpu(tx_resp->u.status);
-	int uninitialized_var(tid);
+	int tid;
 	int sta_id;
 	int freed;
 	u8 *qc = NULL;
drivers/net/wireless/intersil/orinoco/orinoco_cs.c +11 -2
index a956f965a1e5..03bfd2482656 100644
@@ -96,6 +96,7 @@ orinoco_cs_probe(struct pcmcia_device *link)
 {
 	struct orinoco_private *priv;
 	struct orinoco_pccard *card;
+	int ret;
 
 	priv = alloc_orinocodev(sizeof(*card), &link->dev,
 				orinoco_cs_hard_reset, NULL);
@@ -107,8 +108,16 @@ orinoco_cs_probe(struct pcmcia_device *link)
 	card->p_dev = link;
 	link->priv = priv;
 
-	return orinoco_cs_config(link);
-}				/* orinoco_cs_attach */
+	ret = orinoco_cs_config(link);
+	if (ret)
+		goto err_free_orinocodev;
+
+	return 0;
+
+err_free_orinocodev:
+	free_orinocodev(priv);
+	return ret;
+}
 
 static void orinoco_cs_detach(struct pcmcia_device *link)
 {
drivers/net/wireless/intersil/orinoco/spectrum_cs.c +11 -2
index b60048c95e0a..011c86e55923 100644
@@ -157,6 +157,7 @@ spectrum_cs_probe(struct pcmcia_device *link)
 {
 	struct orinoco_private *priv;
 	struct orinoco_pccard *card;
+	int ret;
 
 	priv = alloc_orinocodev(sizeof(*card), &link->dev,
 				spectrum_cs_hard_reset,
@@ -169,8 +170,16 @@ spectrum_cs_probe(struct pcmcia_device *link)
 	card->p_dev = link;
 	link->priv = priv;
 
-	return spectrum_cs_config(link);
-}				/* spectrum_cs_attach */
+	ret = spectrum_cs_config(link);
+	if (ret)
+		goto err_free_orinocodev;
+
+	return 0;
+
+err_free_orinocodev:
+	free_orinocodev(priv);
+	return ret;
+}
 
 static void spectrum_cs_detach(struct pcmcia_device *link)
 {
drivers/net/wireless/ray_cs.c +11 -5
index 1ee150563260..16d2385bd426 100644
@@ -283,13 +283,14 @@ static int ray_probe(struct pcmcia_device *p_dev)
 {
 	ray_dev_t *local;
 	struct net_device *dev;
+	int ret;
 
 	dev_dbg(&p_dev->dev, "ray_attach()\n");
 
 	/* Allocate space for private device-specific data */
 	dev = alloc_etherdev(sizeof(ray_dev_t));
 	if (!dev)
-		goto fail_alloc_dev;
+		return -ENOMEM;
 
 	local = netdev_priv(dev);
 	local->finder = p_dev;
@@ -326,11 +327,16 @@ static int ray_probe(struct pcmcia_device *p_dev)
 	init_timer(&local->timer);
 
 	this_device = p_dev;
-	return ray_config(p_dev);
+	ret = ray_config(p_dev);
+	if (ret)
+		goto err_free_dev;
+
+	return 0;
 
-fail_alloc_dev:
-	return -ENOMEM;
-} /* ray_attach */
+err_free_dev:
+	free_netdev(dev);
+	return ret;
+}
 
 static void ray_detach(struct pcmcia_device *link)
 {
drivers/net/wireless/wl3501_cs.c +11 -5
index cfde9b94b4b6..2eacd099a812 100644
@@ -1865,6 +1865,7 @@ static int wl3501_probe(struct pcmcia_device *p_dev)
 {
 	struct net_device *dev;
 	struct wl3501_card *this;
+	int ret;
 
 	/* The io structure describes IO port mapping */
 	p_dev->resource[0]->end	= 16;
@@ -1876,8 +1877,7 @@ static int wl3501_probe(struct pcmcia_device *p_dev)
 
 	dev = alloc_etherdev(sizeof(struct wl3501_card));
 	if (!dev)
-		goto out_link;
-
+		return -ENOMEM;
 
 	dev->netdev_ops		= &wl3501_netdev_ops;
 	dev->watchdog_timeo	= 5 * HZ;
@@ -1890,9 +1890,15 @@ static int wl3501_probe(struct pcmcia_device *p_dev)
 	netif_stop_queue(dev);
 	p_dev->priv = dev;
 
-	return wl3501_config(p_dev);
-out_link:
-	return -ENOMEM;
+	ret = wl3501_config(p_dev);
+	if (ret)
+		goto out_free_etherdev;
+
+	return 0;
+
+out_free_etherdev:
+	free_netdev(dev);
+	return ret;
 }
 
 static int wl3501_config(struct pcmcia_device *link)
drivers/ntb/hw/amd/ntb_hw_amd.c +6 -1
index 72a7981ef73f..05693edaba11 100644
@@ -1135,12 +1135,17 @@ static struct pci_driver amd_ntb_pci_driver = {
 
 static int __init amd_ntb_pci_driver_init(void)
 {
+	int ret;
 	pr_info("%s %s\n", NTB_DESC, NTB_VER);
 
 	if (debugfs_initialized())
 		debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
 
-	return pci_register_driver(&amd_ntb_pci_driver);
+	ret = pci_register_driver(&amd_ntb_pci_driver);
+	if (ret)
+		debugfs_remove_recursive(debugfs_dir);
+
+	return ret;
 }
 module_init(amd_ntb_pci_driver_init);
 
drivers/ntb/hw/idt/ntb_hw_idt.c +6 -1
index b68e2cad74cc..d6f68a17bbd9 100644
@@ -2689,6 +2689,7 @@ static struct pci_driver idt_pci_driver = {
 
 static int __init idt_pci_driver_init(void)
 {
+	int ret;
 	pr_info("%s %s\n", NTB_DESC, NTB_VER);
 
 	/* Create the top DebugFS directory if the FS is initialized */
@@ -2696,7 +2697,11 @@ static int __init idt_pci_driver_init(void)
 		dbgfs_topdir = debugfs_create_dir(KBUILD_MODNAME, NULL);
 
 	/* Register the NTB hardware driver to handle the PCI device */
-	return pci_register_driver(&idt_pci_driver);
+	ret = pci_register_driver(&idt_pci_driver);
+	if (ret)
+		debugfs_remove_recursive(dbgfs_topdir);
+
+	return ret;
 }
 module_init(idt_pci_driver_init);
 
drivers/ntb/hw/intel/ntb_hw_intel.c +6 -1
index 58068f1447bb..6b1484b4351d 100644
@@ -3041,12 +3041,17 @@ static struct pci_driver intel_ntb_pci_driver = {
 
 static int __init intel_ntb_pci_driver_init(void)
 {
+	int ret;
 	pr_info("%s %s\n", NTB_DESC, NTB_VER);
 
 	if (debugfs_initialized())
 		debugfs_dir = debugfs_create_dir(KBUILD_MODNAME, NULL);
 
-	return pci_register_driver(&intel_ntb_pci_driver);
+	ret = pci_register_driver(&intel_ntb_pci_driver);
+	if (ret)
+		debugfs_remove_recursive(debugfs_dir);
+
+	return ret;
 }
 module_init(intel_ntb_pci_driver_init);
 
drivers/ntb/ntb_transport.c +1 -1
index 18339b7e88a4..a58ced5d6043 100644
@@ -395,7 +395,7 @@ int ntb_transport_register_client_dev(char *device_name)
 
 		rc = device_register(dev);
 		if (rc) {
-			kfree(client_dev);
+			put_device(dev);
 			goto err;
 		}
 
drivers/pci/quirks.c +2 -0
index b9fedf9c77cb..7ca82b8c5c37 100644
@@ -4035,6 +4035,8 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9220,
 /* https://bugzilla.kernel.org/show_bug.cgi?id=42679#c49 */
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9230,
 			 quirk_dma_func1_alias);
+DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MARVELL_EXT, 0x9235,
+			 quirk_dma_func1_alias);
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TTI, 0x0642,
 			 quirk_dma_func1_alias);
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TTI, 0x0645,
drivers/pinctrl/intel/pinctrl-cherryview.c +10 -5
index d39718b4242d..fa4a9ccef1f4 100644
@@ -1040,11 +1040,6 @@ static int chv_config_get(struct pinctrl_dev *pctldev, unsigned pin,
 
 		break;
 
-	case PIN_CONFIG_DRIVE_OPEN_DRAIN:
-		if (!(ctrl1 & CHV_PADCTRL1_ODEN))
-			return -EINVAL;
-		break;
-
 	case PIN_CONFIG_BIAS_HIGH_IMPEDANCE: {
 		u32 cfg;
 
@@ -1054,6 +1049,16 @@ static int chv_config_get(struct pinctrl_dev *pctldev, unsigned pin,
 			return -EINVAL;
 
 		break;
+
+	case PIN_CONFIG_DRIVE_PUSH_PULL:
+		if (ctrl1 & CHV_PADCTRL1_ODEN)
+			return -EINVAL;
+		break;
+
+	case PIN_CONFIG_DRIVE_OPEN_DRAIN:
+		if (!(ctrl1 & CHV_PADCTRL1_ODEN))
+			return -EINVAL;
+		break;
 	}
 
 	default:
drivers/pinctrl/pinctrl-amd.c +15 -13
index c57f91f48423..fbec8a07e942 100644
@@ -169,18 +169,6 @@ static int amd_gpio_set_debounce(struct gpio_chip *gc, unsigned offset,
 	return ret;
 }
 
-static int amd_gpio_set_config(struct gpio_chip *gc, unsigned offset,
-			       unsigned long config)
-{
-	u32 debounce;
-
-	if (pinconf_to_config_param(config) != PIN_CONFIG_INPUT_DEBOUNCE)
-		return -ENOTSUPP;
-
-	debounce = pinconf_to_config_argument(config);
-	return amd_gpio_set_debounce(gc, offset, debounce);
-}
-
 #ifdef CONFIG_DEBUG_FS
 static void amd_gpio_dbg_show(struct seq_file *s, struct gpio_chip *gc)
 {
@@ -632,7 +620,7 @@ static int amd_pinconf_get(struct pinctrl_dev *pctldev,
 }
 
 static int amd_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin,
-				unsigned long *configs, unsigned num_configs)
+			   unsigned long *configs, unsigned int num_configs)
 {
 	int i;
 	u32 arg;
@@ -722,6 +710,20 @@ static int amd_pinconf_group_set(struct pinctrl_dev *pctldev,
 	return 0;
 }
 
+static int amd_gpio_set_config(struct gpio_chip *gc, unsigned int pin,
+			       unsigned long config)
+{
+	struct amd_gpio *gpio_dev = gpiochip_get_data(gc);
+
+	if (pinconf_to_config_param(config) == PIN_CONFIG_INPUT_DEBOUNCE) {
+		u32 debounce = pinconf_to_config_argument(config);
+
+		return amd_gpio_set_debounce(gc, pin, debounce);
+	}
+
+	return amd_pinconf_set(gpio_dev->pctrl, pin, &config, 1);
+}
+
 static const struct pinconf_ops amd_pinconf_ops = {
 	.pin_config_get		= amd_pinconf_get,
 	.pin_config_set		= amd_pinconf_set,
drivers/pinctrl/pinctrl-at91-pio4.c +2 -0
index 32e863a352a3..8f18a35b66b6 100644
@@ -983,6 +983,8 @@ static int atmel_pinctrl_probe(struct platform_device *pdev)
 		/* Pin naming convention: P(bank_name)(bank_pin_number). */
 		pin_desc[i].name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "P%c%d",
 						  bank + 'A', line);
+		if (!pin_desc[i].name)
+			return -ENOMEM;
 
 		group->name = group_names[i] = pin_desc[i].name;
 		group->pin = pin_desc[i].number;
drivers/platform/x86/hdaps.c +2 -2
index c26baf77938e..96cc87d12329 100644
@@ -378,7 +378,7 @@ static ssize_t hdaps_variance_show(struct device *dev,
 static ssize_t hdaps_temp1_show(struct device *dev,
 				struct device_attribute *attr, char *buf)
 {
-	u8 uninitialized_var(temp);
+	u8 temp;
 	int ret;
 
 	ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp);
@@ -391,7 +391,7 @@ static ssize_t hdaps_temp1_show(struct device *dev,
 static ssize_t hdaps_temp2_show(struct device *dev,
 				struct device_attribute *attr, char *buf)
 {
-	u8 uninitialized_var(temp);
+	u8 temp;
 	int ret;
 
 	ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp);
drivers/platform/x86/msi-laptop.c +4 -4
index 42b31c549db0..1781e67781a5 100644
@@ -223,7 +223,7 @@ static ssize_t set_device_state(const char *buf, size_t count, u8 mask)
 		return -EINVAL;
 
 	if (quirks->ec_read_only)
-		return -EOPNOTSUPP;
+		return 0;
 
 	/* read current device state */
 	result = ec_read(MSI_STANDARD_EC_COMMAND_ADDRESS, &rdata);
@@ -854,15 +854,15 @@ static bool msi_laptop_i8042_filter(unsigned char data, unsigned char str,
 static void msi_init_rfkill(struct work_struct *ignored)
 {
 	if (rfk_wlan) {
-		rfkill_set_sw_state(rfk_wlan, !wlan_s);
+		msi_rfkill_set_state(rfk_wlan, !wlan_s);
 		rfkill_wlan_set(NULL, !wlan_s);
 	}
 	if (rfk_bluetooth) {
-		rfkill_set_sw_state(rfk_bluetooth, !bluetooth_s);
+		msi_rfkill_set_state(rfk_bluetooth, !bluetooth_s);
 		rfkill_bluetooth_set(NULL, !bluetooth_s);
 	}
 	if (rfk_threeg) {
-		rfkill_set_sw_state(rfk_threeg, !threeg_s);
+		msi_rfkill_set_state(rfk_threeg, !threeg_s);
 		rfkill_threeg_set(NULL, !threeg_s);
 	}
 }
drivers/rtc/rtc-st-lpc.c +1 -1
index 6f33e705928f..9044c2851a1f 100644
@@ -236,7 +236,7 @@ static int st_rtc_probe(struct platform_device *pdev)
 	enable_irq_wake(rtc->irq);
 	disable_irq(rtc->irq);
 
-	rtc->clk = clk_get(&pdev->dev, NULL);
+	rtc->clk = devm_clk_get(&pdev->dev, NULL);
 	if (IS_ERR(rtc->clk)) {
 		dev_err(&pdev->dev, "Unable to request clock\n");
 		return PTR_ERR(rtc->clk);
drivers/s390/block/dasd_ioctl.c +1 -0
index 7bdc6aaa0ba3..2700e517083b 100644
@@ -138,6 +138,7 @@ static int dasd_ioctl_resume(struct dasd_block *block)
 	spin_unlock_irqrestore(get_ccwdev_lock(base->cdev), flags);
 
 	dasd_schedule_block_bh(block);
+	dasd_schedule_device_bh(base);
 	return 0;
 }
 
drivers/scsi/3w-xxxx.c +3 -1
index 961ea6f7def8..7f21d724461e 100644
@@ -2303,8 +2303,10 @@ static int tw_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
 	TW_DISABLE_INTERRUPTS(tw_dev);
 
 	/* Initialize the card */
-	if (tw_reset_sequence(tw_dev))
+	if (tw_reset_sequence(tw_dev)) {
+		retval = -EINVAL;
 		goto out_release_mem_region;
+	}
 
 	/* Set host specific parameters */
 	host->max_id = TW_MAX_UNITS;
drivers/scsi/dc395x.c +1 -1
index f7304ff0e08e..3487ef2c1b23 100644
@@ -4279,7 +4279,7 @@ static int adapter_sg_tables_alloc(struct AdapterCtlBlk *acb)
 	const unsigned srbs_per_page = PAGE_SIZE/SEGMENTX_LEN;
 	int srb_idx = 0;
 	unsigned i = 0;
-	struct SGentry *uninitialized_var(ptr);
+	struct SGentry *ptr;
 
 	for (i = 0; i < DC395x_MAX_SRB_CNT; i++)
 		acb->srb_array[i].segment_x = NULL;
drivers/scsi/pm8001/pm8001_hwi.c +1 -1
index cc90b5c8d462..6df54c7dc07b 100644
@@ -4165,7 +4165,7 @@ static int process_oq(struct pm8001_hba_info *pm8001_ha, u8 vec)
 {
 	struct outbound_queue_table *circularQ;
 	void *pMsg1 = NULL;
-	u8 uninitialized_var(bc);
+	u8 bc;
 	u32 ret = MPI_IO_STATUS_FAIL;
 	unsigned long flags;
 
drivers/scsi/pm8001/pm80xx_hwi.c +1 -1
index 4eae727ccfbc..89a343718779 100644
@@ -3776,7 +3776,7 @@ static int process_oq(struct pm8001_hba_info *pm8001_ha, u8 vec)
 {
 	struct outbound_queue_table *circularQ;
 	void *pMsg1 = NULL;
-	u8 uninitialized_var(bc);
+	u8 bc;
 	u32 ret = MPI_IO_STATUS_FAIL;
 	unsigned long flags;
 	u32 regval;
drivers/scsi/qla2xxx/qla_attr.c +13 -0
index dbfd703d0f46..895702161d9a 100644
@@ -1779,6 +1779,7 @@ static void
 qla2x00_terminate_rport_io(struct fc_rport *rport)
 {
 	fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
+	scsi_qla_host_t *vha;
 
 	if (!fcport)
 		return;
@@ -1788,9 +1789,12 @@ qla2x00_terminate_rport_io(struct fc_rport *rport)
 
 	if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags))
 		return;
+	vha = fcport->vha;
 
 	if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) {
 		qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16);
+		qla2x00_eh_wait_for_pending_commands(fcport->vha, fcport->d_id.b24,
+			0, WAIT_TARGET);
 		return;
 	}
 	/*
@@ -1805,6 +1809,15 @@ qla2x00_terminate_rport_io(struct fc_rport *rport)
 		else
 			qla2x00_port_logout(fcport->vha, fcport);
 	}
+
+	/* check for any straggling io left behind */
+	if (qla2x00_eh_wait_for_pending_commands(fcport->vha, fcport->d_id.b24, 0, WAIT_TARGET)) {
+		ql_log(ql_log_warn, vha, 0x300b,
+		       "IO not return.  Resetting. \n");
+		set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags);
+		qla2xxx_wake_dpc(vha);
+		qla2x00_wait_for_chip_reset(vha);
+	}
 }
 
 static int
drivers/scsi/qla2xxx/qla_bsg.c +6 -0
index b50478fa14ad..f051da3288c3 100644
@@ -264,6 +264,10 @@ qla2x00_process_els(struct bsg_job *bsg_job)
 
 	if (bsg_request->msgcode == FC_BSG_RPT_ELS) {
 		rport = fc_bsg_to_rport(bsg_job);
+		if (!rport) {
+			rval = -ENOMEM;
+			goto done;
+		}
 		fcport = *(fc_port_t **) rport->dd_data;
 		host = rport_to_shost(rport);
 		vha = shost_priv(host);
@@ -2489,6 +2493,8 @@ qla24xx_bsg_request(struct bsg_job *bsg_job)
 
 	if (bsg_request->msgcode == FC_BSG_RPT_ELS) {
 		rport = fc_bsg_to_rport(bsg_job);
+		if (!rport)
+			return ret;
 		host = rport_to_shost(rport);
 		vha = shost_priv(host);
 	} else {
drivers/scsi/qla2xxx/qla_iocb.c +2 -1
index 85cb4e30f742..99345099b961 100644
@@ -598,7 +598,8 @@ qla24xx_build_scsi_type_6_iocbs(srb_t *sp, struct cmd_type_6 *cmd_pkt,
 	*((uint32_t *)(&cmd_pkt->entry_type)) = cpu_to_le32(COMMAND_TYPE_6);
 
 	/* No data transfer */
-	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
+	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE ||
+	    tot_dsds == 0) {
 		cmd_pkt->byte_count = cpu_to_le32(0);
 		return 0;
 	}
drivers/soc/fsl/qe/Kconfig +1 -0
index 73a2e08b47ef..e2ccddd348b5 100644
@@ -37,6 +37,7 @@ config QE_TDM
 
 config QE_USB
 	bool
+	depends on QUICC_ENGINE
 	default y if USB_FSL_QE
 	help
 	  QE USB Controller support
drivers/spi/spi-bcm-qspi.c +3 -7
index 0321ac531df7..cebc06759eee 100644
@@ -1251,13 +1251,9 @@ int bcm_qspi_probe(struct platform_device *pdev,
 		res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
 						   "mspi");
 
-	if (res) {
-		qspi->base[MSPI]  = devm_ioremap_resource(dev, res);
-		if (IS_ERR(qspi->base[MSPI]))
-			return PTR_ERR(qspi->base[MSPI]);
-	} else {
-		return 0;
-	}
+	qspi->base[MSPI]  = devm_ioremap_resource(dev, res);
+	if (IS_ERR(qspi->base[MSPI]))
+		return PTR_ERR(qspi->base[MSPI]);
 
 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "bspi");
 	if (res) {
drivers/spi/spi-bcm63xx.c +1 -1
index bfe5754768f9..cc6ec3fb5bfd 100644
@@ -134,7 +134,7 @@ enum bcm63xx_regs_spi {
 	SPI_MSG_DATA_SIZE,
 };
 
-#define BCM63XX_SPI_MAX_PREPEND		15
+#define BCM63XX_SPI_MAX_PREPEND		7
 
 #define BCM63XX_SPI_MAX_CS		8
 #define BCM63XX_SPI_BUS_NUM		0
drivers/spi/spi-fsl-spi.c +13 -12
index 5e49fed487f8..fd15b030b381 100644
@@ -339,7 +339,7 @@ static int fsl_spi_do_one_msg(struct spi_master *master,
 	struct spi_transfer *t, *first;
 	unsigned int cs_change;
 	const int nsecs = 50;
-	int status;
+	int status, last_bpw;
 
 	/*
 	 * In CPU mode, optimize large byte transfers to use larger
@@ -373,26 +373,27 @@ static int fsl_spi_do_one_msg(struct spi_master *master,
 	}
 
 	/* Don't allow changes if CS is active */
-	first = list_first_entry(&m->transfers, struct spi_transfer,
-			transfer_list);
+	cs_change = 1;
 	list_for_each_entry(t, &m->transfers, transfer_list) {
-		if ((first->bits_per_word != t->bits_per_word) ||
-			(first->speed_hz != t->speed_hz)) {
+		if (cs_change)
+			first = t;
+		cs_change = t->cs_change;
+		if (first->speed_hz != t->speed_hz) {
 			dev_err(&spi->dev,
-				"bits_per_word/speed_hz should be same for the same SPI transfer\n");
+				"speed_hz cannot change while CS is active\n");
 			return -EINVAL;
 		}
 	}
 
+	last_bpw = -1;
 	cs_change = 1;
 	status = -EINVAL;
 	list_for_each_entry(t, &m->transfers, transfer_list) {
-		if (t->bits_per_word || t->speed_hz) {
-			if (cs_change)
-				status = fsl_spi_setup_transfer(spi, t);
-			if (status < 0)
-				break;
-		}
+		if (cs_change || last_bpw != t->bits_per_word)
+			status = fsl_spi_setup_transfer(spi, t);
+		if (status < 0)
+			break;
+		last_bpw = t->bits_per_word;
 
 		if (cs_change) {
 			fsl_spi_chipselect(spi, BITBANG_CS_ACTIVE);
drivers/ssb/driver_chipcommon.c +2 -2
index 7cb7d2c8fd86..c766df837ab9 100644
@@ -119,7 +119,7 @@ void ssb_chipco_set_clockmode(struct ssb_chipcommon *cc,
 static enum ssb_clksrc chipco_pctl_get_slowclksrc(struct ssb_chipcommon *cc)
 {
 	struct ssb_bus *bus = cc->dev->bus;
-	u32 uninitialized_var(tmp);
+	u32 tmp;
 
 	if (cc->dev->id.revision < 6) {
 		if (bus->bustype == SSB_BUSTYPE_SSB ||
@@ -149,7 +149,7 @@ static enum ssb_clksrc chipco_pctl_get_slowclksrc(struct ssb_chipcommon *cc)
 /* Get maximum or minimum (depending on get_max flag) slowclock frequency. */
 static int chipco_pctl_clockfreqlimit(struct ssb_chipcommon *cc, int get_max)
 {
-	int uninitialized_var(limit);
+	int limit;
 	enum ssb_clksrc clocksrc;
 	int divisor = 1;
 	u32 tmp;
drivers/staging/ks7010/ks_wlan_net.c +4 -2
index 9b71dc64f9b4..c5c37d4e0c6f 100644
@@ -1787,8 +1787,10 @@ static int ks_wlan_set_encode_ext(struct net_device *dev,
 			commit |= SME_WEP_FLAG;
 		}
 		if (enc->key_len) {
-			memcpy(&key->key_val[0], &enc->key[0], enc->key_len);
-			key->key_len = enc->key_len;
+			int key_len = clamp_val(enc->key_len, 0, IW_ENCODING_TOKEN_MAX);
+
+			memcpy(&key->key_val[0], &enc->key[0], key_len);
+			key->key_len = key_len;
 			commit |= (SME_WEP_VAL1 << index);
 		}
 		break;
drivers/tty/cyclades.c +1 -1
index d84214bd7176..3efb12337583 100644
@@ -3651,7 +3651,7 @@ static int cy_pci_probe(struct pci_dev *pdev,
 	struct cyclades_card *card;
 	void __iomem *addr0 = NULL, *addr2 = NULL;
 	char *card_name = NULL;
-	u32 uninitialized_var(mailbox);
+	u32 mailbox;
 	unsigned int device_id, nchan = 0, card_no, i, j;
 	unsigned char plx_ver;
 	int retval, irq;
drivers/tty/isicom.c +1 -1
index 61ecdd6b2fc2..0a7302d618b6 100644
@@ -1545,7 +1545,7 @@ static unsigned int card_count;
 static int isicom_probe(struct pci_dev *pdev,
 	const struct pci_device_id *ent)
 {
-	unsigned int uninitialized_var(signature), index;
+	unsigned int signature, index;
 	int retval = -EPERM;
 	struct isi_board *board = NULL;
 
drivers/tty/serial/8250/8250.h +0 -1
index 6e8a54eb9842..5caedf2f1989 100644
@@ -89,7 +89,6 @@ struct serial8250_config {
 #define UART_BUG_TXEN	(1 << 1)	/* UART has buggy TX IIR status */
 #define UART_BUG_NOMSR	(1 << 2)	/* UART has buggy MSR status bits (Au1x00) */
 #define UART_BUG_THRE	(1 << 3)	/* UART has buggy THRE reassertion */
-#define UART_BUG_PARITY	(1 << 4)	/* UART mishandles parity if FIFO enabled */
 
 
 #ifdef CONFIG_SERIAL_8250_SHARE_IRQ
drivers/tty/serial/8250/8250_pci.c +0 -19
index e80d74293244..51d3859f8f91 100644
@@ -1052,14 +1052,6 @@ static int pci_oxsemi_tornado_init(struct pci_dev *dev)
 	return number_uarts;
 }
 
-static int pci_asix_setup(struct serial_private *priv,
-		  const struct pciserial_board *board,
-		  struct uart_8250_port *port, int idx)
-{
-	port->bugs |= UART_BUG_PARITY;
-	return pci_default_setup(priv, board, port, idx);
-}
-
 /* Quatech devices have their own extra interface features */
 
 struct quatech_feature {
@@ -1686,7 +1678,6 @@ pci_wch_ch38x_setup(struct serial_private *priv,
 #define PCI_DEVICE_ID_WCH_CH355_4S	0x7173
 #define PCI_VENDOR_ID_AGESTAR		0x5372
 #define PCI_DEVICE_ID_AGESTAR_9375	0x6872
-#define PCI_VENDOR_ID_ASIX		0x9710
 #define PCI_DEVICE_ID_BROADCOM_TRUMANAGE 0x160a
 #define PCI_DEVICE_ID_AMCC_ADDIDATA_APCI7800 0x818e
 
@@ -2466,16 +2457,6 @@ static struct pci_serial_quirk pci_serial_quirks[] __refdata = {
 		.subdevice      = PCI_ANY_ID,
 		.setup          = pci_wch_ch38x_setup,
 	},
-	/*
-	 * ASIX devices with FIFO bug
-	 */
-	{
-		.vendor		= PCI_VENDOR_ID_ASIX,
-		.device		= PCI_ANY_ID,
-		.subvendor	= PCI_ANY_ID,
-		.subdevice	= PCI_ANY_ID,
-		.setup		= pci_asix_setup,
-	},
 	/*
 	 * Broadcom TruManage (NetXtreme)
 	 */
drivers/tty/serial/8250/8250_port.c +3 -8
index 78af258111e5..d3083f19d213 100644
@@ -2609,11 +2609,8 @@ static unsigned char serial8250_compute_lcr(struct uart_8250_port *up,
 
 	if (c_cflag & CSTOPB)
 		cval |= UART_LCR_STOP;
-	if (c_cflag & PARENB) {
+	if (c_cflag & PARENB)
 		cval |= UART_LCR_PARITY;
-		if (up->bugs & UART_BUG_PARITY)
-			up->fifo_bug = true;
-	}
 	if (!(c_cflag & PARODD))
 		cval |= UART_LCR_EPAR;
 #ifdef CMSPAR
@@ -2702,8 +2699,7 @@ serial8250_do_set_termios(struct uart_port *port, struct ktermios *termios,
 	up->lcr = cval;					/* Save computed LCR */
 
 	if (up->capabilities & UART_CAP_FIFO && port->fifosize > 1) {
-		/* NOTE: If fifo_bug is not set, a user can set RX_trigger. */
-		if ((baud < 2400 && !up->dma) || up->fifo_bug) {
+		if (baud < 2400 && !up->dma) {
 			up->fcr &= ~UART_FCR_TRIGGER_MASK;
 			up->fcr |= UART_FCR_TRIGGER_1;
 		}
@@ -3039,8 +3035,7 @@ static int do_set_rxtrig(struct tty_port *port, unsigned char bytes)
 	struct uart_8250_port *up = up_to_u8250p(uport);
 	int rxtrig;
 
-	if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1 ||
-	    up->fifo_bug)
+	if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1)
 		return -EINVAL;
 
 	rxtrig = bytes_to_fcr_rxtrig(up, bytes);
drivers/tty/serial/atmel_serial.c +2 -2
index b167170a2954..6d2ba6ab0e3b 100644
@@ -798,11 +798,11 @@ static void atmel_complete_tx_dma(void *arg)
 
 	port->icount.tx += atmel_port->tx_len;
 
-	spin_lock_irq(&atmel_port->lock_tx);
+	spin_lock(&atmel_port->lock_tx);
 	async_tx_ack(atmel_port->desc_tx);
 	atmel_port->cookie_tx = -EINVAL;
 	atmel_port->desc_tx = NULL;
-	spin_unlock_irq(&atmel_port->lock_tx);
+	spin_unlock(&atmel_port->lock_tx);
 
 	if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
 		uart_write_wakeup(port);
drivers/tty/serial/samsung.c +13 -1
index 3a105b2b7937..a50e80fde223 100644
@@ -1177,8 +1177,12 @@ static unsigned int s3c24xx_serial_getclk(struct s3c24xx_uart_port *ourport,
 			continue;
 
 		rate = clk_get_rate(clk);
-		if (!rate)
+		if (!rate) {
+			dev_err(ourport->port.dev,
+				"Failed to get clock rate for %s.\n", clkname);
+			clk_put(clk);
 			continue;
+		}
 
 		if (ourport->info->has_divslot) {
 			unsigned long div = rate / req_baud;
@@ -1204,10 +1208,18 @@ static unsigned int s3c24xx_serial_getclk(struct s3c24xx_uart_port *ourport,
 			calc_deviation = -calc_deviation;
 
 		if (calc_deviation < deviation) {
+			/*
+			 * If we find a better clk, release the previous one, if
+			 * any.
+			 */
+			if (!IS_ERR(*best_clk))
+				clk_put(*best_clk);
 			*best_clk = clk;
 			best_quot = quot;
 			*clk_num = cnt;
 			deviation = calc_deviation;
+		} else {
+			clk_put(clk);
 		}
 	}
 
drivers/usb/host/ohci-at91.c +7 -1
index e0ebd3d513c6..f3806f4f2fc3 100644
@@ -641,7 +641,13 @@ ohci_hcd_at91_drv_resume(struct device *dev)
 
 	at91_start_clock(ohci_at91);
 
-	ohci_resume(hcd, false);
+	/*
+	 * According to the comment in ohci_hcd_at91_drv_suspend()
+	 * we need to do a reset if the 48Mhz clock was stopped,
+	 * that is, if ohci_at91->wakeup is clear. Tell ohci_resume()
+	 * to reset in this case by setting its "hibernated" flag.
+	 */
+	ohci_resume(hcd, !ohci_at91->wakeup);
 
 	ohci_at91_port_suspend(ohci_at91->sfr_regmap, 0);
 
drivers/usb/host/xhci-mtk.c +1 -0
index 5ad2972114e0..56e78cfdcdd4 100644
@@ -674,6 +674,7 @@ static int xhci_mtk_probe(struct platform_device *pdev)
 		goto exit_phys;
 
 	device_init_wakeup(dev, true);
+	dma_set_max_seg_size(dev, UINT_MAX);
 
 	xhci = hcd_to_xhci(hcd);
 	xhci->main_hcd = hcd;
drivers/usb/musb/cppi_dma.c +1 -1
index a13bd3625043..1dcab3353344 100644
@@ -1145,7 +1145,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id)
 	struct musb_hw_ep	*hw_ep = NULL;
 	u32			rx, tx;
 	int			i, index;
-	unsigned long		uninitialized_var(flags);
+	unsigned long		flags;
 
 	cppi = container_of(musb->dma_controller, struct cppi, controller);
 	if (cppi->irq)
drivers/usb/phy/phy-tahvo.c +1 -1
index e4fc73bf6ee9..c156c051df99 100644
@@ -406,7 +406,7 @@ static int tahvo_usb_probe(struct platform_device *pdev)
 
 	tu->irq = ret = platform_get_irq(pdev, 0);
 	if (ret < 0)
-		return ret;
+		goto err_remove_phy;
 	ret = request_threaded_irq(tu->irq, NULL, tahvo_usb_vbus_interrupt,
 				   IRQF_ONESHOT,
 				   "tahvo-vbus", tu);
drivers/usb/serial/option.c +10 -0
index 5127b651ad5d..22fd7293adb1 100644
@@ -254,6 +254,7 @@ static void option_instat_callback(struct urb *urb);
 #define QUECTEL_PRODUCT_EM061K_LTA		0x0123
 #define QUECTEL_PRODUCT_EM061K_LMS		0x0124
 #define QUECTEL_PRODUCT_EC25			0x0125
+#define QUECTEL_PRODUCT_EM060K_128		0x0128
 #define QUECTEL_PRODUCT_EG91			0x0191
 #define QUECTEL_PRODUCT_EG95			0x0195
 #define QUECTEL_PRODUCT_BG96			0x0296
@@ -271,6 +272,7 @@ static void option_instat_callback(struct urb *urb);
 #define QUECTEL_PRODUCT_RM520N			0x0801
 #define QUECTEL_PRODUCT_EC200U			0x0901
 #define QUECTEL_PRODUCT_EC200S_CN		0x6002
+#define QUECTEL_PRODUCT_EC200A			0x6005
 #define QUECTEL_PRODUCT_EM061K_LWW		0x6008
 #define QUECTEL_PRODUCT_EM061K_LCN		0x6009
 #define QUECTEL_PRODUCT_EC200T			0x6026
@@ -1154,6 +1156,10 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE(QUALCOMM_VENDOR_ID, 0x90fa),
 	  .driver_info = RSVD(3) },
 	/* u-blox products */
+	{ USB_DEVICE(UBLOX_VENDOR_ID, 0x1311) },	/* u-blox LARA-R6 01B */
+	{ USB_DEVICE(UBLOX_VENDOR_ID, 0x1312),		/* u-blox LARA-R6 01B (RMNET) */
+	  .driver_info = RSVD(4) },
+	{ USB_DEVICE_INTERFACE_CLASS(UBLOX_VENDOR_ID, 0x1313, 0xff) },	/* u-blox LARA-R6 01B (ECM) */
 	{ USB_DEVICE(UBLOX_VENDOR_ID, 0x1341) },	/* u-blox LARA-L6 */
 	{ USB_DEVICE(UBLOX_VENDOR_ID, 0x1342),		/* u-blox LARA-L6 (RMNET) */
 	  .driver_info = RSVD(4) },
@@ -1196,6 +1202,9 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K, 0xff, 0x00, 0x40) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K, 0xff, 0xff, 0x30) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K, 0xff, 0xff, 0x40) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K_128, 0xff, 0xff, 0x30) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K_128, 0xff, 0x00, 0x40) },
+	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM060K_128, 0xff, 0xff, 0x40) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM061K_LCN, 0xff, 0xff, 0x30) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM061K_LCN, 0xff, 0x00, 0x40) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EM061K_LCN, 0xff, 0xff, 0x40) },
@@ -1224,6 +1233,7 @@ static const struct usb_device_id option_ids[] = {
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM520N, 0xff, 0, 0) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, 0x0900, 0xff, 0, 0), /* RM500U-CN */
 	  .driver_info = ZLP },
+	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200A, 0xff, 0, 0) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200U, 0xff, 0, 0) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200S_CN, 0xff, 0, 0) },
 	{ USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200T, 0xff, 0, 0) },
drivers/usb/serial/usb-serial-simple.c +40 -33

45 lines not on this page · raw message

drivers/usb/storage/sddr55.c +2 -2
index 147c50b3e00f..4bba646576b1 100644

Lines of this file are not shown. View the raw message.

drivers/vhost/net.c +2 -2
index c41197402d81..69df50718e4d 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/au1200fb.c +3 -0
index e17a083f849a..cae4a04cba48 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/imsttfb.c +10 -8
index 6589d5f0a5a4..9b1a11bcd921 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/imxfb.c +2 -2
index ba82f97fb42b..a4dc25fbdd1b 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/matrox/matroxfb_maven.c +3 -3
index bf5ce04f9aea..267b31ddb02d 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/omap/lcd_mipid.c +5 -1
index e3a85432f926..5730355ee598 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/pm3fb.c +3 -3
index 6130aa56a1e9..7bd45334dcac 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/riva/riva_hw.c +1 -2
index 8bdf37f3013b..b2d3e71fd9ae 100644

Lines of this file are not shown. View the raw message.

drivers/virtio/virtio_ring.c +1 -1
index 22a4329ed200..fe9fe5c739a5 100644

Lines of this file are not shown. View the raw message.

drivers/w1/w1.c +2 -2
index 4d43c373e5c6..cfba277bfd57 100644

Lines of this file are not shown. View the raw message.

fs/afs/dir.c +1 -1
index 613a77058263..6269ee97eba2 100644

Lines of this file are not shown. View the raw message.

fs/afs/security.c +1 -1
index 859096e25f2c..5fa9c6f5ffd0 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/qgroup.c +2 -0
index 4ad588ed5813..3eb5bf1219ae 100644

Lines of this file are not shown. View the raw message.

fs/dlm/netlink.c +1 -1
index 43a96c330570..ea50f59610e5 100644

Lines of this file are not shown. View the raw message.

fs/dlm/plock.c +3 -1
index b53ca4df7e77..25bf72c15d16 100644

Lines of this file are not shown. View the raw message.

fs/ext2/ext2.h +0 -12
index b500fed96a69..7712eb335fdb 100644

Lines of this file are not shown. View the raw message.

fs/ext2/super.c +4 -19
index 7ca9fb0bfc32..a5b95c296ed4 100644

Lines of this file are not shown. View the raw message.

fs/ext4/indirect.c +8 -0
index 0cc0d22c0856..9bf711d63368 100644

Lines of this file are not shown. View the raw message.

fs/ext4/inode.c +0 -10
index 35c72f8fee75..c07dddc63110 100644

Lines of this file are not shown. View the raw message.

fs/ext4/mballoc.c +2 -2
index ce21da3f437f..9a2b25e5905e 100644

Lines of this file are not shown. View the raw message.

fs/ext4/xattr.c +14 -0
index c2117b985d4a..11b7b8b89f5e 100644

Lines of this file are not shown. View the raw message.

fs/fat/dir.c +1 -1
index 971e369517a7..6b350d08340c 100644

Lines of this file are not shown. View the raw message.

fs/fuse/control.c +1 -1
index 42bed87dd5ea..2ce990f31322 100644

Lines of this file are not shown. View the raw message.

fs/fuse/cuse.c +1 -1
index b15eaa9e6cd7..196fb9847d03 100644

Lines of this file are not shown. View the raw message.

fs/fuse/dir.c +1 -1
index 94ecc67292c7..8e5125904762 100644

Lines of this file are not shown. View the raw message.

fs/fuse/file.c +1 -1
index a32b2ca3de6f..b6bbb24363d0 100644

Lines of this file are not shown. View the raw message.

fs/gfs2/aops.c +1 -1
index 68ed06962537..4e88da58e140 100644

Lines of this file are not shown. View the raw message.

fs/gfs2/super.c +8 -0
index 56bfed0a5873..73290263402a 100644

Lines of this file are not shown. View the raw message.

fs/hfsplus/unicode.c +1 -1
index dfa90c21948f..8250e24e3f2c 100644

Lines of this file are not shown. View the raw message.

fs/isofs/namei.c +2 -2
index 558e7c51ce0d..58f80e1b3ac0 100644

Lines of this file are not shown. View the raw message.

fs/jffs2/build.c +4 -1
index 837cd55fd4c5..6ae9d6fefb86 100644

Lines of this file are not shown. View the raw message.

fs/jffs2/erase.c +1 -1
index 4a6cf289be24..3e0ea6e75e93 100644

Lines of this file are not shown. View the raw message.

fs/jffs2/xattr.c +9 -4
index da3e18503c65..acb4492f5970 100644

Lines of this file are not shown. View the raw message.

fs/jffs2/xattr.h +2 -2
index 720007b2fd65..1b5030a3349d 100644

Lines of this file are not shown. View the raw message.

fs/jfs/jfs_dmap.c +6 -0
index 6a0f564e58dd..cc2ac1f324b0 100644

Lines of this file are not shown. View the raw message.

fs/jfs/jfs_filsys.h +2 -0
index 415bfa90607a..0c36ce6318d5 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs4xdr.c +1 -1
index a82b7d2c8880..d34ed6575e8f 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfsctl.c +1 -1
index 50465ee502c7..69a31642d5fc 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/alloc.c +2 -2
index 8512f2119241..6dbf26a44485 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/dir.c +7 -7
index 3c26f2dfedf1..08d902a89213 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/extent_map.c +2 -2
index e4719e0a3f99..686068e20a90 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/namei.c +1 -1
index 1dc9304eec89..6ec15ffeb562 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/refcounttree.c +1 -1
index 3a4e1bca5e31..5f3190905955 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/xattr.c +1 -1
index 77740ef5a8e8..ceba69bbe04b 100644

Lines of this file are not shown. View the raw message.

fs/omfs/file.c +1 -1
index bf83e6644333..ce59b2fb50c7 100644

Lines of this file are not shown. View the raw message.

fs/sysv/itree.c +4 -0
index 31f66053e239..e3d1673b8ec9 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/commit.c +3 -3
index 63f56619991d..5e82d1563c6c 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/file.c +2 -2
index 0e9cfeca5daf..9be80631b20f 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/journal.c +1 -1
index 69051f7a9606..a1f4e7d9b8d6 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/lpt.c +1 -1
index 9a517109da0f..dba629c3b0f8 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/tnc.c +3 -3
index 20b70e178c4f..35935b265adb 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/tnc_misc.c +2 -2
index 93f5b7859e6f..d8477e8eaf22 100644

Lines of this file are not shown. View the raw message.

fs/udf/balloc.c +1 -1
index 6f2bfbf248c9..f4f1a278771f 100644

Lines of this file are not shown. View the raw message.

fs/xfs/xfs_bmap_util.c +1 -1
index 6503cfa44262..8f7e8f31ce9e 100644

Lines of this file are not shown. View the raw message.

include/asm-generic/word-at-a-time.h +1 -1
index 20c93f08c993..95a1d214108a 100644

Lines of this file are not shown. View the raw message.

include/linux/nmi.h +1 -1
index 50d143995338..5ef76f8cf080 100644

Lines of this file are not shown. View the raw message.

include/linux/pci.h +1 -0
index 521030233c8d..7f93c3919947 100644

Lines of this file are not shown. View the raw message.

include/linux/sched/signal.h +1 -1
index bcaba7e8ca6e..916f4807cc9a 100644

Lines of this file are not shown. View the raw message.

include/linux/serial_8250.h +0 -1
index 791a6be0e394..f539d91ffd3a 100644

Lines of this file are not shown. View the raw message.

include/linux/tcp.h +1 -1
index b9bc6e3e4ef9..45a85277c2ea 100644

Lines of this file are not shown. View the raw message.

include/linux/workqueue.h +8 -7
index 1c527abb1ae5..f25f88823d9a 100644

Lines of this file are not shown. View the raw message.

include/net/ipv6.h +2 -6
index 7f7e90c1992f..f127b9a1a307 100644

Lines of this file are not shown. View the raw message.

include/net/netfilter/nf_tables.h +1 -0
index 0d625ff7841a..d5e933e6a611 100644

Lines of this file are not shown. View the raw message.

include/net/pkt_sched.h +1 -1
index 85e059d3bc23..7b6024f2d4ea 100644

Lines of this file are not shown. View the raw message.

include/net/sock.h +1 -0
index eccec5df94b9..def9dc1ddda1 100644

Lines of this file are not shown. View the raw message.

include/net/tcp.h +5 -1
index 4f97c0e2d5f3..b1a9e6b1a153 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/affs_hardblocks.h +34 -34

68 lines not on this page · raw message

include/uapi/linux/blkzoned.h +5 -5
index e3c70fe6bf0f..f5e619abcc9a 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/videodev2.h +1 -1
index b8fd2c303ed0..2ada2122d274 100644

Lines of this file are not shown. View the raw message.

kernel/async.c +2 -2
index 4bf1b00a28d8..e59bd2240cb8 100644

Lines of this file are not shown. View the raw message.

kernel/audit.c +1 -1
index 0ad61f5da661..b694a265533f 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/bpf_lru_list.c +13 -8
index 9b5eeff72fd3..39a0e768adc3 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/bpf_lru_list.h +2 -5
index 7d4f89b7cb84..08da78b59f0b 100644

Lines of this file are not shown. View the raw message.

kernel/events/core.c +7 -3
index 20ba0d90e8ae..6e15f3a9696a 100644

Lines of this file are not shown. View the raw message.

kernel/events/uprobes.c +1 -1
index f08ba79ee5d1..0559b36b06e1 100644

Lines of this file are not shown. View the raw message.

kernel/exit.c +1 -1
index c0ff4461643d..38dc916c94fa 100644

Lines of this file are not shown. View the raw message.

kernel/futex.c +6 -6
index e282c083df59..97bfa29f141a 100644

Lines of this file are not shown. View the raw message.

kernel/kexec_core.c +2 -3
index 27cf24e285e0..3d87dcbb9cbd 100644

Lines of this file are not shown. View the raw message.

kernel/locking/lockdep.c +3 -3
index ac0725b1ada7..cd93b15aa558 100644

Lines of this file are not shown. View the raw message.

kernel/sched/fair.c +1 -1
index 259996d2dcf7..9d1e7b0bf486 100644

Lines of this file are not shown. View the raw message.

kernel/time/posix-timers.c +18 -13
index 8b90abd69073..309c551ac18f 100644

Lines of this file are not shown. View the raw message.

kernel/trace/ring_buffer.c +28 -20

48 lines not on this page · raw message

kernel/trace/trace_events.c +4 -10
index 1285ef6e2d14..37be6913cfb2 100644

Lines of this file are not shown. View the raw message.

kernel/watchdog_hld.c +3 -3
index 4ece6028007a..4c2cd69013a6 100644

Lines of this file are not shown. View the raw message.

kernel/workqueue.c +8 -5
index cf5d8fd7472e..87eca8d1faad 100644

Lines of this file are not shown. View the raw message.

lib/debugobjects.c +9 -0
index bacb00a9cd9f..b6217c797554 100644

Lines of this file are not shown. View the raw message.

lib/radix-tree.c +1 -1
index ff00c816266b..b44ca1210109 100644

Lines of this file are not shown. View the raw message.

lib/test_firmware.c +10 -0
index 1c5e5246bf10..5318c5e18acf 100644

Lines of this file are not shown. View the raw message.

lib/ts_bm.c +3 -1
index 9e66ee4020e9..5de382e79a45 100644

Lines of this file are not shown. View the raw message.

mm/frontswap.c +1 -1
index fec8b5044040..c1759c7be972 100644

Lines of this file are not shown. View the raw message.

mm/ksm.c +1 -1
index 6d3bc2723c9b..d81c6b1986f9 100644

Lines of this file are not shown. View the raw message.

mm/memcontrol.c +1 -1
index 17bfdef686f4..22d13c98e274 100644

Lines of this file are not shown. View the raw message.

mm/mempolicy.c +2 -2
index 19552bcc592d..0411f0e25ce4 100644

Lines of this file are not shown. View the raw message.

mm/percpu.c +1 -1
index b24d6fe6bd5e..29c415d94e5d 100644

Lines of this file are not shown. View the raw message.

mm/slub.c +2 -2
index 1a0c92ee8b99..7b9b2906aa65 100644

Lines of this file are not shown. View the raw message.

mm/swap.c +2 -2
index a77d68f2c1b6..2c15b15ad71c 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/l2cap_sock.c +2 -0
index 47a16f6e741b..70b86ef50491 100644

Lines of this file are not shown. View the raw message.

net/bridge/br_if.c +3 -2
index c8bf044ab534..7229524b4448 100644

Lines of this file are not shown. View the raw message.

net/can/bcm.c +6 -6
index 32db244ba2c0..0a082726395a 100644

Lines of this file are not shown. View the raw message.

net/ceph/osd_client.c +14 -6
index b026128a89d7..7d7b128c01bd 100644

Lines of this file are not shown. View the raw message.

net/core/rtnetlink.c +4 -4
index 738514e5c8ba..a76f3024687f 100644

Lines of this file are not shown. View the raw message.

net/core/sock.c +17 -6
index b05296d79f62..0ff80718f194 100644

Lines of this file are not shown. View the raw message.

net/dccp/options.c +1 -1
index 51cdfc3bd8ca..e335cb4e3d79 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/nf_socket_ipv4.c +3 -3
index 4824b1e183a1..bff2b85c5fd6 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp.c +9 -8
index c93aa6542d43..0859f968c9b2 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_fastopen.c +4 -2
index 0567edb76522..0edd8d357e3d 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_input.c +9 -3
index 87095d5ecf95..444ad1728927 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp_metrics.c +44 -26

70 lines not on this page · raw message

net/ipv6/addrconf.c +11 -6
index 0d3e76b160a5..893b93cc5221 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_flowlabel.c +1 -1
index c7458a606e2e..82f2d3fcb246 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6mr.c +1 -1
index f8d60d511d3e..40dfb9bddb21 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/nf_socket_ipv6.c +1 -1
index 58e839e2ce1d..5e5463459563 100644

Lines of this file are not shown. View the raw message.

net/ipv6/udp.c +1 -1
index ea681360a522..3fee10cc5d5d 100644

Lines of this file are not shown. View the raw message.

net/llc/llc_input.c +0 -3
index dd3e83328ad5..d5c6fb41be92 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_ftp.c +1 -1
index c236c7d1655d..3e4e6aa53491 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_helper.c +4 -0
index a75b11c39312..93f7ddd6c74a 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_sip.c +1 -1
index 3b4c9407d6f2..13c58e2c25c2 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_tables_api.c +28 -4
index e091c552b0b9..68a13ab584ac 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nfnetlink_log.c +1 -1
index 0ccc7c851a78..40ba9c8e3c07 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nfnetlink_queue.c +2 -2
index 369f1634afe9..0c40438c5b6f 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nft_byteorder.c +7 -7
index 5e1fbdd7b284..dba16126c7ee 100644

Lines of this file are not shown. View the raw message.

net/netlink/af_netlink.c +3 -2
index 4b40edb51b9e..6aa984971577 100644

Lines of this file are not shown. View the raw message.

net/netlink/diag.c +4 -3
index 8faa20b4d457..8cbe6de1f075 100644

Lines of this file are not shown. View the raw message.

net/sched/act_pedit.c +1 -0
index fb0caa500ac8..d14c31129e08 100644

Lines of this file are not shown. View the raw message.

net/sched/cls_flow.c +1 -1
index 85f765cff697..0d364166ccc9 100644

Lines of this file are not shown. View the raw message.

net/sched/cls_fw.c +5 -5
index 7f45e5ab8afc..e63f9c2e37e5 100644

Lines of this file are not shown. View the raw message.

net/sched/cls_route.c +0 -1
index 7483d208c1f7..8ccb3cedce40 100644

Lines of this file are not shown. View the raw message.

net/sched/cls_u32.c +14 -8
index fdbdcba44917..8a2fc40ae840 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_cbq.c +1 -1
index 8b75a9572d1f..92ff508367e8 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_fq_codel.c +1 -1
index 4faa631139af..8715a043d423 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_qfq.c +6 -1
index 2832e16b6c2e..1a1366b037fb 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_sfq.c +1 -1
index 4a02dd26986e..1eefb3da8164 100644

Lines of this file are not shown. View the raw message.

net/sctp/socket.c +2 -2
index 8dd368168a84..9414dcb376d2 100644

Lines of this file are not shown. View the raw message.

net/sunrpc/svcsock.c +13 -14
index d6771f3b715b..1f717654b4cb 100644

Lines of this file are not shown. View the raw message.

net/unix/af_unix.c +1 -1
index 375d4e20efd6..c4ec2c2e4c86 100644

Lines of this file are not shown. View the raw message.

net/wireless/wext-core.c +6 -0
index b6414c7bef55..4bf33f9b2887 100644

Lines of this file are not shown. View the raw message.

scripts/mod/modpost.c +22 -4
index ed2b7a16554e..9e177b553112 100644

Lines of this file are not shown. View the raw message.

scripts/tags.sh +8 -1
index d23dcbf17457..086341e10aa8 100755

Lines of this file are not shown. View the raw message.

security/integrity/evm/evm_main.c +2 -0
index 6e761b07cb3f..9b7516661923 100644

Lines of this file are not shown. View the raw message.

security/integrity/iint.c +9 -6
index f4a40fb84b1e..e15cf861df7f 100644

Lines of this file are not shown. View the raw message.

sound/core/control_compat.c +1 -1
index 00d826b048c4..eb6735f16b93 100644

Lines of this file are not shown. View the raw message.

sound/isa/sb/sb16_csp.c +1 -1
index 00d059412c8a..8f3ff23a06a5 100644

Lines of this file are not shown. View the raw message.

sound/pci/ac97/ac97_codec.c +2 -2
index d5dfc7349e70..e37eab3ddc73 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/es8316.c +7 -2
index 0410f2e5183c..fad918c44ec9 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/wm8904.c +3 -0
index 4fd350e8420d..a1570881551e 100644

Lines of this file are not shown. View the raw message.

sound/soc/fsl/fsl_spdif.c +2 -0
index 7e6cc4da0088..b079754aed40 100644

Lines of this file are not shown. View the raw message.

sound/usb/endpoint.c +1 -1
index eefe3d1c0b93..370e8d17bfa5 100644

Lines of this file are not shown. View the raw message.

tools/perf/tests/shell/test_uprobe_from_different_cu.sh new file +83 -0

83 lines not on this page · raw message

tools/perf/util/dwarf-aux.c +1 -1
index 7514aa9c68c9..f95c3d43b5cb 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/intel-pt-decoder/intel-pt-decoder.c +2 -0
index e2a6c22959f2..aabd42378552 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.