Linux 4.18.10
Greg KH
maintainerI'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
Greg KH
maintainerMakefile +21 -8
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1605,17 +1605,17 @@ static int smu8_get_clock_by_type(struct pp_hwmgr *hwmgr, enum amd_pp_clock_typeswitch (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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1028,12 +1028,14 @@ static int ipoib_cm_rep_handler(struct ib_cm_id *cm_id, struct ib_cm_event *evenskb_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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 cpr_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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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_privif (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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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)
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/internal.h +8 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/tx.c +8 -3
Lines of this file are not shown. View the raw message.
drivers/pinctrl/mediatek/pinctrl-mt7622.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +24 -8
Lines of this file are not shown. View the raw message.
drivers/regulator/qcom_spmi-regulator.c +21 -13
Lines of this file are not shown. View the raw message.
drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +10 -6
Lines of this file are not shown. View the raw message.
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c +4 -3
Lines of this file are not shown. View the raw message.
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c +6 -5
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/video/fbdev/core/modedb.c +30 -11
41 lines not on this page · raw message
drivers/video/fbdev/omap2/omapfb/Makefile +2 -2
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
tools/perf/arch/powerpc/util/skip-callchain-idx.c +7 -3
Lines of this file are not shown. View the raw message.
tools/perf/tests/shell/record+probe_libc_inet_pton.sh +31 -5
Lines of this file are not shown. View the raw message.
tools/perf/util/unwind-libunwind-local.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/android/ion/ionapp_export.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/timers/raw_skew.c +5 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/vDSO/vdso_test.c +5 -2
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.