Skip to contentSkip to conversation

Linux 4.18.10

DISCUSSION Greg KH 1 participant 2 messages Sep 26, 2018 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.18.10 kernel.

All users of the 4.18 kernel series must upgrade.

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

thanks,

greg k-h

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

 Makefile                                                      |   29 +-
 arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts      |    2 
 arch/arm/mach-exynos/suspend.c                                |    1 
 arch/arm/mach-hisi/hotplug.c                                  |   41 ++-
 arch/arm64/boot/dts/mediatek/mt7622.dtsi                      |    2 
 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi                     |    2 
 arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi              |    2 
 arch/arm64/kernel/perf_event.c                                |   50 ++--
 arch/arm64/kernel/ptrace.c                                    |   19 +
 arch/mips/ath79/setup.c                                       |    1 
 arch/mips/include/asm/mach-ath79/ath79.h                      |    1 
 arch/mips/jz4740/Platform                                     |    2 
 arch/mips/loongson64/common/cs5536/cs5536_ohci.c              |    2 
 arch/powerpc/kvm/book3s_64_vio.c                              |    5 
 arch/powerpc/kvm/book3s_hv.c                                  |    2 
 arch/powerpc/platforms/powernv/opal.c                         |    2 
 arch/s390/crypto/paes_s390.c                                  |    2 
 arch/x86/kernel/eisa.c                                        |   10 
 arch/x86/mm/pti.c                                             |   25 +-
 arch/xtensa/platforms/iss/setup.c                             |   25 +-
 block/blk-core.c                                              |    8 
 block/blk-mq-sched.c                                          |    3 
 block/blk-settings.c                                          |    2 
 crypto/api.c                                                  |    2 
 drivers/base/core.c                                           |    3 
 drivers/block/DAC960.c                                        |    9 
 drivers/char/ipmi/ipmi_bt_sm.c                                |   92 ++++----
 drivers/char/ipmi/ipmi_msghandler.c                           |   53 ++--
 drivers/char/ipmi/ipmi_si_intf.c                              |   17 -
 drivers/char/ipmi/ipmi_ssif.c                                 |   30 --
 drivers/clk/clk-fixed-factor.c                                |    9 
 drivers/clk/clk.c                                             |    3 
 drivers/clk/imx/clk-imx6sll.c                                 |    1 
 drivers/clk/imx/clk-imx6ul.c                                  |    1 
 drivers/clk/mvebu/armada-37xx-periph.c                        |    3 
 drivers/clk/tegra/clk-bpmp.c                                  |   12 -
 drivers/crypto/ccp/psp-dev.c                                  |   46 +++-
 drivers/crypto/sahara.c                                       |    4 
 drivers/devfreq/devfreq.c                                     |    4 
 drivers/dma/mv_xor_v2.c                                       |    2 
 drivers/dma/pl330.c                                           |    5 
 drivers/dma/sh/rcar-dmac.c                                    |    5 
 drivers/firmware/efi/arm-init.c                               |    1 
 drivers/firmware/efi/arm-runtime.c                            |    4 
 drivers/firmware/efi/esrt.c                                   |    3 
 drivers/gpio/gpio-pxa.c                                       |    2 
 drivers/gpio/gpiolib.h                                        |    2 
 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c                     |    9 
 drivers/gpu/drm/amd/amdkfd/kfd_process.c                      |    2 
 drivers/gpu/drm/amd/display/dc/core/dc_link.c                 |    4 
 drivers/gpu/drm/amd/powerplay/amd_powerplay.c                 |    9 
 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c              |    8 
 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c              |    6 
 drivers/gpu/drm/nouveau/nouveau_debugfs.c                     |    4 
 drivers/gpu/drm/nouveau/nouveau_drm.c                         |    6 
 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c            |   13 +
 drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c                 |    2 
 drivers/gpu/ipu-v3/ipu-csi.c                                  |   20 +
 drivers/hv/vmbus_drv.c                                        |    3 
 drivers/hwtracing/coresight/coresight-etm4x.c                 |   31 +-
 drivers/hwtracing/coresight/coresight-tpiu.c                  |    7 
 drivers/hwtracing/coresight/coresight.c                       |    7 
 drivers/i2c/busses/i2c-aspeed.c                               |    4 
 drivers/infiniband/core/cma.c                                 |   12 -
 drivers/infiniband/hw/mlx5/cong.c                             |    9 
 drivers/infiniband/hw/mlx5/mr.c                               |   32 --
 drivers/infiniband/sw/rxe/rxe_recv.c                          |    9 
 drivers/infiniband/ulp/ipoib/ipoib_cm.c                       |    2 
 drivers/infiniband/ulp/ipoib/ipoib_main.c                     |    3 
 drivers/input/joystick/pxrc.c                                 |   66 ++----
 drivers/input/touchscreen/rohm_bu21023.c                      |    4 
 drivers/iommu/arm-smmu-v3.c                                   |    1 
 drivers/iommu/io-pgtable-arm-v7s.c                            |    7 
 drivers/iommu/io-pgtable-arm.c                                |    3 
 drivers/iommu/ipmmu-vmsa.c                                    |    8 
 drivers/lightnvm/pblk-init.c                                  |    5 
 drivers/lightnvm/pblk-recovery.c                              |    5 
 drivers/md/dm-verity-target.c                                 |   24 +-
 drivers/media/common/videobuf2/videobuf2-core.c               |    5 
 drivers/media/i2c/ov5645.c                                    |   13 -
 drivers/media/pci/tw686x/tw686x-video.c                       |   11 -
 drivers/mfd/88pm860x-i2c.c                                    |    8 
 drivers/misc/hmc6352.c                                        |    2 
 drivers/misc/ibmvmc.c                                         |    2 
 drivers/misc/mei/bus-fixup.c                                  |    2 
 drivers/misc/mei/bus.c                                        |   12 -
 drivers/misc/mei/hbm.c                                        |    9 
 drivers/mmc/host/meson-mx-sdio.c                              |    8 
 drivers/mmc/host/omap_hsmmc.c                                 |    1 
 drivers/mmc/host/sdhci-of-esdhc.c                             |    6 
 drivers/mmc/host/sdhci-tegra.c                                |    3 
 drivers/mmc/host/sdhci.c                                      |    9 
 drivers/mtd/maps/solutionengine.c                             |    6 
 drivers/mtd/mtdchar.c                                         |   10 
 drivers/net/ethernet/amd/xgbe/xgbe-desc.c                     |    7 
 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c       |    3 
 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c       |    3 
 drivers/net/ethernet/cortina/gemini.c                         |    5 
 drivers/net/ethernet/emulex/benet/be_cmds.c                   |    2 
 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c               |    8 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c       |    5 
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c               |    6 
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c                 |    1 
 drivers/net/ethernet/mellanox/mlx5/core/dev.c                 |   15 -
 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c    |    1 
 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c             |   76 +++---
 drivers/net/ethernet/mellanox/mlx5/core/health.c              |   10 
 drivers/net/ethernet/mellanox/mlx5/core/main.c                |   12 -
 drivers/net/ethernet/mellanox/mlx5/core/wq.c                  |    4 
 drivers/net/ethernet/mellanox/mlx5/core/wq.h                  |    2 
 drivers/net/ethernet/netronome/nfp/nfp_main.c                 |   20 +
 drivers/net/ethernet/netronome/nfp/nfp_net_common.c           |   13 -
 drivers/net/ethernet/qualcomm/qca_7k.c                        |   76 +++---
 drivers/net/ethernet/qualcomm/qca_spi.c                       |  110 +++++-----
 drivers/net/ethernet/qualcomm/qca_spi.h                       |    5 
 drivers/net/wan/fsl_ucc_hdlc.c                                |    6 
 drivers/net/wireless/intel/iwlwifi/pcie/internal.h            |   12 -
 drivers/net/wireless/intel/iwlwifi/pcie/tx.c                  |   11 -
 drivers/net/xen-netfront.c                                    |   30 +-
 drivers/nvme/host/rdma.c                                      |    2 
 drivers/nvme/target/io-cmd-file.c                             |   18 -
 drivers/of/base.c                                             |   28 ++
 drivers/parport/parport_sunbpp.c                              |    8 
 drivers/pci/pcie/aer.c                                        |    6 
 drivers/pinctrl/mediatek/pinctrl-mt7622.c                     |    4 
 drivers/pinctrl/pinctrl-rza1.c                                |   24 +-
 drivers/pinctrl/qcom/pinctrl-msm.c                            |   14 +
 drivers/pinctrl/qcom/pinctrl-spmi-gpio.c                      |   32 ++
 drivers/platform/x86/toshiba_acpi.c                           |    3 
 drivers/regulator/qcom_spmi-regulator.c                       |   34 +--
 drivers/remoteproc/qcom_q6v5_pil.c                            |    1 
 drivers/reset/reset-imx7.c                                    |    2 
 drivers/rtc/rtc-bq4802.c                                      |    4 
 drivers/s390/net/qeth_core_main.c                             |    3 
 drivers/s390/net/qeth_core_sys.c                              |    1 
 drivers/scsi/libfc/fc_disc.c                                  |    7 
 drivers/scsi/lpfc/lpfc_nvme.c                                 |    5 
 drivers/scsi/lpfc/lpfc_nvmet.c                                |   12 +
 drivers/soc/qcom/smem.c                                       |   10 
 drivers/spi/spi-dw.c                                          |    3 
 drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c                |    2 
 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c   |   16 -
 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c |    7 
 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c     |   11 -
 drivers/tty/serial/8250/8250_of.c                             |    2 
 drivers/tty/tty_baudrate.c                                    |   13 -
 drivers/usb/class/cdc-acm.c                                   |   73 ------
 drivers/usb/class/cdc-acm.h                                   |    1 
 drivers/usb/class/cdc-wdm.c                                   |    2 
 drivers/usb/core/hcd-pci.c                                    |    2 
 drivers/usb/core/message.c                                    |   11 +
 drivers/usb/core/quirks.c                                     |    7 
 drivers/usb/dwc3/gadget.h                                     |    2 
 drivers/usb/gadget/udc/net2280.c                              |   16 +
 drivers/usb/gadget/udc/renesas_usb3.c                         |    5 
 drivers/usb/host/u132-hcd.c                                   |    2 
 drivers/usb/host/xhci-mem.c                                   |    4 
 drivers/usb/host/xhci.c                                       |   30 ++
 drivers/usb/misc/uss720.c                                     |    4 
 drivers/usb/misc/yurex.c                                      |    5 
 drivers/usb/mtu3/mtu3_core.c                                  |    6 
 drivers/usb/mtu3/mtu3_hw_regs.h                               |    1 
 drivers/usb/serial/io_ti.h                                    |    2 
 drivers/usb/serial/ti_usb_3410_5052.c                         |    2 
 drivers/usb/storage/scsiglue.c                                |    9 
 drivers/usb/storage/uas.c                                     |   21 +
 drivers/usb/storage/unusual_devs.h                            |    7 
 drivers/video/fbdev/core/modedb.c                             |   41 ++-
 drivers/video/fbdev/goldfishfb.c                              |    1 
 drivers/video/fbdev/omap/omapfb_main.c                        |    2 
 drivers/video/fbdev/omap2/omapfb/Makefile                     |    4 
 drivers/video/fbdev/pxafb.c                                   |    4 
 drivers/video/fbdev/via/viafbdev.c                            |    3 
 fs/binfmt_elf.c                                               |    2 
 fs/cifs/readdir.c                                             |   11 -
 fs/cifs/smb2pdu.c                                             |   29 +-
 fs/configfs/dir.c                                             |   11 +
 fs/f2fs/super.c                                               |   16 +
 fs/gfs2/bmap.c                                                |    2 
 fs/gfs2/rgrp.c                                                |    3 
 fs/namespace.c                                                |    7 
 fs/nfs/nfs4proc.c                                             |   10 
 fs/nfs/nfs4state.c                                            |    2 
 fs/nfs/nfs4trace.h                                            |    2 
 fs/overlayfs/super.c                                          |   26 +-
 fs/pstore/ram_core.c                                          |   17 +
 include/linux/crypto.h                                        |    5 
 include/linux/mlx5/driver.h                                   |    4 
 include/linux/of.h                                            |    8 
 kernel/audit_watch.c                                          |   12 +
 kernel/bpf/cgroup.c                                           |    7 
 kernel/events/core.c                                          |    4 
 kernel/rcu/rcutorture.c                                       |    5 
 kernel/sched/fair.c                                           |   10 
 kernel/sched/wait.c                                           |   47 +---
 net/bluetooth/af_bluetooth.c                                  |    2 
 net/core/skbuff.c                                             |    3 
 net/ipv4/ip_gre.c                                             |    5 
 net/ipv4/tcp.c                                                |    2 
 net/mac80211/cfg.c                                            |    2 
 net/mac80211/key.c                                            |   24 +-
 net/rds/bind.c                                                |    5 
 net/tipc/socket.c                                             |    1 
 net/tls/tls_sw.c                                              |   14 +
 net/xfrm/xfrm_policy.c                                        |    5 
 scripts/Kbuild.include                                        |    3 
 security/integrity/evm/evm_crypto.c                           |    3 
 security/security.c                                           |    2 
 security/smack/smack_lsm.c                                    |   14 -
 sound/core/pcm_lib.c                                          |   14 -
 sound/isa/msnd/msnd_pinnacle.c                                |    4 
 sound/soc/codecs/hdmi-codec.c                                 |   21 +
 sound/soc/codecs/rt5514.c                                     |    8 
 sound/soc/codecs/rt5651.c                                     |   22 +-
 sound/soc/qcom/qdsp6/q6afe-dai.c                              |    2 
 sound/usb/quirks-table.h                                      |    3 
 sound/usb/quirks.c                                            |    2 
 tools/hv/hv_kvp_daemon.c                                      |    2 
 tools/perf/arch/powerpc/util/skip-callchain-idx.c             |   10 
 tools/perf/tests/builtin-test.c                               |    2 
 tools/perf/tests/shell/record+probe_libc_inet_pton.sh         |   36 ++-
 tools/perf/util/comm.c                                        |   16 +
 tools/perf/util/header.c                                      |    2 
 tools/perf/util/machine.c                                     |    9 
 tools/perf/util/map.c                                         |   11 +
 tools/perf/util/unwind-libdw.c                                |    2 
 tools/perf/util/unwind-libunwind-local.c                      |    2 
 tools/testing/nvdimm/test/nfit.c                              |    3 
 tools/testing/selftests/android/ion/ionapp_export.c           |    1 
 tools/testing/selftests/timers/raw_skew.c                     |    5 
 tools/testing/selftests/vDSO/vdso_test.c                      |    7 
 virt/kvm/arm/vgic/vgic-init.c                                 |    4 
 virt/kvm/arm/vgic/vgic-mmio-v2.c                              |    3 
 233 files changed, 1562 insertions(+), 919 deletions(-)

Aaron Knister (1):
IB/ipoib: Avoid a race condition between start_xmit and cm_rep_handler

Adrian Hunter (1):
perf tools: Fix maps__find_symbol_by_name()

Alan Stern (1):
USB: net2280: Fix erroneous synchronization change

Alexander Sverdlin (1):
serial: 8250: of: Correct of_platform_serial_setup() error handling

Alexander Usyskin (1):
mei: ignore not found client in the enumeration

Alexandre Belloni (1):
spi: dw: fix possible race condition

Alexandru Gagniuc (1):
PCI/AER: Honor "pcie_ports=native" even if HEST sets FIRMWARE_FIRST

Alexey Kardashevskiy (1):
KVM: PPC: Book3S: Fix matching of hardware and emulated TCE tables

Andrea Parri (1):
sched/core: Use smp_mb() in wake_woken_function()

Andreas Gruenbacher (1):
gfs2: Special-case rindex for gfs2_grow

Andreas Kemnade (1):
mmc: omap_hsmmc: fix wakeirq handling on removal

Andy Shevchenko (1):
gpiolib: Mark gpio_suffixes array with __maybe_unused

Anton Vasilyev (1):
video: goldfishfb: fix memory leak on driver remove

Ard Biesheuvel (2):
efi/arm: preserve early mapping of UEFI memory map longer for BGRT efi/esrt: Only call efi_mem_reserve() for boot services memory

Arnd Bergmann (2):
omapfb: rename omap2 module to omap2fb.ko
rcutorture: Use monotonic timestamp for stall detection

Arvind Yadav (1):
PM / devfreq: use put_device() instead of kfree()

Ben Hutchings (1):
USB: yurex: Fix buffer over-read in yurex_write()

Bhushan Shah (1):
ARM: dts: qcom: msm8974-hammerhead: increase load on l20 for sdhci

Bin Yang (1):
pstore: Fix incorrect persistent ram buffer mapping

Bjorn Andersson (1):
soc: qcom: smem: Correct check for global partition

Bob Peterson (1):
gfs2: Don't reject a supposedly full bitmap if we have blocks reserved

Boris Ostrovsky (1):
x86/EISA: Don't probe EISA bus for Xen PV guests

Boris Pismenny (1):
tls: Fix zerocopy_from_iter iov handling

Brijesh Singh (1):
crypto: ccp - add timeout support in the SEV command

Bryant G. Ly (1):
misc: ibmvsm: Fix wrong assignment of return code

Christoffer Dall (1):
KVM: arm/arm64: Fix vgic init race

Chunfeng Yun (2):
usb: xhci: fix interrupt transfer error happened on MTK platforms
usb: mtu3: fix error of xhci port id when enable U3 dual role

Cong Wang (2):
rds: fix two RCU related problems
tipc: orphan sock in tipc_release()

Corey Minyard (3):
ipmi: Rework SMI registration failure
ipmi: Move BT capabilities detection to the detect call
ipmi: Fix I2C client removal in the SSIF driver

Dan Carpenter (7):
fbdev: omapfb: off by one in omapfb_register_client()
cifs: prevent integer overflow in nxt_dir_entry()
CIFS: fix wrapping bugs in num_entries()
cifs: integer overflow in in SMB2_ioctl()
ASoC: qdsp6: q6afe-dai: fix a range check in of_q6afe_parse_dai_data() drm/panel: type promotion bug in s6e8aa0_read_mtp_id()
mei: bus: type promotion bug in mei_nfc_if_version()

Dan Williams (1):
tools/testing/nvdimm: Fix support for emulating controller temperature

Daniel Mack (1):
video: fbdev: pxafb: clear allocated memory for video modes

Dmitry Torokhov (1):
Input: pxrc - fix freeing URB on device teardown

Douglas Anderson (2):
pinctrl: msm: Fix msm_config_group_get() to be compliant
pinctrl: qcom: spmi-gpio: Fix pmic_gpio_config_get() to be compliant

Enrico Scholz (1):
gpu: ipu-v3: csi: pass back mbus_code_to_bus_cfg error codes

Eric Biggers (1):
security: check for kstrdup() failure in lsm_append()

Eric Yang (1):
drm/amd/display: support access ddc for mst branch

Erich E. Hoover (1):
usb: dwc3: change stream event enable bit back to 13

Felix Fietkau (1):
MIPS: ath79: fix system restart

Fredrik Noring (1):
fbdev: Distinguish between interlaced and progressive modes

Golan Ben Ami (1):
iwlwifi: cancel the injective function between hw pointers to tfd entry index

Greg Kroah-Hartman (1):

      Linux 4.18.10

Gregory CLEMENT (1):
clk: mvebu: armada-37xx-periph: Fix wrong return value in get_parent

Gustavo A. R. Silva (1):
misc: hmc6352: fix potential Spectre v1

Haishuang Yan (2):
erspan: fix error handling for erspan tunnel
erspan: return PACKET_REJECT when the appropriate tunnel is not found

Hanna Hawa (1):
dmaengine: mv_xor_v2: kill the tasklets upon exit

Hannes Reinecke (1):
scsi: libfc: fixup 'sleeping function called from invalid context'

Hans Holmberg (1):
lightnvm: pblk: assume that chunks are closed on 1.2 devices

Hans Verkuil (1):

      media: videobuf2-core: check for q->error in vb2_core_qbuf()

Hans de Goede (1):
ASoC: rt5651: Fix workqueue cancel vs irq free race on remove

Harry Wentland (1):
drm/amd/pp: Send khz clock values to DC for smu7/8

Huazhong Tan (2):
net: hns3: Reset net device with rtnl_lock
net: hns3: Fix return value error in hns3_reset_notify_down_enet

Huy Nguyen (1):
net/mlx5: Check for error in mlx5_attach_interface

Ingo Franzki (1):
s390/crypto: Fix return code checking in cbc_paes_crypt()

Ioana Radulescu (1):
staging: fsl-dpaa2/eth: Fix DMA mapping direction

Jack Morgenstein (2):
net/mlx5: Fix use-after-free in self-healing flow net/mlx5: Fix debugfs cleanup in the device init/remove flow

Jae Hyun Yoo (1):
i2c: aspeed: Fix initial values of master and slave state

Jaegeuk Kim (1):
f2fs: do checkpoint in kill_sb

Jakub Kicinski (2):
nfp: don't fail probe on pci_sriov_set_totalvfs() errors
nfp: avoid buffer leak when FW communication fails

James Smart (2):
scsi: lpfc: Fix NVME Target crash in defer rcv logic
scsi: lpfc: Fix panic if driver unloaded when port is offline

Jann Horn (2):
mtdchar: fix overflows in adjustment of count IB/mlx5: fix uaccess beyond "count" in debugfs read/write handlers

Jean-Philippe Brucker (2):
iommu/io-pgtable-arm-v7s: Abort allocation when table address overflows the PTE iommu/io-pgtable-arm: Fix pgtable allocation in selftest

Jeff Crukley (1):
ALSA: usb-audio: Add support for Encore mDSD USB DAC

Jia-Ju Bai (3):
usb: host: u132-hcd: Fix a sleep-in-atomic-context bug in u132_get_frame()
usb: misc: uss720: Fix two sleep-in-atomic-context bugs
usb: cdc-wdm: Fix a sleep-in-atomic-context bug in service_outstanding_interrupt()

Jiang Biao (2):
x86/pti: Check the return value of pti_user_pagetable_walk_p4d() x86/pti: Check the return value of pti_user_pagetable_walk_pmd()

Jiri Olsa (2):
perf tools: Synthesize GROUP_DESC feature in pipe mode perf tools: Fix struct comm_str removal crash

Joerg Roedel (1):
x86/mm/pti: Add an overflow check to pti_clone_pmds()

Johan Hovold (6):
USB: serial: io_ti: fix array underflow in completion handler
USB: serial: ti_usb_3410_5052: fix array underflow in completion handler
of: add helper to lookup compatible child node
mmc: meson-mx-sdio: fix OF child-node lookup
tty: fix termios input-speed encoding when using BOTHER
tty: fix termios input-speed encoding

John Keeping (1):
dmaengine: pl330: fix irq race with terminate_all

John Stultz (1):
selftest: timers: Tweak raw_skew to SKIP when ADJ_OFFSET/other clock adjustments are in progress

Juergen Gross (1):
xen/netfront: fix waiting for xenbus state change

Julia Lawall (1):
parport: sunbpp: fix error return code

Julian Wiedmann (2):
s390/qeth: fix race in used-buffer accounting s390/qeth: reset layer2 attribute on layer switch

K. Y. Srinivasan (1):
Tools: hv: Fix a bug in the key delete code

Karol Herbst (1):
drm/nouveau/debugfs: Wake up GPU before doing any reclocking

Krzysztof Ha?asa (1):
media: tw686x: Fix oops on buffer alloc failure

Krzysztof Kozlowski (1):
ARM: exynos: Clear global variable on init error path

Laurentiu Tudor (1):
mmc: sdhci-of-esdhc: set proper dma mask for ls104x chips

Leonard Crestez (1):
reset: imx7: Fix always writing bits as 0

Li Zhijian (1):
selftests/android: initialize heap_type to avoid compiling warning

Linus Walleij (1):
net: gemini: Allow multiple ports to instantiate

Loic Poulain (1):
arm64: dts: qcom: db410c: Fix Bluetooth LED trigger

Lyude Paul (1):
drm/nouveau: Fix runtime PM leak in drm_open()

Maciej W. Rozycki (1):

      binfmt_elf: Respect error return from `regset->active'

Manikanta Pubbisetty (1):
mac80211: restrict delayed tailroom needed decrement

Mark Rutland (2):
KVM: arm/arm64: vgic: Fix possible spectre-v1 write in vgic_mmio_write_apr()
arm64: fix possible spectre-v1 write in ptrace_hbp_set_event()

Masahiro Yamada (2):
kbuild: add .DELETE_ON_ERROR special target
kbuild: do not update config when running install targets

Mathias Nyman (3):
xhci: Fix use after free for URB cancellation on a reallocated endpoint
usb: Don't die twice if PCI xhci host is not responding in resume
usb: Avoid use-after-free by flushing endpoints early in usb_set_interface()

Matias Bjørling (1):
lightnvm: pblk: enable line minor version detection

Matthew Garrett (1):
evm: Don't deadlock if a crypto algorithm is unavailable

Max Filippov (1):
xtensa: ISS: don't allocate memory in platform_setup

Maxence Duprès (1):
USB: add quirk for WORLDE Controller KS49 or Prodipe MIDI 49C USB controller

Maxime Chevallier (1):
net: mvpp2: make sure we use single queue mode on PPv2.1

Miao Zhong (1):
iommu/arm-smmu-v3: sync the OVACKFLG to PRIQ consumer register

Michael Müller (1):
crypto: sharah - Unregister correct algorithms for SAHARA 3

Mike Christie (1):
configfs: fix registered group removal

Mike Snitzer (1):
block: allow max_discard_segments to be stacked

Mikko Perttunen (2):
clk: core: Potentially free connection id
clk: tegra: bpmp: Don't crash when a clock fails to register

Miklos Szeredi (2):
ovl: fix oopses in ovl_fill_super() failure paths
vfs: fix freeze protection in mnt_want_write_file() for overlayfs

Mikulas Patocka (1):
dm verity: fix crash on bufio buffer that was allocated with vmalloc

Ming Lei (2):
blk-mq: only attempt to merge bio if there is rq in sw queue
blk-mq: avoid to synchronize rcu inside blk_cleanup_queue()

Nicholas Mc Guire (8):
clk: imx6ul: fix missing of_node_put()
clk: imx6sll: fix missing of_node_put()
staging: bcm2835-camera: fix timeout handling in wait_for_completion_timeout
staging: bcm2835-camera: handle wait_for_completion_timeout return properly
KVM: PPC: Book3S HV: Add of_node_put() in success path
ARM: hisi: handle of_iomap and fix missing of_node_put
ARM: hisi: fix error handling and missing of_node_put
ARM: hisi: check of_iomap and fix missing of_node_put

Nicholas Piggin (1):
powerpc/powernv: opal_put_chars partial write fix

Niklas Cassel (2):
regulator: qcom_spmi: Use correct regmap when checking for error
regulator: qcom_spmi: Fix warning Bad of_node_put()

Noa Osherovich (1):
net/mlx5: Add missing SET_DRIVER_VERSION command translation

Oder Chiou (1):
ASoC: rt5514: Fix the issue of the delay volume applied

Oliver Neukum (2):
usb: uas: add support for more quirk flags Revert "cdc-acm: implement put_char() and flush_chars()"

Parav Pandit (1):
RDMA/cma: Protect cma dev list with lock

Paul Burton (1):
MIPS: loongson64: cs5536: Fix PCI_OHCI_INT_REG reads

Paul Cercueil (1):
MIPS: jz4740: Bump zload address

Peter Rosin (2):

      mfd: 88pm860x-i2c: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT)
      input: rohm_bu21023: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT)

Petr Oros (1):
be2net: Fix memory leak in be_cmd_get_profile_config()

Philipp Puschmann (1):
Bluetooth: Use lock_sock_nested in bt_accept_enqueue

Pingfan Liu (1):
drivers/base: stop new probing during shutdown

Piotr Sawicki (1):
Smack: Fix handling of IPv4 traffic received by PF_INET6 sockets

Quentin Perret (1):
sched/fair: Fix util_avg of new tasks for asymmetric systems

Raed Salem (1):
net/mlx5: E-Switch, Fix memory leak when creating switchdev mode FDB tables

Rajan Vaja (1):
clk: clk-fixed-factor: Clear OF_POPULATED flag in case of failure

Randy Dunlap (4):
mtd/maps: fix solutionengine.c printk format warnings fbdev/via: fix defined but not used warning platform/x86: toshiba_acpi: Fix defined but not used build warnings block/DAC960.c: fix defined but not used build warnings

Rex Zhu (1):
drm/amd/pp: Set Max clock level to display by default

Rick Farrington (1):
liquidio: fix hang when re-binding VF host drv after running DPDK VF driver

Rob Herring (1):
of: fix phandle cache creation for DTs with no phandles

Robin Murphy (1):
coresight: tpiu: Fix disabling timeouts

Roi Dayan (2):
net/mlx5: Fix not releasing read lock when adding flow rules net/mlx5: Fix possible deadlock from lockdep when adding fte to fg

Roman Gushchin (1):
bpf: fix rcu annotations in compute_effective_progs()

Ronny Chevalier (1):
audit: fix use-after-free in audit_add_watch

Russell King (1):
ASoC: hdmi-codec: fix routing

Ryder Lee (1):
arm64: dts: mt7622: update a clock property for UART0

Sagi Grimberg (2):
nvmet: fix file discard return status
nvme-rdma: unquiesce queues when deleting the controller

Sandipan Das (6):
perf tests: Fix record+probe_libc_inet_pton.sh for powerpc64 perf tests: Fix record+probe_libc_inet_pton.sh when event exists perf tests: Fix record+probe_libc_inet_pton.sh to ensure cleanups perf powerpc: Fix callchain ip filtering when return address is in a register perf powerpc: Fix callchain ip filtering
perf script: Show correct offsets for DWARF-based unwinding

Sean Wang (1):
pinctrl: mt7622: Fix probe fail by misuse the selector

Shaoyun Liu (1):
drm/amdkfd: Fix kernel queue 64 bit doorbell offset calculation

Shuah Khan (Samsung OSG) (1):
selftests: vDSO - fix to return KSFT_SKIP when test couldn't be run

Sibi Sankar (1):
remoteproc: qcom: q6v5-pil: fix modem hang on SDM845 after axis2 clk unvote

Stefan Agner (2):
mmc: tegra: prevent HS200 on Tegra 3
mmc: sdhci: do not try to use 3.3V signaling if not supported

Stefan Wahren (1):
net: qca_spi: Fix race condition in spi transfers

Stephen Hemminger (1):
vmbus: don't return values for uninitalized channels

Suzuki K Poulose (3):
coresight: Handle errors in finding input/output ports
coresight: ETM: Add support for Arm Cortex-A73 and Cortex-A35
arm64: perf: Disable PMU while processing counter overflows

Takashi Iwai (2):
ALSA: msnd: Fix the default sample sizes
ALSA: usb-audio: Fix multiple definitions in AU0828_DEVICE() macro

Tariq Toukan (1):
net/mlx5: Use u16 for Work Queue buffer fragment size

Thierry Reding (1):
drm/nouveau: tegra: Detach from ARM DMA/IOMMU mapping

Thomas Richter (1):
perf test: Fix subtest number when showing results

Tim Anderson (1):
USB: Add quirk to support DJI CineSSD

Timo Wischer (1):
ALSA: pcm: Fix snd_interval_refine first/last with open min/max

Todor Tomov (1):
media: ov5645: Supported external clock is 24MHz

Tomas Winkler (2):
mei: bus: fix hw module get/put balance
mei: bus: need to unlink client before freeing

Tony Lindgren (1):
pinctrl: rza1: Fix selector use for groups and functions

Trond Myklebust (2):
NFSv4: Fix a tracepoint Oops in initiate_file_draining() NFSv4.1 fix infinite loop on I/O.

Tuomas Tynkkynen (1):
staging: bcm2835-audio: Don't leak workqueue if open fails

Vakul Garg (1):
net/tls: Set count of SG entries if sk_alloc_sg returns -ENOSPC

Vincent Whitchurch (1):
tcp: really ignore MSG_ZEROCOPY if no SO_ZEROCOPY

Viresh Kumar (1):
arm64: dts: uniphier: Add missing cooling device properties for CPUs

Vitaly Kuznetsov (1):
xen-netfront: fix queue name setting

Wei Lu (1):
drm/amdkfd: Fix error codes in kfd_get_process

Wei Yongjun (2):
IB/ipoib: Fix error return code in ipoib_dev_init()
gpio: pxa: Fix potential NULL dereference

Xiao Liang (1):
xen-netfront: fix warn message as irq device name has '/'

Yabin Cui (1):
perf/core: Force USER_DS when recording user stack data

Yoshihiro Shimoda (3):
iommu/ipmmu-vmsa: IMUCTRn.TTSEL needs a special usage on R-Car Gen3
usb: gadget: udc: renesas_usb3: fix maxpacket size of ep0
dmaengine: sh: rcar-dmac: avoid to write CHCR.TE to 1 if TCR is set to 0

Yue Wang (1):
ALSA: usb-audio: Generic DSD detection for Thesycon-based implementations

YueHaibing (3):
xfrm: fix 'passing zero to ERR_PTR()' warning
amd-xgbe: use dma_mapping_error to check map errors wan/fsl_ucc_hdlc: use IS_ERR_VALUE() to check return value of qe_muram_alloc

Yunsheng Lin (1):
net: hns3: Fix for reset_level default assignment probelm

Zhouyang Jia (1):
rtc: bq4802: add error handling for devm_ioremap

Zhu Yanjun (1):
IB/rxe: Drop QP0 silently

author maintainer
#1 lore raw
Makefile +21 -8
index 1178348fb9ca..ffab15235ff0 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 18
-SUBLEVEL = 9
+SUBLEVEL = 10
 EXTRAVERSION =
 NAME = Merciless Moray
 
@@ -225,10 +225,12 @@ no-dot-config-targets := $(clean-targets) \
 			 cscope gtags TAGS tags help% %docs check% coccicheck \
 			 $(version_h) headers_% archheaders archscripts \
 			 kernelversion %src-pkg
+no-sync-config-targets := $(no-dot-config-targets) install %install
 
-config-targets := 0
-mixed-targets  := 0
-dot-config     := 1
+config-targets  := 0
+mixed-targets   := 0
+dot-config      := 1
+may-sync-config := 1
 
 ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),)
 	ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),)
@@ -236,6 +238,16 @@ ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),)
 	endif
 endif
 
+ifneq ($(filter $(no-sync-config-targets), $(MAKECMDGOALS)),)
+	ifeq ($(filter-out $(no-sync-config-targets), $(MAKECMDGOALS)),)
+		may-sync-config := 0
+	endif
+endif
+
+ifneq ($(KBUILD_EXTMOD),)
+	may-sync-config := 0
+endif
+
 ifeq ($(KBUILD_EXTMOD),)
         ifneq ($(filter config %config,$(MAKECMDGOALS)),)
                 config-targets := 1
@@ -610,7 +622,7 @@ ARCH_CFLAGS :=
 include arch/$(SRCARCH)/Makefile
 
 ifeq ($(dot-config),1)
-ifeq ($(KBUILD_EXTMOD),)
+ifeq ($(may-sync-config),1)
 # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
 # changes are detected. This should be included after arch/$(SRCARCH)/Makefile
 # because some architectures define CROSS_COMPILE there.
@@ -625,8 +637,9 @@ $(KCONFIG_CONFIG) include/config/auto.conf.cmd: ;
 include/config/%.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd
 	$(Q)$(MAKE) -f $(srctree)/Makefile syncconfig
 else
-# external modules needs include/generated/autoconf.h and include/config/auto.conf
-# but do not care if they are up-to-date. Use auto.conf to trigger the test
+# External modules and some install targets need include/generated/autoconf.h
+# and include/config/auto.conf but do not care if they are up-to-date.
+# Use auto.conf to trigger the test
 PHONY += include/config/auto.conf
 
 include/config/auto.conf:
@@ -638,7 +651,7 @@ include/config/auto.conf:
 	echo >&2 ;							\
 	/bin/false)
 
-endif # KBUILD_EXTMOD
+endif # may-sync-config
 
 else
 # Dummy target needed, because used as prerequisite
arch/arm/boot/dts/qcom-msm8974-lge-nexus5-hammerhead.dts +2 -0
index 4dc0b347b1ee..c2dc9d09484a 100644
@@ -189,6 +189,8 @@
 						regulator-max-microvolt = <2950000>;
 
 						regulator-boot-on;
+						regulator-system-load = <200000>;
+						regulator-allow-set-load;
 					};
 
 					l21 {
arch/arm/mach-exynos/suspend.c +1 -0
index d3db306a5a70..941b0ffd9806 100644
@@ -203,6 +203,7 @@ static int __init exynos_pmu_irq_init(struct device_node *node,
 					  NULL);
 	if (!domain) {
 		iounmap(pmu_base_addr);
+		pmu_base_addr = NULL;
 		return -ENOMEM;
 	}
 
arch/arm/mach-hisi/hotplug.c +26 -15

60 lines not on this page · raw message

arch/arm64/boot/dts/mediatek/mt7622.dtsi +1 -1
index 9213c966c224..ec7ea8dca777 100644
@@ -331,7 +331,7 @@
 		reg = <0 0x11002000 0 0x400>;
 		interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
 		clocks = <&topckgen CLK_TOP_UART_SEL>,
-			 <&pericfg CLK_PERI_UART1_PD>;
+			 <&pericfg CLK_PERI_UART0_PD>;
 		clock-names = "baud", "bus";
 		status = "disabled";
 	};
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +1 -1
index 9ff848792712..78ce3979ef09 100644
@@ -338,7 +338,7 @@
 			led@6 {
 				label = "apq8016-sbc:blue:bt";
 				gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
-				linux,default-trigger = "bt";
+				linux,default-trigger = "bluetooth-power";
 				default-state = "off";
 			};
 		};
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +2 -0
index 0298bd0d0e1a..caf112629caa 100644
@@ -58,6 +58,7 @@
 			clocks = <&sys_clk 32>;
 			enable-method = "psci";
 			operating-points-v2 = <&cluster0_opp>;
+			#cooling-cells = <2>;
 		};
 
 		cpu2: cpu@100 {
@@ -77,6 +78,7 @@
 			clocks = <&sys_clk 33>;
 			enable-method = "psci";
 			operating-points-v2 = <&cluster1_opp>;
+			#cooling-cells = <2>;
 		};
 	};
 
arch/arm64/kernel/perf_event.c +28 -22

74 lines not on this page · raw message

arch/arm64/kernel/ptrace.c +11 -8
index 5c338ce5a7fa..db5440339ab3 100644
@@ -277,19 +277,22 @@ static int ptrace_hbp_set_event(unsigned int note_type,
 
 	switch (note_type) {
 	case NT_ARM_HW_BREAK:
-		if (idx < ARM_MAX_BRP) {
-			tsk->thread.debug.hbp_break[idx] = bp;
-			err = 0;
-		}
+		if (idx >= ARM_MAX_BRP)
+			goto out;
+		idx = array_index_nospec(idx, ARM_MAX_BRP);
+		tsk->thread.debug.hbp_break[idx] = bp;
+		err = 0;
 		break;
 	case NT_ARM_HW_WATCH:
-		if (idx < ARM_MAX_WRP) {
-			tsk->thread.debug.hbp_watch[idx] = bp;
-			err = 0;
-		}
+		if (idx >= ARM_MAX_WRP)
+			goto out;
+		idx = array_index_nospec(idx, ARM_MAX_WRP);
+		tsk->thread.debug.hbp_watch[idx] = bp;
+		err = 0;
 		break;
 	}
 
+out:
 	return err;
 }
 
arch/mips/ath79/setup.c +1 -0
index f206dafbb0a3..26a058d58d37 100644
@@ -40,6 +40,7 @@ static char ath79_sys_type[ATH79_SYS_TYPE_LEN];
 
 static void ath79_restart(char *command)
 {
+	local_irq_disable();
 	ath79_device_reset_set(AR71XX_RESET_FULL_CHIP);
 	for (;;)
 		if (cpu_wait)
arch/mips/include/asm/mach-ath79/ath79.h +1 -0
index 441faa92c3cd..6e6c0fead776 100644
@@ -134,6 +134,7 @@ static inline u32 ath79_pll_rr(unsigned reg)
 static inline void ath79_reset_wr(unsigned reg, u32 val)
 {
 	__raw_writel(val, ath79_reset_base + reg);
+	(void) __raw_readl(ath79_reset_base + reg); /* flush */
 }
 
 static inline u32 ath79_reset_rr(unsigned reg)
arch/mips/jz4740/Platform +1 -1
index 28448d358c10..a2a5a85ea1f9 100644
@@ -1,4 +1,4 @@
 platform-$(CONFIG_MACH_INGENIC)	+= jz4740/
 cflags-$(CONFIG_MACH_INGENIC)	+= -I$(srctree)/arch/mips/include/asm/mach-jz4740
 load-$(CONFIG_MACH_INGENIC)	+= 0xffffffff80010000
-zload-$(CONFIG_MACH_INGENIC)	+= 0xffffffff80600000
+zload-$(CONFIG_MACH_INGENIC)	+= 0xffffffff81000000
arch/mips/loongson64/common/cs5536/cs5536_ohci.c +1 -1
index f7c905e50dc4..92dc6bafc127 100644
@@ -138,7 +138,7 @@ u32 pci_ohci_read_reg(int reg)
 		break;
 	case PCI_OHCI_INT_REG:
 		_rdmsr(DIVIL_MSR_REG(PIC_YSEL_LOW), &hi, &lo);
-		if ((lo & 0x00000f00) == CS5536_USB_INTR)
+		if (((lo >> PIC_YSEL_LOW_USB_SHIFT) & 0xf) == CS5536_USB_INTR)
 			conf_data = 1;
 		break;
 	default:
arch/powerpc/kvm/book3s_64_vio.c +2 -3
index 8c456fa691a5..8167ce8e0cdd 100644
@@ -180,7 +180,7 @@ extern long kvm_spapr_tce_attach_iommu_group(struct kvm *kvm, int tablefd,
 		if ((tbltmp->it_page_shift <= stt->page_shift) &&
 				(tbltmp->it_offset << tbltmp->it_page_shift ==
 				 stt->offset << stt->page_shift) &&
-				(tbltmp->it_size << tbltmp->it_page_shift ==
+				(tbltmp->it_size << tbltmp->it_page_shift >=
 				 stt->size << stt->page_shift)) {
 			/*
 			 * Reference the table to avoid races with
@@ -296,7 +296,7 @@ long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
 {
 	struct kvmppc_spapr_tce_table *stt = NULL;
 	struct kvmppc_spapr_tce_table *siter;
-	unsigned long npages, size;
+	unsigned long npages, size = args->size;
 	int ret = -ENOMEM;
 	int i;
 
@@ -304,7 +304,6 @@ long kvm_vm_ioctl_create_spapr_tce(struct kvm *kvm,
 		(args->offset + args->size > (ULLONG_MAX >> args->page_shift)))
 		return -EINVAL;
 
-	size = _ALIGN_UP(args->size, PAGE_SIZE >> 3);
 	npages = kvmppc_tce_pages(size);
 	ret = kvmppc_account_memlimit(kvmppc_stt_pages(npages), true);
 	if (ret)
arch/powerpc/kvm/book3s_hv.c +2 -0
index a995513573c2..2ebd5132a29f 100644
@@ -4562,6 +4562,8 @@ static int kvmppc_book3s_init_hv(void)
 			pr_err("KVM-HV: Cannot determine method for accessing XICS\n");
 			return -ENODEV;
 		}
+		/* presence of intc confirmed - node can be dropped again */
+		of_node_put(np);
 	}
 #endif
 
arch/powerpc/platforms/powernv/opal.c +1 -1
index 0d539c661748..371e33ecc547 100644
@@ -388,7 +388,7 @@ int opal_put_chars(uint32_t vtermno, const char *data, int total_len)
 		/* Closed or other error drop */
 		if (rc != OPAL_SUCCESS && rc != OPAL_BUSY &&
 		    rc != OPAL_BUSY_EVENT) {
-			written = total_len;
+			written += total_len;
 			break;
 		}
 		if (rc == OPAL_SUCCESS) {
arch/s390/crypto/paes_s390.c +1 -1
index 80b27294c1de..ab9a0ebecc19 100644
@@ -208,7 +208,7 @@ static int cbc_paes_crypt(struct blkcipher_desc *desc, unsigned long modifier,
 			      walk->dst.virt.addr, walk->src.virt.addr, n);
 		if (k)
 			ret = blkcipher_walk_done(desc, walk, nbytes - k);
-		if (n < k) {
+		if (k < n) {
 			if (__cbc_paes_set_key(ctx) != 0)
 				return blkcipher_walk_done(desc, walk, -EIO);
 			memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE);
arch/x86/kernel/eisa.c +8 -2
index f260e452e4f8..e8c8c5d78dbd 100644
@@ -7,11 +7,17 @@
 #include <linux/eisa.h>
 #include <linux/io.h>
 
+#include <xen/xen.h>
+
 static __init int eisa_bus_probe(void)
 {
-	void __iomem *p = ioremap(0x0FFFD9, 4);
+	void __iomem *p;
+
+	if (xen_pv_domain() && !xen_initial_domain())
+		return 0;
 
-	if (readl(p) == 'E' + ('I'<<8) + ('S'<<16) + ('A'<<24))
+	p = ioremap(0x0FFFD9, 4);
+	if (p && readl(p) == 'E' + ('I' << 8) + ('S' << 16) + ('A' << 24))
 		EISA_bus = 1;
 	iounmap(p);
 	return 0;
arch/x86/mm/pti.c +20 -5
index 946455e9cfef..1d2106d83b4e 100644
@@ -177,7 +177,7 @@ static p4d_t *pti_user_pagetable_walk_p4d(unsigned long address)
 
 	if (pgd_none(*pgd)) {
 		unsigned long new_p4d_page = __get_free_page(gfp);
-		if (!new_p4d_page)
+		if (WARN_ON_ONCE(!new_p4d_page))
 			return NULL;
 
 		set_pgd(pgd, __pgd(_KERNPG_TABLE | __pa(new_p4d_page)));
@@ -196,13 +196,17 @@ static p4d_t *pti_user_pagetable_walk_p4d(unsigned long address)
 static pmd_t *pti_user_pagetable_walk_pmd(unsigned long address)
 {
 	gfp_t gfp = (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO);
-	p4d_t *p4d = pti_user_pagetable_walk_p4d(address);
+	p4d_t *p4d;
 	pud_t *pud;
 
+	p4d = pti_user_pagetable_walk_p4d(address);
+	if (!p4d)
+		return NULL;
+
 	BUILD_BUG_ON(p4d_large(*p4d) != 0);
 	if (p4d_none(*p4d)) {
 		unsigned long new_pud_page = __get_free_page(gfp);
-		if (!new_pud_page)
+		if (WARN_ON_ONCE(!new_pud_page))
 			return NULL;
 
 		set_p4d(p4d, __p4d(_KERNPG_TABLE | __pa(new_pud_page)));
@@ -216,7 +220,7 @@ static pmd_t *pti_user_pagetable_walk_pmd(unsigned long address)
 	}
 	if (pud_none(*pud)) {
 		unsigned long new_pmd_page = __get_free_page(gfp);
-		if (!new_pmd_page)
+		if (WARN_ON_ONCE(!new_pmd_page))
 			return NULL;
 
 		set_pud(pud, __pud(_KERNPG_TABLE | __pa(new_pmd_page)));
@@ -238,9 +242,13 @@ static pmd_t *pti_user_pagetable_walk_pmd(unsigned long address)
 static __init pte_t *pti_user_pagetable_walk_pte(unsigned long address)
 {
 	gfp_t gfp = (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO);
-	pmd_t *pmd = pti_user_pagetable_walk_pmd(address);
+	pmd_t *pmd;
 	pte_t *pte;
 
+	pmd = pti_user_pagetable_walk_pmd(address);
+	if (!pmd)
+		return NULL;
+
 	/* We can't do anything sensible if we hit a large mapping. */
 	if (pmd_large(*pmd)) {
 		WARN_ON(1);
@@ -298,6 +306,10 @@ pti_clone_pmds(unsigned long start, unsigned long end, pmdval_t clear)
 		p4d_t *p4d;
 		pud_t *pud;
 
+		/* Overflow check */
+		if (addr < start)
+			break;
+
 		pgd = pgd_offset_k(addr);
 		if (WARN_ON(pgd_none(*pgd)))
 			return;
@@ -355,6 +367,9 @@ static void __init pti_clone_p4d(unsigned long addr)
 	pgd_t *kernel_pgd;
 
 	user_p4d = pti_user_pagetable_walk_p4d(addr);
+	if (!user_p4d)
+		return;
+
 	kernel_pgd = pgd_offset_k(addr);
 	kernel_p4d = p4d_offset(kernel_pgd, addr);
 	*user_p4d = *kernel_p4d;
arch/xtensa/platforms/iss/setup.c +15 -10
index f4bbb28026f8..58709e89a8ed 100644
@@ -78,23 +78,28 @@ static struct notifier_block iss_panic_block = {
 
 void __init platform_setup(char **p_cmdline)
 {
+	static void *argv[COMMAND_LINE_SIZE / sizeof(void *)] __initdata;
+	static char cmdline[COMMAND_LINE_SIZE] __initdata;
 	int argc = simc_argc();
 	int argv_size = simc_argv_size();
 
 	if (argc > 1) {
-		void **argv = alloc_bootmem(argv_size);
-		char *cmdline = alloc_bootmem(argv_size);
-		int i;
+		if (argv_size > sizeof(argv)) {
+			pr_err("%s: command line too long: argv_size = %d\n",
+			       __func__, argv_size);
+		} else {
+			int i;
 
-		cmdline[0] = 0;
-		simc_argv((void *)argv);
+			cmdline[0] = 0;
+			simc_argv((void *)argv);
 
-		for (i = 1; i < argc; ++i) {
-			if (i > 1)
-				strcat(cmdline, " ");
-			strcat(cmdline, argv[i]);
+			for (i = 1; i < argc; ++i) {
+				if (i > 1)
+					strcat(cmdline, " ");
+				strcat(cmdline, argv[i]);
+			}
+			*p_cmdline = cmdline;
 		}
-		*p_cmdline = cmdline;
 	}
 
 	atomic_notifier_chain_register(&panic_notifier_list, &iss_panic_block);
block/blk-core.c +6 -2
index cbaca5a73f2e..f9d2e1b66e05 100644
@@ -791,9 +791,13 @@ void blk_cleanup_queue(struct request_queue *q)
 	 * make sure all in-progress dispatch are completed because
 	 * blk_freeze_queue() can only complete all requests, and
 	 * dispatch may still be in-progress since we dispatch requests
-	 * from more than one contexts
+	 * from more than one contexts.
+	 *
+	 * No need to quiesce queue if it isn't initialized yet since
+	 * blk_freeze_queue() should be enough for cases of passthrough
+	 * request.
 	 */
-	if (q->mq_ops)
+	if (q->mq_ops && blk_queue_init_done(q))
 		blk_mq_quiesce_queue(q);
 
 	/* for synchronous bio-based driver finish in-flight integrity i/o */
block/blk-mq-sched.c +2 -1
index 56c493c6cd90..f5745acc2d98 100644
@@ -339,7 +339,8 @@ bool __blk_mq_sched_bio_merge(struct request_queue *q, struct bio *bio)
 		return e->type->ops.mq.bio_merge(hctx, bio);
 	}
 
-	if (hctx->flags & BLK_MQ_F_SHOULD_MERGE) {
+	if ((hctx->flags & BLK_MQ_F_SHOULD_MERGE) &&
+			!list_empty_careful(&ctx->rq_list)) {
 		/* default per sw-queue merge */
 		spin_lock(&ctx->lock);
 		ret = blk_mq_attempt_merge(q, ctx, bio);
block/blk-settings.c +1 -1
index d1de71124656..24fff4a3d08a 100644
@@ -128,7 +128,7 @@ void blk_set_stacking_limits(struct queue_limits *lim)
 
 	/* Inherit limits from component devices */
 	lim->max_segments = USHRT_MAX;
-	lim->max_discard_segments = 1;
+	lim->max_discard_segments = USHRT_MAX;
 	lim->max_hw_sectors = UINT_MAX;
 	lim->max_segment_size = UINT_MAX;
 	lim->max_sectors = UINT_MAX;
crypto/api.c +1 -1
index 0ee632bba064..7aca9f86c5f3 100644
@@ -229,7 +229,7 @@ static struct crypto_alg *crypto_larval_lookup(const char *name, u32 type,
 	mask &= ~(CRYPTO_ALG_LARVAL | CRYPTO_ALG_DEAD);
 
 	alg = crypto_alg_lookup(name, type, mask);
-	if (!alg) {
+	if (!alg && !(mask & CRYPTO_NOLOAD)) {
 		request_module("crypto-%s", name);
 
 		if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask &
drivers/base/core.c +3 -0
index df3e1a44707a..3aba4ad8af5c 100644
@@ -2809,6 +2809,9 @@ void device_shutdown(void)
 {
 	struct device *dev, *parent;
 
+	wait_for_device_probe();
+	device_block_probing();
+
 	spin_lock(&devices_kset->list_lock);
 	/*
 	 * Walk the devices list backward, shutting down each in turn.
drivers/block/DAC960.c +6 -3
index f6518067aa7d..f99e5c883368 100644
@@ -21,6 +21,7 @@
 #define DAC960_DriverDate			"21 Aug 2007"
 
 
+#include <linux/compiler.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/miscdevice.h>
@@ -6426,7 +6427,7 @@ static bool DAC960_V2_ExecuteUserCommand(DAC960_Controller_T *Controller,
   return true;
 }
 
-static int dac960_proc_show(struct seq_file *m, void *v)
+static int __maybe_unused dac960_proc_show(struct seq_file *m, void *v)
 {
   unsigned char *StatusMessage = "OK\n";
   int ControllerNumber;
@@ -6446,14 +6447,16 @@ static int dac960_proc_show(struct seq_file *m, void *v)
   return 0;
 }
 
-static int dac960_initial_status_proc_show(struct seq_file *m, void *v)
+static int __maybe_unused dac960_initial_status_proc_show(struct seq_file *m,
+							  void *v)
 {
 	DAC960_Controller_T *Controller = (DAC960_Controller_T *)m->private;
 	seq_printf(m, "%.*s", Controller->InitialStatusLength, Controller->CombinedStatusBuffer);
 	return 0;
 }
 
-static int dac960_current_status_proc_show(struct seq_file *m, void *v)
+static int __maybe_unused dac960_current_status_proc_show(struct seq_file *m,
+							  void *v)
 {
   DAC960_Controller_T *Controller = (DAC960_Controller_T *) m->private;
   unsigned char *StatusMessage =
drivers/char/ipmi/ipmi_bt_sm.c +48 -44

146 lines not on this page · raw message

drivers/char/ipmi/ipmi_msghandler.c +30 -23

76 lines not on this page · raw message

drivers/char/ipmi/ipmi_si_intf.c +4 -13
index 90ec010bffbd..5faa917df1b6 100644
@@ -2083,18 +2083,9 @@ static int try_smi_init(struct smi_info *new_smi)
 		 si_to_str[new_smi->io.si_type]);
 
 	WARN_ON(new_smi->io.dev->init_name != NULL);
-	kfree(init_name);
-
-	return 0;
-
-out_err:
-	if (new_smi->intf) {
-		ipmi_unregister_smi(new_smi->intf);
-		new_smi->intf = NULL;
-	}
 
+ out_err:
 	kfree(init_name);
-
 	return rv;
 }
 
@@ -2227,6 +2218,8 @@ static void shutdown_smi(void *send_info)
 
 	kfree(smi_info->si_sm);
 	smi_info->si_sm = NULL;
+
+	smi_info->intf = NULL;
 }
 
 /*
@@ -2240,10 +2233,8 @@ static void cleanup_one_si(struct smi_info *smi_info)
 
 	list_del(&smi_info->link);
 
-	if (smi_info->intf) {
+	if (smi_info->intf)
 		ipmi_unregister_smi(smi_info->intf);
-		smi_info->intf = NULL;
-	}
 
 	if (smi_info->pdev) {
 		if (smi_info->pdev_registered)
drivers/char/ipmi/ipmi_ssif.c +9 -21
index 18e4650c233b..265d6a6583bc 100644
@@ -181,6 +181,8 @@ struct ssif_addr_info {
 	struct device *dev;
 	struct i2c_client *client;
 
+	struct i2c_client *added_client;
+
 	struct mutex clients_mutex;
 	struct list_head clients;
 
@@ -1214,18 +1216,11 @@ static void shutdown_ssif(void *send_info)
 		complete(&ssif_info->wake_thread);
 		kthread_stop(ssif_info->thread);
 	}
-
-	/*
-	 * No message can be outstanding now, we have removed the
-	 * upper layer and it permitted us to do so.
-	 */
-	kfree(ssif_info);
 }
 
 static int ssif_remove(struct i2c_client *client)
 {
 	struct ssif_info *ssif_info = i2c_get_clientdata(client);
-	struct ipmi_smi *intf;
 	struct ssif_addr_info *addr_info;
 
 	if (!ssif_info)
@@ -1235,9 +1230,7 @@ static int ssif_remove(struct i2c_client *client)
 	 * After this point, we won't deliver anything asychronously
 	 * to the message handler.  We can unregister ourself.
 	 */
-	intf = ssif_info->intf;
-	ssif_info->intf = NULL;
-	ipmi_unregister_smi(intf);
+	ipmi_unregister_smi(ssif_info->intf);
 
 	list_for_each_entry(addr_info, &ssif_infos, link) {
 		if (addr_info->client == client) {
@@ -1246,6 +1239,8 @@ static int ssif_remove(struct i2c_client *client)
 		}
 	}
 
+	kfree(ssif_info);
+
 	return 0;
 }
 
@@ -1648,15 +1643,7 @@ static int ssif_probe(struct i2c_client *client, const struct i2c_device_id *id)
 
  out:
 	if (rv) {
-		/*
-		 * Note that if addr_info->client is assigned, we
-		 * leave it.  The i2c client hangs around even if we
-		 * return a failure here, and the failure here is not
-		 * propagated back to the i2c code.  This seems to be
-		 * design intent, strange as it may be.  But if we
-		 * don't leave it, ssif_platform_remove will not remove
-		 * the client like it should.
-		 */
+		addr_info->client = NULL;
 		dev_err(&client->dev, "Unable to start IPMI SSIF: %d\n", rv);
 		kfree(ssif_info);
 	}
@@ -1676,7 +1663,8 @@ static int ssif_adapter_handler(struct device *adev, void *opaque)
 	if (adev->type != &i2c_adapter_type)
 		return 0;
 
-	i2c_new_device(to_i2c_adapter(adev), &addr_info->binfo);
+	addr_info->added_client = i2c_new_device(to_i2c_adapter(adev),
+						 &addr_info->binfo);
 
 	if (!addr_info->adapter_name)
 		return 1; /* Only try the first I2C adapter by default. */
@@ -1849,7 +1837,7 @@ static int ssif_platform_remove(struct platform_device *dev)
 		return 0;
 
 	mutex_lock(&ssif_infos_mutex);
-	i2c_unregister_device(addr_info->client);
+	i2c_unregister_device(addr_info->added_client);
 
 	list_del(&addr_info->link);
 	kfree(addr_info);
drivers/clk/clk-fixed-factor.c +8 -1
index a5d402de5584..20724abd38bd 100644
@@ -177,8 +177,15 @@ static struct clk *_of_fixed_factor_clk_setup(struct device_node *node)
 
 	clk = clk_register_fixed_factor(NULL, clk_name, parent_name, flags,
 					mult, div);
-	if (IS_ERR(clk))
+	if (IS_ERR(clk)) {
+		/*
+		 * If parent clock is not registered, registration would fail.
+		 * Clear OF_POPULATED flag so that clock registration can be
+		 * attempted again from probe function.
+		 */
+		of_node_clear_flag(node, OF_POPULATED);
 		return clk;
+	}
 
 	ret = of_clk_add_provider(node, of_clk_src_simple_get, clk);
 	if (ret) {
drivers/clk/clk.c +3 -0
index e2ed078abd90..2d96e7966e94 100644
@@ -2933,6 +2933,7 @@ struct clk *__clk_create_clk(struct clk_hw *hw, const char *dev_id,
 	return clk;
 }
 
+/* keep in sync with __clk_put */
 void __clk_free_clk(struct clk *clk)
 {
 	clk_prepare_lock();
@@ -3312,6 +3313,7 @@ int __clk_get(struct clk *clk)
 	return 1;
 }
 
+/* keep in sync with __clk_free_clk */
 void __clk_put(struct clk *clk)
 {
 	struct module *owner;
@@ -3345,6 +3347,7 @@ void __clk_put(struct clk *clk)
 
 	module_put(owner);
 
+	kfree_const(clk->con_id);
 	kfree(clk);
 }
 
drivers/clk/imx/clk-imx6sll.c +1 -0
index 3651c77fbabe..645d8a42007c 100644
@@ -92,6 +92,7 @@ static void __init imx6sll_clocks_init(struct device_node *ccm_node)
 
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx6sll-anatop");
 	base = of_iomap(np, 0);
+	of_node_put(np);
 	WARN_ON(!base);
 
 	/* Do not bypass PLLs initially */
drivers/clk/imx/clk-imx6ul.c +1 -0
index ba563ba50b40..9f1a40498642 100644
@@ -142,6 +142,7 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
 
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx6ul-anatop");
 	base = of_iomap(np, 0);
+	of_node_put(np);
 	WARN_ON(!base);
 
 	clks[IMX6UL_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels));
drivers/clk/mvebu/armada-37xx-periph.c +0 -3
index 44e4e27eddad..6f7637b19738 100644
@@ -429,9 +429,6 @@ static u8 clk_pm_cpu_get_parent(struct clk_hw *hw)
 		val &= pm_cpu->mask_mux;
 	}
 
-	if (val >= num_parents)
-		return -EINVAL;
-
 	return val;
 }
 
drivers/clk/tegra/clk-bpmp.c +9 -3
index a896692b74ec..01dada561c10 100644
@@ -586,9 +586,15 @@ static struct clk_hw *tegra_bpmp_clk_of_xlate(struct of_phandle_args *clkspec,
 	unsigned int id = clkspec->args[0], i;
 	struct tegra_bpmp *bpmp = data;
 
-	for (i = 0; i < bpmp->num_clocks; i++)
-		if (bpmp->clocks[i]->id == id)
-			return &bpmp->clocks[i]->hw;
+	for (i = 0; i < bpmp->num_clocks; i++) {
+		struct tegra_bpmp_clk *clk = bpmp->clocks[i];
+
+		if (!clk)
+			continue;
+
+		if (clk->id == id)
+			return &clk->hw;
+	}
 
 	return NULL;
 }
drivers/crypto/ccp/psp-dev.c +41 -5

82 lines not on this page · raw message

drivers/crypto/sahara.c +2 -2
index 0f2245e1af2b..97d86dca7e85 100644
@@ -1351,7 +1351,7 @@ static int sahara_register_algs(struct sahara_dev *dev)
 
 err_sha_v3_algs:
 	for (j = 0; j < k; j++)
-		crypto_unregister_ahash(&sha_v4_algs[j]);
+		crypto_unregister_ahash(&sha_v3_algs[j]);
 
 err_aes_algs:
 	for (j = 0; j < i; j++)
@@ -1367,7 +1367,7 @@ static void sahara_unregister_algs(struct sahara_dev *dev)
 	for (i = 0; i < ARRAY_SIZE(aes_algs); i++)
 		crypto_unregister_alg(&aes_algs[i]);
 
-	for (i = 0; i < ARRAY_SIZE(sha_v4_algs); i++)
+	for (i = 0; i < ARRAY_SIZE(sha_v3_algs); i++)
 		crypto_unregister_ahash(&sha_v3_algs[i]);
 
 	if (dev->version > SAHARA_VERSION_3)
drivers/devfreq/devfreq.c +3 -1
index 0b5b3abe054e..e26adf67e218 100644
@@ -625,7 +625,8 @@ struct devfreq *devfreq_add_device(struct device *dev,
 	err = device_register(&devfreq->dev);
 	if (err) {
 		mutex_unlock(&devfreq->lock);
-		goto err_dev;
+		put_device(&devfreq->dev);
+		goto err_out;
 	}
 
 	devfreq->trans_table =
@@ -672,6 +673,7 @@ struct devfreq *devfreq_add_device(struct device *dev,
 	mutex_unlock(&devfreq_list_lock);
 
 	device_unregister(&devfreq->dev);
+	devfreq = NULL;
 err_dev:
 	if (devfreq)
 		kfree(devfreq);
drivers/dma/mv_xor_v2.c +2 -0
index c6589ccf1b9a..d349fedf4ab2 100644
@@ -899,6 +899,8 @@ static int mv_xor_v2_remove(struct platform_device *pdev)
 
 	platform_msi_domain_free_irqs(&pdev->dev);
 
+	tasklet_kill(&xor_dev->irq_tasklet);
+
 	clk_disable_unprepare(xor_dev->clk);
 
 	return 0;
drivers/dma/pl330.c +3 -2
index de0957fe9668..bb6dfa2e1e8a 100644
@@ -2257,13 +2257,14 @@ static int pl330_terminate_all(struct dma_chan *chan)
 
 	pm_runtime_get_sync(pl330->ddma.dev);
 	spin_lock_irqsave(&pch->lock, flags);
+
 	spin_lock(&pl330->lock);
 	_stop(pch->thread);
-	spin_unlock(&pl330->lock);
-
 	pch->thread->req[0].desc = NULL;
 	pch->thread->req[1].desc = NULL;
 	pch->thread->req_running = -1;
+	spin_unlock(&pl330->lock);
+
 	power_down = pch->active;
 	pch->active = false;
 
drivers/dma/sh/rcar-dmac.c +3 -2
index 2a2ccd9c78e4..8305a1ce8a9b 100644
@@ -774,8 +774,9 @@ static void rcar_dmac_sync_tcr(struct rcar_dmac_chan *chan)
 	/* make sure all remaining data was flushed */
 	rcar_dmac_chcr_de_barrier(chan);
 
-	/* back DE */
-	rcar_dmac_chan_write(chan, RCAR_DMACHCR, chcr);
+	/* back DE if remain data exists */
+	if (rcar_dmac_chan_read(chan, RCAR_DMATCR))
+		rcar_dmac_chan_write(chan, RCAR_DMACHCR, chcr);
 }
 
 static void rcar_dmac_chan_halt(struct rcar_dmac_chan *chan)
drivers/firmware/efi/arm-init.c +0 -1
index b5214c143fee..388a929baf95 100644
@@ -259,7 +259,6 @@ void __init efi_init(void)
 
 	reserve_regions();
 	efi_esrt_init();
-	efi_memmap_unmap();
 
 	memblock_reserve(params.mmap & PAGE_MASK,
 			 PAGE_ALIGN(params.mmap_size +
drivers/firmware/efi/arm-runtime.c +3 -1
index 5889cbea60b8..4712445c3213 100644
@@ -110,11 +110,13 @@ static int __init arm_enable_runtime_services(void)
 {
 	u64 mapsize;
 
-	if (!efi_enabled(EFI_BOOT)) {
+	if (!efi_enabled(EFI_BOOT) || !efi_enabled(EFI_MEMMAP)) {
 		pr_info("EFI services will not be available.\n");
 		return 0;
 	}
 
+	efi_memmap_unmap();
+
 	if (efi_runtime_disabled()) {
 		pr_info("EFI runtime services will be disabled.\n");
 		return 0;
drivers/firmware/efi/esrt.c +2 -1
index 1ab80e06e7c5..e5d80ebd72b6 100644
@@ -326,7 +326,8 @@ void __init efi_esrt_init(void)
 
 	end = esrt_data + size;
 	pr_info("Reserving ESRT space from %pa to %pa.\n", &esrt_data, &end);
-	efi_mem_reserve(esrt_data, esrt_data_size);
+	if (md.type == EFI_BOOT_SERVICES_DATA)
+		efi_mem_reserve(esrt_data, esrt_data_size);
 
 	pr_debug("esrt-init: loaded.\n");
 }
drivers/gpio/gpio-pxa.c +2 -0
index 2e33fd552899..99070e2ac3cd 100644
@@ -665,6 +665,8 @@ static int pxa_gpio_probe(struct platform_device *pdev)
 	pchip->irq0 = irq0;
 	pchip->irq1 = irq1;
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+	if (!res)
+		return -EINVAL;
 	gpio_reg_base = devm_ioremap(&pdev->dev, res->start,
 				     resource_size(res));
 	if (!gpio_reg_base)
drivers/gpio/gpiolib.h +1 -1
index 1a8e20363861..a7e49fef73d4 100644
@@ -92,7 +92,7 @@ struct acpi_gpio_info {
 };
 
 /* gpio suffixes used for ACPI and device tree lookup */
-static const char * const gpio_suffixes[] = { "gpios", "gpio" };
+static __maybe_unused const char * const gpio_suffixes[] = { "gpios", "gpio" };
 
 #ifdef CONFIG_OF_GPIO
 struct gpio_desc *of_find_gpio(struct device *dev,
drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c +5 -4
index c3744d89352c..ebe79bf00145 100644
@@ -188,9 +188,9 @@ void __iomem *kfd_get_kernel_doorbell(struct kfd_dev *kfd,
 	*doorbell_off = kfd->doorbell_id_offset + inx;
 
 	pr_debug("Get kernel queue doorbell\n"
-			 "     doorbell offset   == 0x%08X\n"
-			 "     kernel address    == %p\n",
-		*doorbell_off, (kfd->doorbell_kernel_ptr + inx));
+			"     doorbell offset   == 0x%08X\n"
+			"     doorbell index    == 0x%x\n",
+		*doorbell_off, inx);
 
 	return kfd->doorbell_kernel_ptr + inx;
 }
@@ -199,7 +199,8 @@ void kfd_release_kernel_doorbell(struct kfd_dev *kfd, u32 __iomem *db_addr)
 {
 	unsigned int inx;
 
-	inx = (unsigned int)(db_addr - kfd->doorbell_kernel_ptr);
+	inx = (unsigned int)(db_addr - kfd->doorbell_kernel_ptr)
+		* sizeof(u32) / kfd->device_info->doorbell_size;
 
 	mutex_lock(&kfd->doorbell_mutex);
 	__clear_bit(inx, kfd->doorbell_available_index);
drivers/gpu/drm/amd/amdkfd/kfd_process.c +2 -0
index 1d80b4f7c681..4694386cc623 100644
@@ -244,6 +244,8 @@ struct kfd_process *kfd_get_process(const struct task_struct *thread)
 		return ERR_PTR(-EINVAL);
 
 	process = find_process(thread);
+	if (!process)
+		return ERR_PTR(-EINVAL);
 
 	return process;
 }
drivers/gpu/drm/amd/display/dc/core/dc_link.c +4 -0
index 8a7890b03d97..6ccd59b87403 100644
@@ -497,6 +497,10 @@ static bool detect_dp(
 			sink_caps->signal = SIGNAL_TYPE_DISPLAY_PORT_MST;
 			link->type = dc_connection_mst_branch;
 
+			dal_ddc_service_set_transaction_type(
+							link->ddc,
+							sink_caps->transaction_type);
+
 			/*
 			 * This call will initiate MST topology discovery. Which
 			 * will detect MST ports and add new DRM connector DRM
drivers/gpu/drm/amd/powerplay/amd_powerplay.c +7 -2
index d567be49c31b..b487774d8041 100644
@@ -1020,7 +1020,7 @@ static int pp_get_display_power_level(void *handle,
 static int pp_get_current_clocks(void *handle,
 		struct amd_pp_clock_info *clocks)
 {
-	struct amd_pp_simple_clock_info simple_clocks;
+	struct amd_pp_simple_clock_info simple_clocks = { 0 };
 	struct pp_clock_info hw_clocks;
 	struct pp_hwmgr *hwmgr = handle;
 	int ret = 0;
@@ -1056,7 +1056,10 @@ static int pp_get_current_clocks(void *handle,
 	clocks->max_engine_clock_in_sr = hw_clocks.max_eng_clk;
 	clocks->min_engine_clock_in_sr = hw_clocks.min_eng_clk;
 
-	clocks->max_clocks_state = simple_clocks.level;
+	if (simple_clocks.level == 0)
+		clocks->max_clocks_state = PP_DAL_POWERLEVEL_7;
+	else
+		clocks->max_clocks_state = simple_clocks.level;
 
 	if (0 == phm_get_current_shallow_sleep_clocks(hwmgr, &hwmgr->current_ps->hardware, &hw_clocks)) {
 		clocks->max_engine_clock_in_sr = hw_clocks.max_eng_clk;
@@ -1159,6 +1162,8 @@ static int pp_get_display_mode_validation_clocks(void *handle,
 	if (!hwmgr || !hwmgr->pm_en ||!clocks)
 		return -EINVAL;
 
+	clocks->level = PP_DAL_POWERLEVEL_7;
+
 	mutex_lock(&hwmgr->smu_lock);
 
 	if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps, PHM_PlatformCaps_DynamicPatchPowerState))
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +4 -4
index f8e866ceda02..77779adeef28 100644
@@ -4555,12 +4555,12 @@ static int smu7_get_sclks(struct pp_hwmgr *hwmgr, struct amd_pp_clocks *clocks)
 			return -EINVAL;
 		dep_sclk_table = table_info->vdd_dep_on_sclk;
 		for (i = 0; i < dep_sclk_table->count; i++)
-			clocks->clock[i] = dep_sclk_table->entries[i].clk;
+			clocks->clock[i] = dep_sclk_table->entries[i].clk * 10;
 		clocks->count = dep_sclk_table->count;
 	} else if (hwmgr->pp_table_version == PP_TABLE_V0) {
 		sclk_table = hwmgr->dyn_state.vddc_dependency_on_sclk;
 		for (i = 0; i < sclk_table->count; i++)
-			clocks->clock[i] = sclk_table->entries[i].clk;
+			clocks->clock[i] = sclk_table->entries[i].clk * 10;
 		clocks->count = sclk_table->count;
 	}
 
@@ -4592,7 +4592,7 @@ static int smu7_get_mclks(struct pp_hwmgr *hwmgr, struct amd_pp_clocks *clocks)
 			return -EINVAL;
 		dep_mclk_table = table_info->vdd_dep_on_mclk;
 		for (i = 0; i < dep_mclk_table->count; i++) {
-			clocks->clock[i] = dep_mclk_table->entries[i].clk;
+			clocks->clock[i] = dep_mclk_table->entries[i].clk * 10;
 			clocks->latency[i] = smu7_get_mem_latency(hwmgr,
 						dep_mclk_table->entries[i].clk);
 		}
@@ -4600,7 +4600,7 @@ static int smu7_get_mclks(struct pp_hwmgr *hwmgr, struct amd_pp_clocks *clocks)
 	} else if (hwmgr->pp_table_version == PP_TABLE_V0) {
 		mclk_table = hwmgr->dyn_state.vddc_dependency_on_mclk;
 		for (i = 0; i < mclk_table->count; i++)
-			clocks->clock[i] = mclk_table->entries[i].clk;
+			clocks->clock[i] = mclk_table->entries[i].clk * 10;
 		clocks->count = mclk_table->count;
 	}
 	return 0;
drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c +3 -3
index 617557bd8c24..0adfc5392cd3 100644
@@ -1605,17 +1605,17 @@ static int smu8_get_clock_by_type(struct pp_hwmgr *hwmgr, enum amd_pp_clock_type
 	switch (type) {
 	case amd_pp_disp_clock:
 		for (i = 0; i < clocks->count; i++)
-			clocks->clock[i] = data->sys_info.display_clock[i];
+			clocks->clock[i] = data->sys_info.display_clock[i] * 10;
 		break;
 	case amd_pp_sys_clock:
 		table = hwmgr->dyn_state.vddc_dependency_on_sclk;
 		for (i = 0; i < clocks->count; i++)
-			clocks->clock[i] = table->entries[i].clk;
+			clocks->clock[i] = table->entries[i].clk * 10;
 		break;
 	case amd_pp_mem_clock:
 		clocks->count = SMU8_NUM_NBPMEMORYCLOCK;
 		for (i = 0; i < clocks->count; i++)
-			clocks->clock[i] = data->sys_info.nbp_memory_clock[clocks->count - 1 - i];
+			clocks->clock[i] = data->sys_info.nbp_memory_clock[clocks->count - 1 - i] * 10;
 		break;
 	default:
 		return -1;
drivers/gpu/drm/nouveau/nouveau_debugfs.c +4 -0
index 963a4dba8213..9109b69cd052 100644
@@ -160,7 +160,11 @@ nouveau_debugfs_pstate_set(struct file *file, const char __user *ubuf,
 		args.ustate = value;
 	}
 
+	ret = pm_runtime_get_sync(drm->dev);
+	if (IS_ERR_VALUE(ret) && ret != -EACCES)
+		return ret;
 	ret = nvif_mthd(ctrl, NVIF_CONTROL_PSTATE_USER, &args, sizeof(args));
+	pm_runtime_put_autosuspend(drm->dev);
 	if (ret < 0)
 		return ret;
 
drivers/gpu/drm/nouveau/nouveau_drm.c +4 -2
index f5d3158f0378..c7ec86d6c3c9 100644
@@ -908,8 +908,10 @@ nouveau_drm_open(struct drm_device *dev, struct drm_file *fpriv)
 	get_task_comm(tmpname, current);
 	snprintf(name, sizeof(name), "%s[%d]", tmpname, pid_nr(fpriv->pid));
 
-	if (!(cli = kzalloc(sizeof(*cli), GFP_KERNEL)))
-		return ret;
+	if (!(cli = kzalloc(sizeof(*cli), GFP_KERNEL))) {
+		ret = -ENOMEM;
+		goto done;
+	}
 
 	ret = nouveau_cli_init(drm, name, cli);
 	if (ret)
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c +13 -0
index 78597da6313a..0e372a190d3f 100644
@@ -23,6 +23,10 @@
 #ifdef CONFIG_NOUVEAU_PLATFORM_DRIVER
 #include "priv.h"
 
+#if IS_ENABLED(CONFIG_ARM_DMA_USE_IOMMU)
+#include <asm/dma-iommu.h>
+#endif
+
 static int
 nvkm_device_tegra_power_up(struct nvkm_device_tegra *tdev)
 {
@@ -105,6 +109,15 @@ nvkm_device_tegra_probe_iommu(struct nvkm_device_tegra *tdev)
 	unsigned long pgsize_bitmap;
 	int ret;
 
+#if IS_ENABLED(CONFIG_ARM_DMA_USE_IOMMU)
+	if (dev->archdata.mapping) {
+		struct dma_iommu_mapping *mapping = to_dma_iommu_mapping(dev);
+
+		arm_iommu_detach_device(dev);
+		arm_iommu_release_mapping(mapping);
+	}
+#endif
+
 	if (!tdev->func->iommu_bit)
 		return;
 
drivers/gpu/drm/panel/panel-samsung-s6e8aa0.c +1 -1
index a188a3959f1a..6ad827b93ae1 100644
@@ -823,7 +823,7 @@ static void s6e8aa0_read_mtp_id(struct s6e8aa0 *ctx)
 	int ret, i;
 
 	ret = s6e8aa0_dcs_read(ctx, 0xd1, id, ARRAY_SIZE(id));
-	if (ret < ARRAY_SIZE(id) || id[0] == 0x00) {
+	if (ret < 0 || ret < ARRAY_SIZE(id) || id[0] == 0x00) {
 		dev_err(ctx->dev, "read id failed\n");
 		ctx->error = -EIO;
 		return;
drivers/gpu/ipu-v3/ipu-csi.c +16 -4
index 5450a2db1219..2beadb3f79c2 100644
@@ -318,13 +318,17 @@ static int mbus_code_to_bus_cfg(struct ipu_csi_bus_config *cfg, u32 mbus_code)
 /*
  * Fill a CSI bus config struct from mbus_config and mbus_framefmt.
  */
-static void fill_csi_bus_cfg(struct ipu_csi_bus_config *csicfg,
+static int fill_csi_bus_cfg(struct ipu_csi_bus_config *csicfg,
 				 struct v4l2_mbus_config *mbus_cfg,
 				 struct v4l2_mbus_framefmt *mbus_fmt)
 {
+	int ret;
+
 	memset(csicfg, 0, sizeof(*csicfg));
 
-	mbus_code_to_bus_cfg(csicfg, mbus_fmt->code);
+	ret = mbus_code_to_bus_cfg(csicfg, mbus_fmt->code);
+	if (ret < 0)
+		return ret;
 
 	switch (mbus_cfg->type) {
 	case V4L2_MBUS_PARALLEL:
@@ -356,6 +360,8 @@ static void fill_csi_bus_cfg(struct ipu_csi_bus_config *csicfg,
 		/* will never get here, keep compiler quiet */
 		break;
 	}
+
+	return 0;
 }
 
 int ipu_csi_init_interface(struct ipu_csi *csi,
@@ -365,8 +371,11 @@ int ipu_csi_init_interface(struct ipu_csi *csi,
 	struct ipu_csi_bus_config cfg;
 	unsigned long flags;
 	u32 width, height, data = 0;
+	int ret;
 
-	fill_csi_bus_cfg(&cfg, mbus_cfg, mbus_fmt);
+	ret = fill_csi_bus_cfg(&cfg, mbus_cfg, mbus_fmt);
+	if (ret < 0)
+		return ret;
 
 	/* set default sensor frame width and height */
 	width = mbus_fmt->width;
@@ -587,11 +596,14 @@ int ipu_csi_set_mipi_datatype(struct ipu_csi *csi, u32 vc,
 	struct ipu_csi_bus_config cfg;
 	unsigned long flags;
 	u32 temp;
+	int ret;
 
 	if (vc > 3)
 		return -EINVAL;
 
-	mbus_code_to_bus_cfg(&cfg, mbus_fmt->code);
+	ret = mbus_code_to_bus_cfg(&cfg, mbus_fmt->code);
+	if (ret < 0)
+		return ret;
 
 	spin_lock_irqsave(&csi->lock, flags);
 
drivers/hv/vmbus_drv.c +3 -0
index b10fe26c4891..c9a466be7709 100644
@@ -1178,6 +1178,9 @@ static ssize_t vmbus_chan_attr_show(struct kobject *kobj,
 	if (!attribute->show)
 		return -EIO;
 
+	if (chan->state != CHANNEL_OPENED_STATE)
+		return -EINVAL;
+
 	return attribute->show(chan, buf);
 }
 
drivers/hwtracing/coresight/coresight-etm4x.c +14 -17
index 9bc04c50d45b..1d94ebec027b 100644
@@ -1027,7 +1027,8 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
 	}
 
 	pm_runtime_put(&adev->dev);
-	dev_info(dev, "%s initialized\n", (char *)id->data);
+	dev_info(dev, "CPU%d: ETM v%d.%d initialized\n",
+		 drvdata->cpu, drvdata->arch >> 4, drvdata->arch & 0xf);
 
 	if (boot_enable) {
 		coresight_enable(drvdata->csdev);
@@ -1045,23 +1046,19 @@ static int etm4_probe(struct amba_device *adev, const struct amba_id *id)
 	return ret;
 }
 
+#define ETM4x_AMBA_ID(pid)			\
+	{					\
+		.id	= pid,			\
+		.mask	= 0x000fffff,		\
+	}
+
 static const struct amba_id etm4_ids[] = {
-	{       /* ETM 4.0 - Cortex-A53  */
-		.id	= 0x000bb95d,
-		.mask	= 0x000fffff,
-		.data	= "ETM 4.0",
-	},
-	{       /* ETM 4.0 - Cortex-A57 */
-		.id	= 0x000bb95e,
-		.mask	= 0x000fffff,
-		.data	= "ETM 4.0",
-	},
-	{       /* ETM 4.0 - A72, Maia, HiSilicon */
-		.id = 0x000bb95a,
-		.mask = 0x000fffff,
-		.data = "ETM 4.0",
-	},
-	{ 0, 0},
+	ETM4x_AMBA_ID(0x000bb95d),		/* Cortex-A53 */
+	ETM4x_AMBA_ID(0x000bb95e),		/* Cortex-A57 */
+	ETM4x_AMBA_ID(0x000bb95a),		/* Cortex-A72 */
+	ETM4x_AMBA_ID(0x000bb959),		/* Cortex-A73 */
+	ETM4x_AMBA_ID(0x000bb9da),		/* Cortex-A35 */
+	{},
 };
 
 static struct amba_driver etm4x_driver = {
drivers/hwtracing/coresight/coresight-tpiu.c +4 -3
index 01b7457fe8fc..459ef930d98c 100644
@@ -40,8 +40,9 @@
 
 /** register definition **/
 /* FFSR - 0x300 */
-#define FFSR_FT_STOPPED		BIT(1)
+#define FFSR_FT_STOPPED_BIT	1
 /* FFCR - 0x304 */
+#define FFCR_FON_MAN_BIT	6
 #define FFCR_FON_MAN		BIT(6)
 #define FFCR_STOP_FI		BIT(12)
 
@@ -86,9 +87,9 @@ static void tpiu_disable_hw(struct tpiu_drvdata *drvdata)
 	/* Generate manual flush */
 	writel_relaxed(FFCR_STOP_FI | FFCR_FON_MAN, drvdata->base + TPIU_FFCR);
 	/* Wait for flush to complete */
-	coresight_timeout(drvdata->base, TPIU_FFCR, FFCR_FON_MAN, 0);
+	coresight_timeout(drvdata->base, TPIU_FFCR, FFCR_FON_MAN_BIT, 0);
 	/* Wait for formatter to stop */
-	coresight_timeout(drvdata->base, TPIU_FFSR, FFSR_FT_STOPPED, 1);
+	coresight_timeout(drvdata->base, TPIU_FFSR, FFSR_FT_STOPPED_BIT, 1);
 
 	CS_LOCK(drvdata->base);
 }
drivers/hwtracing/coresight/coresight.c +5 -2
index 29e834aab539..b673718952f6 100644
@@ -108,7 +108,7 @@ static int coresight_find_link_inport(struct coresight_device *csdev,
 	dev_err(&csdev->dev, "couldn't find inport, parent: %s, child: %s\n",
 		dev_name(&parent->dev), dev_name(&csdev->dev));
 
-	return 0;
+	return -ENODEV;
 }
 
 static int coresight_find_link_outport(struct coresight_device *csdev,
@@ -126,7 +126,7 @@ static int coresight_find_link_outport(struct coresight_device *csdev,
 	dev_err(&csdev->dev, "couldn't find outport, parent: %s, child: %s\n",
 		dev_name(&csdev->dev), dev_name(&child->dev));
 
-	return 0;
+	return -ENODEV;
 }
 
 static int coresight_enable_sink(struct coresight_device *csdev, u32 mode)
@@ -179,6 +179,9 @@ static int coresight_enable_link(struct coresight_device *csdev,
 	else
 		refport = 0;
 
+	if (refport < 0)
+		return refport;
+
 	if (atomic_inc_return(&csdev->refcnt[refport]) == 1) {
 		if (link_ops(csdev)->enable) {
 			ret = link_ops(csdev)->enable(csdev, inport, outport);
drivers/i2c/busses/i2c-aspeed.c +2 -2
index 715b6fdb4989..5c8ea4e9203c 100644
@@ -111,22 +111,22 @@
 #define ASPEED_I2CD_DEV_ADDR_MASK			GENMASK(6, 0)
 
 enum aspeed_i2c_master_state {
+	ASPEED_I2C_MASTER_INACTIVE,
 	ASPEED_I2C_MASTER_START,
 	ASPEED_I2C_MASTER_TX_FIRST,
 	ASPEED_I2C_MASTER_TX,
 	ASPEED_I2C_MASTER_RX_FIRST,
 	ASPEED_I2C_MASTER_RX,
 	ASPEED_I2C_MASTER_STOP,
-	ASPEED_I2C_MASTER_INACTIVE,
 };
 
 enum aspeed_i2c_slave_state {
+	ASPEED_I2C_SLAVE_STOP,
 	ASPEED_I2C_SLAVE_START,
 	ASPEED_I2C_SLAVE_READ_REQUESTED,
 	ASPEED_I2C_SLAVE_READ_PROCESSED,
 	ASPEED_I2C_SLAVE_WRITE_REQUESTED,
 	ASPEED_I2C_SLAVE_WRITE_RECEIVED,
-	ASPEED_I2C_SLAVE_STOP,
 };
 
 struct aspeed_i2c_bus {
drivers/infiniband/core/cma.c +7 -5
index dafcb6f019b3..2702ead01a03 100644
@@ -722,6 +722,7 @@ static int cma_resolve_ib_dev(struct rdma_id_private *id_priv)
 	dgid = (union ib_gid *) &addr->sib_addr;
 	pkey = ntohs(addr->sib_pkey);
 
+	mutex_lock(&lock);
 	list_for_each_entry(cur_dev, &dev_list, list) {
 		for (p = 1; p <= cur_dev->device->phys_port_cnt; ++p) {
 			if (!rdma_cap_af_ib(cur_dev->device, p))
@@ -748,18 +749,19 @@ static int cma_resolve_ib_dev(struct rdma_id_private *id_priv)
 					cma_dev = cur_dev;
 					sgid = gid;
 					id_priv->id.port_num = p;
+					goto found;
 				}
 			}
 		}
 	}
-
-	if (!cma_dev)
-		return -ENODEV;
+	mutex_unlock(&lock);
+	return -ENODEV;
 
 found:
 	cma_attach_to_dev(id_priv, cma_dev);
-	addr = (struct sockaddr_ib *) cma_src_addr(id_priv);
-	memcpy(&addr->sib_addr, &sgid, sizeof sgid);
+	mutex_unlock(&lock);
+	addr = (struct sockaddr_ib *)cma_src_addr(id_priv);
+	memcpy(&addr->sib_addr, &sgid, sizeof(sgid));
 	cma_translate_ib(addr, &id_priv->id.route.addr.dev_addr);
 	return 0;
 }
drivers/infiniband/hw/mlx5/cong.c +1 -8
index 985fa2637390..7e4e358a4fd8 100644
@@ -359,9 +359,6 @@ static ssize_t get_param(struct file *filp, char __user *buf, size_t count,
 	int ret;
 	char lbuf[11];
 
-	if (*pos)
-		return 0;
-
 	ret = mlx5_ib_get_cc_params(param->dev, param->port_num, offset, &var);
 	if (ret)
 		return ret;
@@ -370,11 +367,7 @@ static ssize_t get_param(struct file *filp, char __user *buf, size_t count,
 	if (ret < 0)
 		return ret;
 
-	if (copy_to_user(buf, lbuf, ret))
-		return -EFAULT;
-
-	*pos += ret;
-	return ret;
+	return simple_read_from_buffer(buf, count, pos, lbuf, ret);
 }
 
 static const struct file_operations dbg_cc_fops = {
drivers/infiniband/hw/mlx5/mr.c +8 -24
index 90a9c461cedc..308456d28afb 100644
@@ -271,16 +271,16 @@ static ssize_t size_write(struct file *filp, const char __user *buf,
 {
 	struct mlx5_cache_ent *ent = filp->private_data;
 	struct mlx5_ib_dev *dev = ent->dev;
-	char lbuf[20];
+	char lbuf[20] = {0};
 	u32 var;
 	int err;
 	int c;
 
-	if (copy_from_user(lbuf, buf, sizeof(lbuf)))
+	count = min(count, sizeof(lbuf) - 1);
+	if (copy_from_user(lbuf, buf, count))
 		return -EFAULT;
 
 	c = order2idx(dev, ent->order);
-	lbuf[sizeof(lbuf) - 1] = 0;
 
 	if (sscanf(lbuf, "%u", &var) != 1)
 		return -EINVAL;
@@ -310,19 +310,11 @@ static ssize_t size_read(struct file *filp, char __user *buf, size_t count,
 	char lbuf[20];
 	int err;
 
-	if (*pos)
-		return 0;
-
 	err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->size);
 	if (err < 0)
 		return err;
 
-	if (copy_to_user(buf, lbuf, err))
-		return -EFAULT;
-
-	*pos += err;
-
-	return err;
+	return simple_read_from_buffer(buf, count, pos, lbuf, err);
 }
 
 static const struct file_operations size_fops = {
@@ -337,16 +329,16 @@ static ssize_t limit_write(struct file *filp, const char __user *buf,
 {
 	struct mlx5_cache_ent *ent = filp->private_data;
 	struct mlx5_ib_dev *dev = ent->dev;
-	char lbuf[20];
+	char lbuf[20] = {0};
 	u32 var;
 	int err;
 	int c;
 
-	if (copy_from_user(lbuf, buf, sizeof(lbuf)))
+	count = min(count, sizeof(lbuf) - 1);
+	if (copy_from_user(lbuf, buf, count))
 		return -EFAULT;
 
 	c = order2idx(dev, ent->order);
-	lbuf[sizeof(lbuf) - 1] = 0;
 
 	if (sscanf(lbuf, "%u", &var) != 1)
 		return -EINVAL;
@@ -372,19 +364,11 @@ static ssize_t limit_read(struct file *filp, char __user *buf, size_t count,
 	char lbuf[20];
 	int err;
 
-	if (*pos)
-		return 0;
-
 	err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->limit);
 	if (err < 0)
 		return err;
 
-	if (copy_to_user(buf, lbuf, err))
-		return -EFAULT;
-
-	*pos += err;
-
-	return err;
+	return simple_read_from_buffer(buf, count, pos, lbuf, err);
 }
 
 static const struct file_operations limit_fops = {
drivers/infiniband/sw/rxe/rxe_recv.c +7 -2
index dfba44a40f0b..fe45d6cad6cd 100644
@@ -225,9 +225,14 @@ static int hdr_check(struct rxe_pkt_info *pkt)
 		goto err1;
 	}
 
+	if (unlikely(qpn == 0)) {
+		pr_warn_once("QP 0 not supported");
+		goto err1;
+	}
+
 	if (qpn != IB_MULTICAST_QPN) {
-		index = (qpn == 0) ? port->qp_smi_index :
-			((qpn == 1) ? port->qp_gsi_index : qpn);
+		index = (qpn == 1) ? port->qp_gsi_index : qpn;
+
 		qp = rxe_pool_get_index(&rxe->qp_pool, index);
 		if (unlikely(!qp)) {
 			pr_warn_ratelimited("no qp matches qpn 0x%x\n", qpn);
drivers/infiniband/ulp/ipoib/ipoib_cm.c +2 -0
index 6535d9beb24d..a620701f9d41 100644
@@ -1028,12 +1028,14 @@ static int ipoib_cm_rep_handler(struct ib_cm_id *cm_id, struct ib_cm_event *even
 
 	skb_queue_head_init(&skqueue);
 
+	netif_tx_lock_bh(p->dev);
 	spin_lock_irq(&priv->lock);
 	set_bit(IPOIB_FLAG_OPER_UP, &p->flags);
 	if (p->neigh)
 		while ((skb = __skb_dequeue(&p->neigh->queue)))
 			__skb_queue_tail(&skqueue, skb);
 	spin_unlock_irq(&priv->lock);
+	netif_tx_unlock_bh(p->dev);
 
 	while ((skb = __skb_dequeue(&skqueue))) {
 		skb->dev = p->dev;
drivers/infiniband/ulp/ipoib/ipoib_main.c +2 -1
index 26cde95bc0f3..7630d5ed2b41 100644
@@ -1787,7 +1787,8 @@ int ipoib_dev_init(struct net_device *dev, struct ib_device *ca, int port)
 		goto out_free_pd;
 	}
 
-	if (ipoib_neigh_hash_init(priv) < 0) {
+	ret = ipoib_neigh_hash_init(priv);
+	if (ret) {
 		pr_warn("%s failed to init neigh hash\n", dev->name);
 		goto out_dev_uninit;
 	}
drivers/input/joystick/pxrc.c +30 -36

114 lines not on this page · raw message

drivers/input/touchscreen/rohm_bu21023.c +2 -2
index bda0500c9b57..714affdd742f 100644
@@ -304,7 +304,7 @@ static int rohm_i2c_burst_read(struct i2c_client *client, u8 start, void *buf,
 	msg[1].len = len;
 	msg[1].buf = buf;
 
-	i2c_lock_adapter(adap);
+	i2c_lock_bus(adap, I2C_LOCK_SEGMENT);
 
 	for (i = 0; i < 2; i++) {
 		if (__i2c_transfer(adap, &msg[i], 1) < 0) {
@@ -313,7 +313,7 @@ static int rohm_i2c_burst_read(struct i2c_client *client, u8 start, void *buf,
 		}
 	}
 
-	i2c_unlock_adapter(adap);
+	i2c_unlock_bus(adap, I2C_LOCK_SEGMENT);
 
 	return ret;
 }
drivers/iommu/arm-smmu-v3.c +1 -0
index b73c6a7bf7f2..b7076aa24d6b 100644
@@ -1302,6 +1302,7 @@ static irqreturn_t arm_smmu_priq_thread(int irq, void *dev)
 
 	/* Sync our overflow flag, as we believe we're up to speed */
 	q->cons = Q_OVF(q, q->prod) | Q_WRP(q, q->cons) | Q_IDX(q, q->cons);
+	writel(q->cons, q->cons_reg);
 	return IRQ_HANDLED;
 }
 
drivers/iommu/io-pgtable-arm-v7s.c +6 -1
index 50e3a9fcf43e..b5948ba6b3b3 100644
@@ -192,6 +192,7 @@ static void *__arm_v7s_alloc_table(int lvl, gfp_t gfp,
 {
 	struct io_pgtable_cfg *cfg = &data->iop.cfg;
 	struct device *dev = cfg->iommu_dev;
+	phys_addr_t phys;
 	dma_addr_t dma;
 	size_t size = ARM_V7S_TABLE_SIZE(lvl);
 	void *table = NULL;
@@ -200,6 +201,10 @@ static void *__arm_v7s_alloc_table(int lvl, gfp_t gfp,
 		table = (void *)__get_dma_pages(__GFP_ZERO, get_order(size));
 	else if (lvl == 2)
 		table = kmem_cache_zalloc(data->l2_tables, gfp | GFP_DMA);
+	phys = virt_to_phys(table);
+	if (phys != (arm_v7s_iopte)phys)
+		/* Doesn't fit in PTE */
+		goto out_free;
 	if (table && !(cfg->quirks & IO_PGTABLE_QUIRK_NO_DMA)) {
 		dma = dma_map_single(dev, table, size, DMA_TO_DEVICE);
 		if (dma_mapping_error(dev, dma))
@@ -209,7 +214,7 @@ static void *__arm_v7s_alloc_table(int lvl, gfp_t gfp,
 		 * address directly, so if the DMA layer suggests otherwise by
 		 * translating or truncating them, that bodes very badly...
 		 */
-		if (dma != virt_to_phys(table))
+		if (dma != phys)
 			goto out_unmap;
 	}
 	kmemleak_ignore(table);
drivers/iommu/io-pgtable-arm.c +2 -1
index 010a254305dd..88641b4560bc 100644
@@ -237,7 +237,8 @@ static void *__arm_lpae_alloc_pages(size_t size, gfp_t gfp,
 	void *pages;
 
 	VM_BUG_ON((gfp & __GFP_HIGHMEM));
-	p = alloc_pages_node(dev_to_node(dev), gfp | __GFP_ZERO, order);
+	p = alloc_pages_node(dev ? dev_to_node(dev) : NUMA_NO_NODE,
+			     gfp | __GFP_ZERO, order);
 	if (!p)
 		return NULL;
 
drivers/iommu/ipmmu-vmsa.c +8 -0
index feb1664815b7..6e2882cda55d 100644
@@ -47,6 +47,7 @@ struct ipmmu_features {
 	unsigned int number_of_contexts;
 	bool setup_imbuscr;
 	bool twobit_imttbcr_sl0;
+	bool reserved_context;
 };
 
 struct ipmmu_vmsa_device {
@@ -916,6 +917,7 @@ static const struct ipmmu_features ipmmu_features_default = {
 	.number_of_contexts = 1, /* software only tested with one context */
 	.setup_imbuscr = true,
 	.twobit_imttbcr_sl0 = false,
+	.reserved_context = false,
 };
 
 static const struct ipmmu_features ipmmu_features_r8a7795 = {
@@ -924,6 +926,7 @@ static const struct ipmmu_features ipmmu_features_r8a7795 = {
 	.number_of_contexts = 8,
 	.setup_imbuscr = false,
 	.twobit_imttbcr_sl0 = true,
+	.reserved_context = true,
 };
 
 static const struct of_device_id ipmmu_of_ids[] = {
@@ -1017,6 +1020,11 @@ static int ipmmu_probe(struct platform_device *pdev)
 		}
 
 		ipmmu_device_reset(mmu);
+
+		if (mmu->features->reserved_context) {
+			dev_info(&pdev->dev, "IPMMU context 0 is reserved\n");
+			set_bit(0, mmu->ctx);
+		}
 	}
 
 	/*
drivers/lightnvm/pblk-init.c +3 -2
index b57f764d6a16..93ebba6dcc25 100644
@@ -716,10 +716,11 @@ static int pblk_setup_line_meta_12(struct pblk *pblk, struct pblk_line *line,
 
 		/*
 		 * In 1.2 spec. chunk state is not persisted by the device. Thus
-		 * some of the values are reset each time pblk is instantiated.
+		 * some of the values are reset each time pblk is instantiated,
+		 * so we have to assume that the block is closed.
 		 */
 		if (lun_bb_meta[line->id] == NVM_BLK_T_FREE)
-			chunk->state =  NVM_CHK_ST_FREE;
+			chunk->state =  NVM_CHK_ST_CLOSED;
 		else
 			chunk->state = NVM_CHK_ST_OFFLINE;
 
drivers/lightnvm/pblk-recovery.c +3 -2
index 3a5069183859..d83466b3821b 100644
@@ -742,9 +742,10 @@ static int pblk_recov_check_line_version(struct pblk *pblk,
 		return 1;
 	}
 
-#ifdef NVM_DEBUG
+#ifdef CONFIG_NVM_PBLK_DEBUG
 	if (header->version_minor > EMETA_VERSION_MINOR)
-		pr_info("pblk: newer line minor version found: %d\n", line_v);
+		pr_info("pblk: newer line minor version found: %d\n",
+				header->version_minor);
 #endif
 
 	return 0;
drivers/md/dm-verity-target.c +20 -4
index 12decdbd722d..fc65f0dedf7f 100644
@@ -99,10 +99,26 @@ static int verity_hash_update(struct dm_verity *v, struct ahash_request *req,
 {
 	struct scatterlist sg;
 
-	sg_init_one(&sg, data, len);
-	ahash_request_set_crypt(req, &sg, NULL, len);
-
-	return crypto_wait_req(crypto_ahash_update(req), wait);
+	if (likely(!is_vmalloc_addr(data))) {
+		sg_init_one(&sg, data, len);
+		ahash_request_set_crypt(req, &sg, NULL, len);
+		return crypto_wait_req(crypto_ahash_update(req), wait);
+	} else {
+		do {
+			int r;
+			size_t this_step = min_t(size_t, len, PAGE_SIZE - offset_in_page(data));
+			flush_kernel_vmap_range((void *)data, this_step);
+			sg_init_table(&sg, 1);
+			sg_set_page(&sg, vmalloc_to_page(data), this_step, offset_in_page(data));
+			ahash_request_set_crypt(req, &sg, NULL, this_step);
+			r = crypto_wait_req(crypto_ahash_update(req), wait);
+			if (unlikely(r))
+				return r;
+			data += this_step;
+			len -= this_step;
+		} while (len);
+		return 0;
+	}
 }
 
 /*
drivers/media/common/videobuf2/videobuf2-core.c +5 -0
index f32ec7342ef0..5653e8eebe2b 100644
@@ -1377,6 +1377,11 @@ int vb2_core_qbuf(struct vb2_queue *q, unsigned int index, void *pb)
 	struct vb2_buffer *vb;
 	int ret;
 
+	if (q->error) {
+		dprintk(1, "fatal error occurred on queue\n");
+		return -EIO;
+	}
+
 	vb = q->bufs[index];
 
 	switch (vb->state) {
drivers/media/i2c/ov5645.c +7 -6
index b3f762578f7f..1722cdab0daf 100644
@@ -510,8 +510,8 @@ static const struct reg_value ov5645_setting_full[] = {
 };
 
 static const s64 link_freq[] = {
-	222880000,
-	334320000
+	224000000,
+	336000000
 };
 
 static const struct ov5645_mode_info ov5645_mode_info_data[] = {
@@ -520,7 +520,7 @@ static const struct ov5645_mode_info ov5645_mode_info_data[] = {
 		.height = 960,
 		.data = ov5645_setting_sxga,
 		.data_size = ARRAY_SIZE(ov5645_setting_sxga),
-		.pixel_clock = 111440000,
+		.pixel_clock = 112000000,
 		.link_freq = 0 /* an index in link_freq[] */
 	},
 	{
@@ -528,7 +528,7 @@ static const struct ov5645_mode_info ov5645_mode_info_data[] = {
 		.height = 1080,
 		.data = ov5645_setting_1080p,
 		.data_size = ARRAY_SIZE(ov5645_setting_1080p),
-		.pixel_clock = 167160000,
+		.pixel_clock = 168000000,
 		.link_freq = 1 /* an index in link_freq[] */
 	},
 	{
@@ -536,7 +536,7 @@ static const struct ov5645_mode_info ov5645_mode_info_data[] = {
 		.height = 1944,
 		.data = ov5645_setting_full,
 		.data_size = ARRAY_SIZE(ov5645_setting_full),
-		.pixel_clock = 167160000,
+		.pixel_clock = 168000000,
 		.link_freq = 1 /* an index in link_freq[] */
 	},
 };
@@ -1145,7 +1145,8 @@ static int ov5645_probe(struct i2c_client *client,
 		return ret;
 	}
 
-	if (xclk_freq != 23880000) {
+	/* external clock must be 24MHz, allow 1% tolerance */
+	if (xclk_freq < 23760000 || xclk_freq > 24240000) {
 		dev_err(dev, "external clock frequency %u is not supported\n",
 			xclk_freq);
 		return -EINVAL;
drivers/media/pci/tw686x/tw686x-video.c +8 -3
index 0ea8dd44026c..3a06c000f97b 100644
@@ -1190,6 +1190,14 @@ int tw686x_video_init(struct tw686x_dev *dev)
 			return err;
 	}
 
+	/* Initialize vc->dev and vc->ch for the error path */
+	for (ch = 0; ch < max_channels(dev); ch++) {
+		struct tw686x_video_channel *vc = &dev->video_channels[ch];
+
+		vc->dev = dev;
+		vc->ch = ch;
+	}
+
 	for (ch = 0; ch < max_channels(dev); ch++) {
 		struct tw686x_video_channel *vc = &dev->video_channels[ch];
 		struct video_device *vdev;
@@ -1198,9 +1206,6 @@ int tw686x_video_init(struct tw686x_dev *dev)
 		spin_lock_init(&vc->qlock);
 		INIT_LIST_HEAD(&vc->vidq_queued);
 
-		vc->dev = dev;
-		vc->ch = ch;
-
 		/* default settings */
 		err = tw686x_set_standard(vc, V4L2_STD_NTSC);
 		if (err)
drivers/mfd/88pm860x-i2c.c +4 -4
index 84e313107233..7b9052ea7413 100644
@@ -146,14 +146,14 @@ int pm860x_page_reg_write(struct i2c_client *i2c, int reg,
 	unsigned char zero;
 	int ret;
 
-	i2c_lock_adapter(i2c->adapter);
+	i2c_lock_bus(i2c->adapter, I2C_LOCK_SEGMENT);
 	read_device(i2c, 0xFA, 0, &zero);
 	read_device(i2c, 0xFB, 0, &zero);
 	read_device(i2c, 0xFF, 0, &zero);
 	ret = write_device(i2c, reg, 1, &data);
 	read_device(i2c, 0xFE, 0, &zero);
 	read_device(i2c, 0xFC, 0, &zero);
-	i2c_unlock_adapter(i2c->adapter);
+	i2c_unlock_bus(i2c->adapter, I2C_LOCK_SEGMENT);
 	return ret;
 }
 EXPORT_SYMBOL(pm860x_page_reg_write);
@@ -164,14 +164,14 @@ int pm860x_page_bulk_read(struct i2c_client *i2c, int reg,
 	unsigned char zero = 0;
 	int ret;
 
-	i2c_lock_adapter(i2c->adapter);
+	i2c_lock_bus(i2c->adapter, I2C_LOCK_SEGMENT);
 	read_device(i2c, 0xfa, 0, &zero);
 	read_device(i2c, 0xfb, 0, &zero);
 	read_device(i2c, 0xff, 0, &zero);
 	ret = read_device(i2c, reg, count, buf);
 	read_device(i2c, 0xFE, 0, &zero);
 	read_device(i2c, 0xFC, 0, &zero);
-	i2c_unlock_adapter(i2c->adapter);
+	i2c_unlock_bus(i2c->adapter, I2C_LOCK_SEGMENT);
 	return ret;
 }
 EXPORT_SYMBOL(pm860x_page_bulk_read);
drivers/misc/hmc6352.c +2 -0
index eeb7eef62174..38f90e179927 100644
@@ -27,6 +27,7 @@
 #include <linux/err.h>
 #include <linux/delay.h>
 #include <linux/sysfs.h>
+#include <linux/nospec.h>
 
 static DEFINE_MUTEX(compass_mutex);
 
@@ -50,6 +51,7 @@ static int compass_store(struct device *dev, const char *buf, size_t count,
 		return ret;
 	if (val >= strlen(map))
 		return -EINVAL;
+	val = array_index_nospec(val, strlen(map));
 	mutex_lock(&compass_mutex);
 	ret = compass_command(c, map[val]);
 	mutex_unlock(&compass_mutex);
drivers/misc/ibmvmc.c +1 -1
index fb83d1375638..50d82c3d032a 100644
@@ -2131,7 +2131,7 @@ static int ibmvmc_init_crq_queue(struct crq_server_adapter *adapter)
 	retrc = plpar_hcall_norets(H_REG_CRQ,
 				   vdev->unit_address,
 				   queue->msg_token, PAGE_SIZE);
-	retrc = rc;
+	rc = retrc;
 
 	if (rc == H_RESOURCE)
 		rc = ibmvmc_reset_crq_queue(adapter);
drivers/misc/mei/bus-fixup.c +1 -1
index 0208c4b027c5..fa0236a5e59a 100644
@@ -267,7 +267,7 @@ static int mei_nfc_if_version(struct mei_cl *cl,
 
 	ret = 0;
 	bytes_recv = __mei_cl_recv(cl, (u8 *)reply, if_version_length, 0);
-	if (bytes_recv < if_version_length) {
+	if (bytes_recv < 0 || bytes_recv < if_version_length) {
 		dev_err(bus->dev, "Could not read IF version\n");
 		ret = -EIO;
 		goto err;
drivers/misc/mei/bus.c +5 -7
index b1133739fb4b..692b2f9a18cb 100644
@@ -505,17 +505,15 @@ int mei_cldev_enable(struct mei_cl_device *cldev)
 
 	cl = cldev->cl;
 
+	mutex_lock(&bus->device_lock);
 	if (cl->state == MEI_FILE_UNINITIALIZED) {
-		mutex_lock(&bus->device_lock);
 		ret = mei_cl_link(cl);
-		mutex_unlock(&bus->device_lock);
 		if (ret)
-			return ret;
+			goto out;
 		/* update pointers */
 		cl->cldev = cldev;
 	}
 
-	mutex_lock(&bus->device_lock);
 	if (mei_cl_is_connected(cl)) {
 		ret = 0;
 		goto out;
@@ -600,9 +598,8 @@ int mei_cldev_disable(struct mei_cl_device *cldev)
 	if (err < 0)
 		dev_err(bus->dev, "Could not disconnect from the ME client\n");
 
-out:
 	mei_cl_bus_module_put(cldev);
-
+out:
 	/* Flush queues and remove any pending read */
 	mei_cl_flush_queues(cl, NULL);
 	mei_cl_unlink(cl);
@@ -860,12 +857,13 @@ static void mei_cl_bus_dev_release(struct device *dev)
 
 	mei_me_cl_put(cldev->me_cl);
 	mei_dev_bus_put(cldev->bus);
+	mei_cl_unlink(cldev->cl);
 	kfree(cldev->cl);
 	kfree(cldev);
 }
 
 static const struct device_type mei_cl_device_type = {
-	.release	= mei_cl_bus_dev_release,
+	.release = mei_cl_bus_dev_release,
 };
 
 /**
drivers/misc/mei/hbm.c +6 -3
index fe6595fe94f1..995ff1b7e7b5 100644
@@ -1140,15 +1140,18 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
 
 		props_res = (struct hbm_props_response *)mei_msg;
 
-		if (props_res->status) {
+		if (props_res->status == MEI_HBMS_CLIENT_NOT_FOUND) {
+			dev_dbg(dev->dev, "hbm: properties response: %d CLIENT_NOT_FOUND\n",
+				props_res->me_addr);
+		} else if (props_res->status) {
 			dev_err(dev->dev, "hbm: properties response: wrong status = %d %s\n",
 				props_res->status,
 				mei_hbm_status_str(props_res->status));
 			return -EPROTO;
+		} else {
+			mei_hbm_me_cl_add(dev, props_res);
 		}
 
-		mei_hbm_me_cl_add(dev, props_res);
-
 		/* request property for the next client */
 		if (mei_hbm_prop_req(dev, props_res->me_addr + 1))
 			return -EIO;
drivers/mmc/host/meson-mx-sdio.c +6 -2
index 09cb89645d06..2cfec33178c1 100644
@@ -517,19 +517,23 @@ static struct mmc_host_ops meson_mx_mmc_ops = {
 static struct platform_device *meson_mx_mmc_slot_pdev(struct device *parent)
 {
 	struct device_node *slot_node;
+	struct platform_device *pdev;
 
 	/*
 	 * TODO: the MMC core framework currently does not support
 	 * controllers with multiple slots properly. So we only register
 	 * the first slot for now
 	 */
-	slot_node = of_find_compatible_node(parent->of_node, NULL, "mmc-slot");
+	slot_node = of_get_compatible_child(parent->of_node, "mmc-slot");
 	if (!slot_node) {
 		dev_warn(parent, "no 'mmc-slot' sub-node found\n");
 		return ERR_PTR(-ENOENT);
 	}
 
-	return of_platform_device_create(slot_node, NULL, parent);
+	pdev = of_platform_device_create(slot_node, NULL, parent);
+	of_node_put(slot_node);
+
+	return pdev;
 }
 
 static int meson_mx_mmc_add_host(struct meson_mx_mmc_host *host)
drivers/mmc/host/omap_hsmmc.c +1 -0
index 071693ebfe18..68760d4a5d3d 100644
@@ -2177,6 +2177,7 @@ static int omap_hsmmc_remove(struct platform_device *pdev)
 	dma_release_channel(host->tx_chan);
 	dma_release_channel(host->rx_chan);
 
+	dev_pm_clear_wake_irq(host->dev);
 	pm_runtime_dont_use_autosuspend(host->dev);
 	pm_runtime_put_sync(host->dev);
 	pm_runtime_disable(host->dev);
drivers/mmc/host/sdhci-of-esdhc.c +6 -0
index 4ffa6b173a21..8332f56e6c0d 100644
@@ -22,6 +22,7 @@
 #include <linux/sys_soc.h>
 #include <linux/clk.h>
 #include <linux/ktime.h>
+#include <linux/dma-mapping.h>
 #include <linux/mmc/host.h>
 #include "sdhci-pltfm.h"
 #include "sdhci-esdhc.h"
@@ -427,6 +428,11 @@ static void esdhc_of_adma_workaround(struct sdhci_host *host, u32 intmask)
 static int esdhc_of_enable_dma(struct sdhci_host *host)
 {
 	u32 value;
+	struct device *dev = mmc_dev(host->mmc);
+
+	if (of_device_is_compatible(dev->of_node, "fsl,ls1043a-esdhc") ||
+	    of_device_is_compatible(dev->of_node, "fsl,ls1046a-esdhc"))
+		dma_set_mask_and_coherent(dev, DMA_BIT_MASK(40));
 
 	value = sdhci_readl(host, ESDHC_DMA_SYSCTL);
 	value |= ESDHC_DMA_SNOOP;
drivers/mmc/host/sdhci-tegra.c +2 -1
index 970d38f68939..137df06b9b6e 100644
@@ -334,7 +334,8 @@ static const struct sdhci_pltfm_data sdhci_tegra30_pdata = {
 		  SDHCI_QUIRK_NO_HISPD_BIT |
 		  SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC |
 		  SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,
-	.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
+	.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
+		   SDHCI_QUIRK2_BROKEN_HS200,
 	.ops  = &tegra_sdhci_ops,
 };
 
drivers/mmc/host/sdhci.c +8 -1
index 1c828e0e9905..a7b5602ef6f7 100644
@@ -3734,14 +3734,21 @@ int sdhci_setup_host(struct sdhci_host *host)
 	    mmc_gpio_get_cd(host->mmc) < 0)
 		mmc->caps |= MMC_CAP_NEEDS_POLL;
 
-	/* If vqmmc regulator and no 1.8V signalling, then there's no UHS */
 	if (!IS_ERR(mmc->supply.vqmmc)) {
 		ret = regulator_enable(mmc->supply.vqmmc);
+
+		/* If vqmmc provides no 1.8V signalling, then there's no UHS */
 		if (!regulator_is_supported_voltage(mmc->supply.vqmmc, 1700000,
 						    1950000))
 			host->caps1 &= ~(SDHCI_SUPPORT_SDR104 |
 					 SDHCI_SUPPORT_SDR50 |
 					 SDHCI_SUPPORT_DDR50);
+
+		/* In eMMC case vqmmc might be a fixed 1.8V regulator */
+		if (!regulator_is_supported_voltage(mmc->supply.vqmmc, 2700000,
+						    3600000))
+			host->flags &= ~SDHCI_SIGNALING_330;
+
 		if (ret) {
 			pr_warn("%s: Failed to enable vqmmc regulator: %d\n",
 				mmc_hostname(mmc), ret);
drivers/mtd/maps/solutionengine.c +3 -3
index bb580bc16445..c07f21b20463 100644
@@ -59,9 +59,9 @@ static int __init init_soleng_maps(void)
 			return -ENXIO;
 		}
 	}
-	printk(KERN_NOTICE "Solution Engine: Flash at 0x%08lx, EPROM at 0x%08lx\n",
-	       soleng_flash_map.phys & 0x1fffffff,
-	       soleng_eprom_map.phys & 0x1fffffff);
+	printk(KERN_NOTICE "Solution Engine: Flash at 0x%pap, EPROM at 0x%pap\n",
+	       &soleng_flash_map.phys,
+	       &soleng_eprom_map.phys);
 	flash_mtd->owner = THIS_MODULE;
 
 	eprom_mtd = do_map_probe("map_rom", &soleng_eprom_map);
drivers/mtd/mtdchar.c +7 -3
index cd67c85cc87d..02389528f622 100644
@@ -160,8 +160,12 @@ static ssize_t mtdchar_read(struct file *file, char __user *buf, size_t count,
 
 	pr_debug("MTD_read\n");
 
-	if (*ppos + count > mtd->size)
-		count = mtd->size - *ppos;
+	if (*ppos + count > mtd->size) {
+		if (*ppos < mtd->size)
+			count = mtd->size - *ppos;
+		else
+			count = 0;
+	}
 
 	if (!count)
 		return 0;
@@ -246,7 +250,7 @@ static ssize_t mtdchar_write(struct file *file, const char __user *buf, size_t c
 
 	pr_debug("MTD_write\n");
 
-	if (*ppos == mtd->size)
+	if (*ppos >= mtd->size)
 		return -ENOSPC;
 
 	if (*ppos + count > mtd->size)
drivers/net/ethernet/amd/xgbe/xgbe-desc.c +3 -4
index cc1e4f820e64..533094233659 100644
@@ -289,7 +289,7 @@ static int xgbe_alloc_pages(struct xgbe_prv_data *pdata,
 	struct page *pages = NULL;
 	dma_addr_t pages_dma;
 	gfp_t gfp;
-	int order, ret;
+	int order;
 
 again:
 	order = alloc_order;
@@ -316,10 +316,9 @@ static int xgbe_alloc_pages(struct xgbe_prv_data *pdata,
 	/* Map the pages */
 	pages_dma = dma_map_page(pdata->dev, pages, 0,
 				 PAGE_SIZE << order, DMA_FROM_DEVICE);
-	ret = dma_mapping_error(pdata->dev, pages_dma);
-	if (ret) {
+	if (dma_mapping_error(pdata->dev, pages_dma)) {
 		put_page(pages);
-		return ret;
+		return -ENOMEM;
 	}
 
 	pa->pages = pages;
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c +3 -0
index 929d485a3a2f..e088dedc1747 100644
@@ -493,6 +493,9 @@ static void cn23xx_pf_setup_global_output_regs(struct octeon_device *oct)
 	for (q_no = srn; q_no < ern; q_no++) {
 		reg_val = octeon_read_csr(oct, CN23XX_SLI_OQ_PKT_CONTROL(q_no));
 
+		/* clear IPTR */
+		reg_val &= ~CN23XX_PKT_OUTPUT_CTL_IPTR;
+
 		/* set DPTR */
 		reg_val |= CN23XX_PKT_OUTPUT_CTL_DPTR;
 
drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c +3 -0
index 9338a0008378..1f8b7f651254 100644
@@ -165,6 +165,9 @@ static void cn23xx_vf_setup_global_output_regs(struct octeon_device *oct)
 		reg_val =
 		    octeon_read_csr(oct, CN23XX_VF_SLI_OQ_PKT_CONTROL(q_no));
 
+		/* clear IPTR */
+		reg_val &= ~CN23XX_PKT_OUTPUT_CTL_IPTR;
+
 		/* set DPTR */
 		reg_val |= CN23XX_PKT_OUTPUT_CTL_DPTR;
 
drivers/net/ethernet/cortina/gemini.c +4 -1
index 6d7404f66f84..c9a061e707c4 100644
@@ -1753,7 +1753,10 @@ static int gmac_open(struct net_device *netdev)
 	phy_start(netdev->phydev);
 
 	err = geth_resize_freeq(port);
-	if (err) {
+	/* It's fine if it's just busy, the other port has set up
+	 * the freeq in that case.
+	 */
+	if (err && (err != -EBUSY)) {
 		netdev_err(netdev, "could not resize freeq\n");
 		goto err_stop_phy;
 	}
drivers/net/ethernet/emulex/benet/be_cmds.c +1 -1
index ff92ab1daeb8..1e9d882c04ef 100644
@@ -4500,7 +4500,7 @@ int be_cmd_get_profile_config(struct be_adapter *adapter,
 				port_res->max_vfs += le16_to_cpu(pcie->num_vfs);
 			}
 		}
-		return status;
+		goto err;
 	}
 
 	pcie = be_get_pcie_desc(resp->func_param, desc_count,
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +6 -2
index 25a73bb2e642..9d69621f5ab4 100644
@@ -3081,7 +3081,6 @@ static int hns3_client_init(struct hnae3_handle *handle)
 	priv->dev = &pdev->dev;
 	priv->netdev = netdev;
 	priv->ae_handle = handle;
-	priv->ae_handle->reset_level = HNAE3_NONE_RESET;
 	priv->ae_handle->last_reset_time = jiffies;
 	priv->tx_timeout_count = 0;
 
@@ -3102,6 +3101,11 @@ static int hns3_client_init(struct hnae3_handle *handle)
 	/* Carrier off reporting is important to ethtool even BEFORE open */
 	netif_carrier_off(netdev);
 
+	if (handle->flags & HNAE3_SUPPORT_VF)
+		handle->reset_level = HNAE3_VF_RESET;
+	else
+		handle->reset_level = HNAE3_FUNC_RESET;
+
 	ret = hns3_get_ring_config(priv);
 	if (ret) {
 		ret = -ENOMEM;
@@ -3418,7 +3422,7 @@ static int hns3_reset_notify_down_enet(struct hnae3_handle *handle)
 	struct net_device *ndev = kinfo->netdev;
 
 	if (!netif_running(ndev))
-		return -EIO;
+		return 0;
 
 	return hns3_nic_net_stop(ndev);
 }
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +2 -3
index 6fd7ea8074b0..13f43b74fd6d 100644
@@ -2825,15 +2825,13 @@ static void hclge_clear_reset_cause(struct hclge_dev *hdev)
 static void hclge_reset(struct hclge_dev *hdev)
 {
 	/* perform reset of the stack & ae device for a client */
-
+	rtnl_lock();
 	hclge_notify_client(hdev, HNAE3_DOWN_CLIENT);
 
 	if (!hclge_reset_wait(hdev)) {
-		rtnl_lock();
 		hclge_notify_client(hdev, HNAE3_UNINIT_CLIENT);
 		hclge_reset_ae_dev(hdev->ae_dev);
 		hclge_notify_client(hdev, HNAE3_INIT_CLIENT);
-		rtnl_unlock();
 
 		hclge_clear_reset_cause(hdev);
 	} else {
@@ -2843,6 +2841,7 @@ static void hclge_reset(struct hclge_dev *hdev)
 	}
 
 	hclge_notify_client(hdev, HNAE3_UP_CLIENT);
+	rtnl_unlock();
 }
 
 static void hclge_reset_event(struct hnae3_handle *handle)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +6 -0
index 0319ed9ef8b8..f7f08e3fa761 100644
@@ -5011,6 +5011,12 @@ static int mvpp2_probe(struct platform_device *pdev)
 			(unsigned long)of_device_get_match_data(&pdev->dev);
 	}
 
+	/* multi queue mode isn't supported on PPV2.1, fallback to single
+	 * mode
+	 */
+	if (priv->hw_version == MVPP21)
+		queue_mode = MVPP2_QDIST_SINGLE_MODE;
+
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	base = devm_ioremap_resource(&pdev->dev, res);
 	if (IS_ERR(base))
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +1 -0
index 384c1fa49081..f167f4eec3ff 100644
@@ -452,6 +452,7 @@ const char *mlx5_command_str(int command)
 	MLX5_COMMAND_STR_CASE(SET_HCA_CAP);
 	MLX5_COMMAND_STR_CASE(QUERY_ISSI);
 	MLX5_COMMAND_STR_CASE(SET_ISSI);
+	MLX5_COMMAND_STR_CASE(SET_DRIVER_VERSION);
 	MLX5_COMMAND_STR_CASE(CREATE_MKEY);
 	MLX5_COMMAND_STR_CASE(QUERY_MKEY);
 	MLX5_COMMAND_STR_CASE(DESTROY_MKEY);
drivers/net/ethernet/mellanox/mlx5/core/dev.c +10 -5
index b994b80d5714..922811fb66e7 100644
@@ -132,11 +132,11 @@ void mlx5_add_device(struct mlx5_interface *intf, struct mlx5_priv *priv)
 	delayed_event_start(priv);
 
 	dev_ctx->context = intf->add(dev);
-	set_bit(MLX5_INTERFACE_ADDED, &dev_ctx->state);
-	if (intf->attach)
-		set_bit(MLX5_INTERFACE_ATTACHED, &dev_ctx->state);
-
 	if (dev_ctx->context) {
+		set_bit(MLX5_INTERFACE_ADDED, &dev_ctx->state);
+		if (intf->attach)
+			set_bit(MLX5_INTERFACE_ATTACHED, &dev_ctx->state);
+
 		spin_lock_irq(&priv->ctx_lock);
 		list_add_tail(&dev_ctx->list, &priv->ctx_list);
 
@@ -211,12 +211,17 @@ static void mlx5_attach_interface(struct mlx5_interface *intf, struct mlx5_priv
 	if (intf->attach) {
 		if (test_bit(MLX5_INTERFACE_ATTACHED, &dev_ctx->state))
 			goto out;
-		intf->attach(dev, dev_ctx->context);
+		if (intf->attach(dev, dev_ctx->context))
+			goto out;
+
 		set_bit(MLX5_INTERFACE_ATTACHED, &dev_ctx->state);
 	} else {
 		if (test_bit(MLX5_INTERFACE_ADDED, &dev_ctx->state))
 			goto out;
 		dev_ctx->context = intf->add(dev);
+		if (!dev_ctx->context)
+			goto out;
+
 		set_bit(MLX5_INTERFACE_ADDED, &dev_ctx->state);
 	}
 
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +1 -0
index 91f1209886ff..4c53957c918c 100644
@@ -658,6 +658,7 @@ static int esw_create_offloads_fdb_tables(struct mlx5_eswitch *esw, int nvports)
 	if (err)
 		goto miss_rule_err;
 
+	kvfree(flow_group_in);
 	return 0;
 
 miss_rule_err:
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +39 -37

135 lines not on this page · raw message

drivers/net/ethernet/mellanox/mlx5/core/health.c +9 -1
index d39b0b7011b2..9f39aeca863f 100644
@@ -331,9 +331,17 @@ void mlx5_start_health_poll(struct mlx5_core_dev *dev)
 	add_timer(&health->timer);
 }
 
-void mlx5_stop_health_poll(struct mlx5_core_dev *dev)
+void mlx5_stop_health_poll(struct mlx5_core_dev *dev, bool disable_health)
 {
 	struct mlx5_core_health *health = &dev->priv.health;
+	unsigned long flags;
+
+	if (disable_health) {
+		spin_lock_irqsave(&health->wq_lock, flags);
+		set_bit(MLX5_DROP_NEW_HEALTH_WORK, &health->flags);
+		set_bit(MLX5_DROP_NEW_RECOVERY_WORK, &health->flags);
+		spin_unlock_irqrestore(&health->wq_lock, flags);
+	}
 
 	del_timer_sync(&health->timer);
 }
drivers/net/ethernet/mellanox/mlx5/core/main.c +7 -5
index 615005e63819..76e6ca87db11 100644
@@ -874,8 +874,10 @@ static int mlx5_pci_init(struct mlx5_core_dev *dev, struct mlx5_priv *priv)
 	priv->numa_node = dev_to_node(&dev->pdev->dev);
 
 	priv->dbg_root = debugfs_create_dir(dev_name(&pdev->dev), mlx5_debugfs_root);
-	if (!priv->dbg_root)
+	if (!priv->dbg_root) {
+		dev_err(&pdev->dev, "Cannot create debugfs dir, aborting\n");
 		return -ENOMEM;
+	}
 
 	err = mlx5_pci_enable_device(dev);
 	if (err) {
@@ -924,7 +926,7 @@ static void mlx5_pci_close(struct mlx5_core_dev *dev, struct mlx5_priv *priv)
 	pci_clear_master(dev->pdev);
 	release_bar(dev->pdev);
 	mlx5_pci_disable_device(dev);
-	debugfs_remove(priv->dbg_root);
+	debugfs_remove_recursive(priv->dbg_root);
 }
 
 static int mlx5_init_once(struct mlx5_core_dev *dev, struct mlx5_priv *priv)
@@ -1266,7 +1268,7 @@ static int mlx5_load_one(struct mlx5_core_dev *dev, struct mlx5_priv *priv,
 		mlx5_cleanup_once(dev);
 
 err_stop_poll:
-	mlx5_stop_health_poll(dev);
+	mlx5_stop_health_poll(dev, boot);
 	if (mlx5_cmd_teardown_hca(dev)) {
 		dev_err(&dev->pdev->dev, "tear_down_hca failed, skip cleanup\n");
 		goto out_err;
@@ -1325,7 +1327,7 @@ static int mlx5_unload_one(struct mlx5_core_dev *dev, struct mlx5_priv *priv,
 	mlx5_free_irq_vectors(dev);
 	if (cleanup)
 		mlx5_cleanup_once(dev);
-	mlx5_stop_health_poll(dev);
+	mlx5_stop_health_poll(dev, cleanup);
 	err = mlx5_cmd_teardown_hca(dev);
 	if (err) {
 		dev_err(&dev->pdev->dev, "tear_down_hca failed, skip cleanup\n");
@@ -1587,7 +1589,7 @@ static int mlx5_try_fast_unload(struct mlx5_core_dev *dev)
 	 * with the HCA, so the health polll is no longer needed.
 	 */
 	mlx5_drain_health_wq(dev);
-	mlx5_stop_health_poll(dev);
+	mlx5_stop_health_poll(dev, false);
 
 	ret = mlx5_cmd_force_teardown_hca(dev);
 	if (ret) {
drivers/net/ethernet/mellanox/mlx5/core/wq.c +2 -2
index c8c315eb5128..d838af9539b1 100644
@@ -39,9 +39,9 @@ u32 mlx5_wq_cyc_get_size(struct mlx5_wq_cyc *wq)
 	return (u32)wq->fbc.sz_m1 + 1;
 }
 
-u32 mlx5_wq_cyc_get_frag_size(struct mlx5_wq_cyc *wq)
+u16 mlx5_wq_cyc_get_frag_size(struct mlx5_wq_cyc *wq)
 {
-	return (u32)wq->fbc.frag_sz_m1 + 1;
+	return wq->fbc.frag_sz_m1 + 1;
 }
 
 u32 mlx5_cqwq_get_size(struct mlx5_cqwq *wq)
drivers/net/ethernet/mellanox/mlx5/core/wq.h +1 -1
index 0b47126815b6..16476cc1a602 100644
@@ -80,7 +80,7 @@ int mlx5_wq_cyc_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param,
 		       void *wqc, struct mlx5_wq_cyc *wq,
 		       struct mlx5_wq_ctrl *wq_ctrl);
 u32 mlx5_wq_cyc_get_size(struct mlx5_wq_cyc *wq);
-u32 mlx5_wq_cyc_get_frag_size(struct mlx5_wq_cyc *wq);
+u16 mlx5_wq_cyc_get_frag_size(struct mlx5_wq_cyc *wq);
 
 int mlx5_wq_qp_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param,
 		      void *qpc, struct mlx5_wq_qp *wq,
drivers/net/ethernet/netronome/nfp/nfp_main.c +12 -8
index 152283d7e59c..4a540c5e27fe 100644
@@ -236,16 +236,20 @@ static int nfp_pcie_sriov_read_nfd_limit(struct nfp_pf *pf)
 	int err;
 
 	pf->limit_vfs = nfp_rtsym_read_le(pf->rtbl, "nfd_vf_cfg_max_vfs", &err);
-	if (!err)
-		return pci_sriov_set_totalvfs(pf->pdev, pf->limit_vfs);
+	if (err) {
+		/* For backwards compatibility if symbol not found allow all */
+		pf->limit_vfs = ~0;
+		if (err == -ENOENT)
+			return 0;
 
-	pf->limit_vfs = ~0;
-	/* Allow any setting for backwards compatibility if symbol not found */
-	if (err == -ENOENT)
-		return 0;
+		nfp_warn(pf->cpp, "Warning: VF limit read failed: %d\n", err);
+		return err;
+	}
 
-	nfp_warn(pf->cpp, "Warning: VF limit read failed: %d\n", err);
-	return err;
+	err = pci_sriov_set_totalvfs(pf->pdev, pf->limit_vfs);
+	if (err)
+		nfp_warn(pf->cpp, "Failed to set VF count in sysfs: %d\n", err);
+	return 0;
 }
 
 static int nfp_pcie_sriov_enable(struct pci_dev *pdev, int num_vfs)
drivers/net/ethernet/netronome/nfp/nfp_net_common.c +10 -3
index c2a9e64bc57b..bfccc1955907 100644
@@ -1093,7 +1093,7 @@ static bool nfp_net_xdp_complete(struct nfp_net_tx_ring *tx_ring)
  * @dp:		NFP Net data path struct
  * @tx_ring:	TX ring structure
  *
- * Assumes that the device is stopped
+ * Assumes that the device is stopped, must be idempotent.
  */
 static void
 nfp_net_tx_ring_reset(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring)
@@ -1295,13 +1295,18 @@ static void nfp_net_rx_give_one(const struct nfp_net_dp *dp,
  * nfp_net_rx_ring_reset() - Reflect in SW state of freelist after disable
  * @rx_ring:	RX ring structure
  *
- * Warning: Do *not* call if ring buffers were never put on the FW freelist
- *	    (i.e. device was not enabled)!
+ * Assumes that the device is stopped, must be idempotent.
  */
 static void nfp_net_rx_ring_reset(struct nfp_net_rx_ring *rx_ring)
 {
 	unsigned int wr_idx, last_idx;
 
+	/* wr_p == rd_p means ring was never fed FL bufs.  RX rings are always
+	 * kept at cnt - 1 FL bufs.
+	 */
+	if (rx_ring->wr_p == 0 && rx_ring->rd_p == 0)
+		return;
+
 	/* Move the empty entry to the end of the list */
 	wr_idx = D_IDX(rx_ring, rx_ring->wr_p);
 	last_idx = rx_ring->cnt - 1;
@@ -2524,6 +2529,8 @@ static void nfp_net_vec_clear_ring_data(struct nfp_net *nn, unsigned int idx)
 /**
  * nfp_net_clear_config_and_disable() - Clear control BAR and disable NFP
  * @nn:      NFP Net device to reconfigure
+ *
+ * Warning: must be fully idempotent.
  */
 static void nfp_net_clear_config_and_disable(struct nfp_net *nn)
 {
drivers/net/ethernet/qualcomm/qca_7k.c +36 -40

105 lines not on this page · raw message

drivers/net/ethernet/qualcomm/qca_spi.c +57 -53

171 lines not on this page · raw message

drivers/net/ethernet/qualcomm/qca_spi.h +0 -5
index fc4beb1b32d1..fc0e98726b36 100644
@@ -83,11 +83,6 @@ struct qcaspi {
 	struct tx_ring txr;
 	struct qcaspi_stats stats;
 
-	struct spi_message spi_msg1;
-	struct spi_message spi_msg2;
-	struct spi_transfer spi_xfer1;
-	struct spi_transfer spi_xfer2[2];
-
 	u8 *rx_buffer;
 	u32 buffer_size;
 	u8 sync;
drivers/net/wan/fsl_ucc_hdlc.c +3 -3
index 9b09c9d0d0fb..5f0366a125e2 100644
@@ -192,7 +192,7 @@ static int uhdlc_init(struct ucc_hdlc_private *priv)
 	priv->ucc_pram_offset = qe_muram_alloc(sizeof(struct ucc_hdlc_param),
 				ALIGNMENT_OF_UCC_HDLC_PRAM);
 
-	if (priv->ucc_pram_offset < 0) {
+	if (IS_ERR_VALUE(priv->ucc_pram_offset)) {
 		dev_err(priv->dev, "Can not allocate MURAM for hdlc parameter.\n");
 		ret = -ENOMEM;
 		goto free_tx_bd;
@@ -230,14 +230,14 @@ static int uhdlc_init(struct ucc_hdlc_private *priv)
 
[… more lines in the raw message]

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

drivers/net/wireless/intel/iwlwifi/pcie/internal.h +8 -4
index 45ea32796cda..92b38a21cd10 100644

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

drivers/net/wireless/intel/iwlwifi/pcie/tx.c +8 -3
index 473fe7ccb07c..11bd7ce2be8e 100644

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

drivers/net/xen-netfront.c +14 -16
index 9dd2ca62d84a..c2b6aa1d485f 100644

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

drivers/nvme/host/rdma.c +2 -0
index 66ec5985c9f3..69fb62feb833 100644

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

drivers/nvme/target/io-cmd-file.c +10 -8
index 8c42b3a8c420..64c7596a46a1 100644

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

drivers/of/base.c +28 -0
index 466e3c8582f0..53a51c6911eb 100644

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

drivers/parport/parport_sunbpp.c +6 -2
index 01cf1c1a841a..8de329546b82 100644

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

drivers/pci/pcie/aer.c +6 -0
index a2e88386af28..0fbf612b8ef2 100644

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

drivers/pinctrl/mediatek/pinctrl-mt7622.c +2 -2
index 4c4740ffeb9c..3ea685634b6c 100644

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

drivers/pinctrl/pinctrl-rza1.c +13 -11
index 717c0f4449a0..f76edf664539 100644

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

drivers/pinctrl/qcom/pinctrl-msm.c +11 -3
index 0e22f52b2a19..2155a30c282b 100644

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

drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +24 -8
index 3e66e0d10010..cf82db78e69e 100644

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

drivers/platform/x86/toshiba_acpi.c +2 -1
index eef76bfa5d73..e50941c3ba54 100644

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

drivers/regulator/qcom_spmi-regulator.c +21 -13
index 9817f1a75342..ba3d5e63ada6 100644

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

drivers/remoteproc/qcom_q6v5_pil.c +0 -1
index 2bf8e7c49f2a..e5ec59102b01 100644

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

drivers/reset/reset-imx7.c +1 -1
index 4db177bc89bc..fdeac1946429 100644

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

drivers/rtc/rtc-bq4802.c +4 -0
index d768f6747961..113493b52149 100644

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

drivers/s390/net/qeth_core_main.c +2 -1
index d01ac29fd986..ffdb78421a25 100644

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

drivers/s390/net/qeth_core_sys.c +1 -0
index c3f18afb368b..cfb659747693 100644

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

drivers/scsi/libfc/fc_disc.c +4 -3
index 3f3569ec5ce3..ddc7921ae5da 100644

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

drivers/scsi/lpfc/lpfc_nvme.c +4 -1
index d723fd1d7b26..cab1fb087e6a 100644

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

drivers/scsi/lpfc/lpfc_nvmet.c +11 -1
index 7271c9d885dd..5e5ec3363b44 100644

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

drivers/soc/qcom/smem.c +5 -5
index 70b2ee80d6bd..bf4bd71ab53f 100644

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

drivers/spi/spi-dw.c +2 -1
index f693bfe95ab9..a087464efdd7 100644

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

drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +1 -1
index 396371728aa1..537d5bb5e294 100644

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

drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +10 -6
index f0cefa1b7b0f..b20d34449ed4 100644

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

drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c +4 -3
index ce26741ae9d9..3f61d04c47ab 100644

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

drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +6 -5
index f5b5ead6347c..51e5b04ff0f5 100644

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

drivers/tty/serial/8250/8250_of.c +1 -1
index bfb37f0be22f..863e86b9a424 100644

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

drivers/tty/tty_baudrate.c +10 -3
index 6ff8cdfc9d2a..3e827a3d48d5 100644

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

drivers/usb/class/cdc-acm.c +0 -73

73 lines not on this page · raw message

drivers/usb/class/cdc-acm.h +0 -1
index eacc116e83da..ca06b20d7af9 100644

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

drivers/usb/class/cdc-wdm.c +1 -1
index a0d284ef3f40..632a2bfabc08 100644

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

drivers/usb/core/hcd-pci.c +0 -2
index 66fe1b78d952..03432467b05f 100644

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

drivers/usb/core/message.c +11 -0
index 1a15392326fc..525ebd03cfe5 100644

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

drivers/usb/core/quirks.c +7 -0
index 097057d2eacf..e77dfe5ed5ec 100644

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

drivers/usb/dwc3/gadget.h +1 -1
index db610c56f1d6..2aacd1afd9ff 100644

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

drivers/usb/gadget/udc/net2280.c +14 -2
index 318246d8b2e2..b02ab2a8d927 100644

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

drivers/usb/gadget/udc/renesas_usb3.c +4 -1
index 7cf98c793e04..5b5f1c8b47c9 100644

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

drivers/usb/host/u132-hcd.c +1 -1
index 032b8652910a..02f8e08b3ee8 100644

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

drivers/usb/host/xhci-mem.c +4 -0
index ef350c33dc4a..b1f27aa38b10 100644

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

drivers/usb/host/xhci.c +30 -0
index 68e6132aa8b2..c2220a7fc758 100644

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

drivers/usb/misc/uss720.c +2 -2
index de9a502491c2..69822852888a 100644

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

drivers/usb/misc/yurex.c +3 -2
index 3be40eaa1ac9..1232dd49556d 100644

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

drivers/usb/mtu3/mtu3_core.c +5 -1
index eecfd0671362..d045d8458f81 100644

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

drivers/usb/mtu3/mtu3_hw_regs.h +1 -0
index 6ee371478d89..a45bb253939f 100644

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

drivers/usb/serial/io_ti.h +1 -1
index e53c68261017..9bbcee37524e 100644

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

drivers/usb/serial/ti_usb_3410_5052.c +1 -1
index 6b22857f6e52..58fc7964ee6b 100644

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

drivers/usb/storage/scsiglue.c +9 -0
index c267f2812a04..e227bb5b794f 100644

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

drivers/usb/storage/uas.c +21 -0
index 9e9de5452860..1f7b401c4d04 100644

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

drivers/usb/storage/unusual_devs.h +7 -0
index 22fcfccf453a..f7f83b21dc74 100644

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

drivers/video/fbdev/core/modedb.c +30 -11

41 lines not on this page · raw message

drivers/video/fbdev/goldfishfb.c +1 -0
index 3b70044773b6..9fe7edf725c6 100644

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

drivers/video/fbdev/omap/omapfb_main.c +1 -1
index 585f39efcff6..1c75f4806ed3 100644

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

drivers/video/fbdev/omap2/omapfb/Makefile +2 -2
index 602edfed09df..f54c3f56b641 100644

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

drivers/video/fbdev/pxafb.c +2 -2
index 76722a59f55e..dfe382e68287 100644

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

drivers/video/fbdev/via/viafbdev.c +2 -1
index d2f785068ef4..7bb7e90b8f00 100644

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

fs/binfmt_elf.c +1 -1
index 816cc921cf36..efae2fb0930a 100644

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

fs/cifs/readdir.c +9 -2
index eeab81c9452f..e169e1a5fd35 100644

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

fs/cifs/smb2pdu.c +17 -12
index 82be1dfeca33..29cce842ed04 100644

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

fs/configfs/dir.c +11 -0
index 577cff24707b..39843fa7e11b 100644

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

fs/f2fs/super.c +13 -3
index 128d489acebb..742147cbe759 100644

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

fs/gfs2/bmap.c +1 -1
index ed6699705c13..fd5bea55fd60 100644

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

fs/gfs2/rgrp.c +2 -1
index 33abcf29bc05..b86249ebde11 100644

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

fs/namespace.c +4 -3
index bd2f4c68506a..1949e0939d40 100644

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

fs/nfs/nfs4proc.c +7 -3
index ff98e2a3f3cc..f688338b0482 100644

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

fs/nfs/nfs4state.c +2 -0
index 2bf2eaa08ca7..3c18c12a5c4c 100644

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

fs/nfs/nfs4trace.h +1 -1
index a275fba93170..708342f4692f 100644

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

fs/overlayfs/super.c +14 -12
index 704b37311467..fa2121f877c1 100644

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

fs/pstore/ram_core.c +14 -3
index 951a14edcf51..0792595ebcfb 100644

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

include/linux/crypto.h +5 -0
index 6eb06101089f..e8839d3a7559 100644

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

include/linux/mlx5/driver.h +2 -2
index 83957920653a..64f450593b54 100644

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

include/linux/of.h +8 -0
index 4d25e4f952d9..b99a1a8c2952 100644

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

kernel/audit_watch.c +11 -1
index c17c0c268436..dce35e16bff4 100644

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

kernel/bpf/cgroup.c +3 -4
index 3d83ee7df381..badabb0b435c 100644

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

kernel/events/core.c +4 -0
index eec2d5fb676b..c7b3e34811ec 100644

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

kernel/rcu/rcutorture.c +3 -2
index 42fcb7f05fac..f42cf69ef539 100644

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

kernel/sched/fair.c +6 -4
index 9c219f7b0970..478d9d3e6be9 100644

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

kernel/sched/wait.c +21 -26

47 lines not on this page · raw message

net/bluetooth/af_bluetooth.c +1 -1
index 3264e1873219..deacc52d7ff1 100644

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

net/core/skbuff.c +0 -3
index fb35b62af272..3680912f056a 100644

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

net/ipv4/ip_gre.c +5 -0
index 055f4bbba86b..41883c34a385 100644

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

net/ipv4/tcp.c +1 -1
index 4491faf83f4f..086201d96d54 100644

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

net/mac80211/cfg.c +1 -1
index bdf6fa78d0d2..aa082b71d2e4 100644

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

net/mac80211/key.c +15 -9
index ee0d0cc8dc3b..c054ac85793c 100644

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

net/rds/bind.c +4 -1
index 5aa3a64aa4f0..48257d3a4201 100644

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

net/tipc/socket.c +1 -0
index 0a5fa347135e..ac8ca238c541 100644

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

net/tls/tls_sw.c +11 -3
index 1f3d9789af30..b3344bbe336b 100644

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

net/xfrm/xfrm_policy.c +4 -1
index 7c5e8978aeaa..a94983e03a8b 100644

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

scripts/Kbuild.include +3 -0
index 86321f06461e..ed303f552f9d 100644

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

security/integrity/evm/evm_crypto.c +2 -1
index b60524310855..c20e3142b541 100644

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

security/security.c +2 -0
index 68f46d849abe..4e572b38937d 100644

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

security/smack/smack_lsm.c +9 -5
index 19de675d4504..8b6cd5a79bfa 100644

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

sound/core/pcm_lib.c +10 -4
index 44b5ae833082..a4aac948ea49 100644

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

sound/isa/msnd/msnd_pinnacle.c +2 -2
index 6c584d9b6c42..a19f802b2071 100644

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

sound/soc/codecs/hdmi-codec.c +15 -6
index 38e4a8515709..d00734d31e04 100644

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

sound/soc/codecs/rt5514.c +4 -4
index 1570b91bf018..dca82dd6e3bf 100644

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

sound/soc/codecs/rt5651.c +12 -10
index 6b5669f3e85d..39d2c67cd064 100644

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

sound/soc/qcom/qdsp6/q6afe-dai.c +1 -1
index 5002dd05bf27..f8298be7038f 100644

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

sound/usb/quirks-table.h +2 -1
index 8aac48f9c322..08aa78007020 100644

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

sound/usb/quirks.c +2 -0
index 02b6cc02767f..dde87d64bc32 100644

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

tools/hv/hv_kvp_daemon.c +1 -1
index dbf6e8bd98ba..bbb2a8ef367c 100644

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

tools/perf/arch/powerpc/util/skip-callchain-idx.c +7 -3
index ef5d59a5742e..7c6eeb4633fe 100644

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

tools/perf/tests/builtin-test.c +1 -1
index dd850a26d579..4f5de8245b32 100644

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

tools/perf/tests/shell/record+probe_libc_inet_pton.sh +31 -5
index 94e513e62b34..3013ac8f83d0 100755

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

tools/perf/util/comm.c +11 -5
index 7798a2cc8a86..31279a7bd919 100644

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

tools/perf/util/header.c +1 -1
index 653ff65aa2c3..5af58aac91ad 100644

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

tools/perf/util/machine.c +8 -1
index e7b4a8b513f2..22dbb6612b41 100644

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

tools/perf/util/map.c +11 -0
index 89ac5b5dc218..f5431092c6d1 100644

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

tools/perf/util/unwind-libdw.c +1 -1
index 538db4e5d1e6..6f318b15950e 100644

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

tools/perf/util/unwind-libunwind-local.c +1 -1
index 6a11bc7e6b27..79f521a552cf 100644

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

tools/testing/nvdimm/test/nfit.c +2 -1
index e2926f72a821..94c3bdf82ff7 100644

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

tools/testing/selftests/android/ion/ionapp_export.c +1 -0
index a944e72621a9..b5fa0a2dc968 100644

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

tools/testing/selftests/timers/raw_skew.c +5 -0
index ca6cd146aafe..dcf73c5dab6e 100644

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

tools/testing/selftests/vDSO/vdso_test.c +5 -2
index 2df26bd0099c..eda53f833d8e 100644

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

virt/kvm/arm/vgic/vgic-init.c +4 -0
index 2673efce65f3..b71417913741 100644

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

virt/kvm/arm/vgic/vgic-mmio-v2.c +3 -0
index ffc587bf4742..64e571cc02df 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.