Skip to contentSkip to conversation

Linux 6.1.148

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Aug 15, 2025 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.1.148 kernel.

All users of the 6.1 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/filesystems/f2fs.rst                              |    6 
 Makefile                                                        |    2 
 arch/arm/boot/dts/am335x-boneblack.dts                          |    2 
 arch/arm/boot/dts/imx6ul-kontron-bl-common.dtsi                 |    1 
 arch/arm/boot/dts/vfxxx.dtsi                                    |    2 
 arch/arm/crypto/aes-neonbs-glue.c                               |    2 
 arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi            |    2 
 arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi            |    2 
 arch/arm64/boot/dts/qcom/sc7180.dtsi                            |   10 
 arch/arm64/boot/dts/qcom/sdm845.dtsi                            |   10 
 arch/m68k/Kconfig.debug                                         |    2 
 arch/m68k/kernel/early_printk.c                                 |   42 -
 arch/m68k/kernel/head.S                                         |    8 
 arch/mips/mm/tlb-r4k.c                                          |   56 +
 arch/powerpc/configs/ppc6xx_defconfig                           |    1 
 arch/powerpc/kernel/eeh.c                                       |    1 
 arch/powerpc/kernel/eeh_driver.c                                |   48 +
 arch/powerpc/kernel/eeh_pe.c                                    |   11 
 arch/powerpc/kernel/pci-hotplug.c                               |    3 
 arch/sh/Makefile                                                |   10 
 arch/sh/boot/compressed/Makefile                                |    4 
 arch/sh/boot/romimage/Makefile                                  |    4 
 arch/um/drivers/rtc_user.c                                      |    2 
 arch/x86/boot/compressed/sev.c                                  |    7 
 arch/x86/boot/cpuflags.c                                        |   13 
 arch/x86/hyperv/irqdomain.c                                     |    4 
 arch/x86/include/asm/cpufeatures.h                              |    1 
 arch/x86/kernel/cpu/amd.c                                       |    2 
 arch/x86/kernel/cpu/scattered.c                                 |    1 
 arch/x86/kernel/sev-shared.c                                    |   18 
 arch/x86/kernel/sev.c                                           |   11 
 arch/x86/mm/extable.c                                           |    5 
 drivers/base/regmap/regmap.c                                    |    2 
 drivers/block/ublk_drv.c                                        |    4 
 drivers/bus/fsl-mc/fsl-mc-bus.c                                 |   19 
 drivers/char/hw_random/mtk-rng.c                                |    4 
 drivers/clk/clk-axi-clkgen.c                                    |    2 
 drivers/clk/davinci/psc.c                                       |    5 
 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c                            |    3 
 drivers/clk/xilinx/xlnx_vcu.c                                   |    4 
 drivers/comedi/drivers/comedi_test.c                            |    2 
 drivers/cpufreq/cpufreq.c                                       |   21 
 drivers/cpufreq/intel_pstate.c                                  |    4 
 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c             |    4 
 drivers/crypto/ccp/ccp-debugfs.c                                |    3 
 drivers/crypto/img-hash.c                                       |    2 
 drivers/crypto/inside-secure/safexcel_hash.c                    |    8 
 drivers/crypto/keembay/keembay-ocs-hcu-core.c                   |    8 
 drivers/crypto/marvell/cesa/cipher.c                            |    4 
 drivers/crypto/marvell/cesa/hash.c                              |    5 
 drivers/crypto/qat/qat_common/adf_transport_debug.c             |    4 
 drivers/devfreq/devfreq.c                                       |   10 
 drivers/dma/mv_xor.c                                            |   21 
 drivers/dma/nbpfaxi.c                                           |   13 
 drivers/gpu/drm/amd/amdkfd/kfd_svm.c                            |   47 -
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c             |    2 
 drivers/gpu/drm/bridge/ti-sn65dsi86.c                           |    2 
 drivers/gpu/drm/i915/display/intel_dp.c                         |    6 
 drivers/gpu/drm/rockchip/rockchip_drm_fb.c                      |    9 
 drivers/i2c/busses/i2c-qup.c                                    |    4 
 drivers/i2c/busses/i2c-tegra.c                                  |   24 
 drivers/i2c/busses/i2c-virtio.c                                 |   15 
 drivers/iio/adc/ad7949.c                                        |    7 
 drivers/infiniband/core/cache.c                                 |    4 
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c                      |   15 
 drivers/infiniband/hw/mlx5/dm.c                                 |    2 
 drivers/input/keyboard/gpio_keys.c                              |    4 
 drivers/interconnect/qcom/sc7280.c                              |    1 
 drivers/interconnect/qcom/sc8180x.c                             |    6 
 drivers/interconnect/qcom/sc8280xp.c                            |    1 
 drivers/irqchip/Kconfig                                         |    1 
 drivers/media/v4l2-core/v4l2-ctrls-core.c                       |    8 
 drivers/mtd/ftl.c                                               |    2 
 drivers/mtd/nand/raw/atmel/nand-controller.c                    |    2 
 drivers/mtd/nand/raw/atmel/pmecc.c                              |    6 
 drivers/mtd/nand/raw/rockchip-nand-controller.c                 |   15 
 drivers/net/can/dev/dev.c                                       |   31 -
 drivers/net/can/dev/netlink.c                                   |   12 
 drivers/net/can/kvaser_pciefd.c                                 |    1 
 drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c                |    1 
 drivers/net/can/usb/peak_usb/pcan_usb_fd.c                      |   17 
 drivers/net/ethernet/emulex/benet/be_cmds.c                     |    2 
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c                |   15 
 drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c             |   15 
 drivers/net/ethernet/google/gve/gve_main.c                      |   67 +-
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c         |   36 -
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c          |    9 
 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c       |    6 
 drivers/net/ethernet/intel/e1000e/defines.h                     |    3 
 drivers/net/ethernet/intel/e1000e/ich8lan.c                     |    2 
 drivers/net/ethernet/intel/e1000e/nvm.c                         |    6 
 drivers/net/ethernet/intel/fm10k/fm10k.h                        |    3 
 drivers/net/ethernet/intel/i40e/i40e.h                          |    2 
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c                  |    3 
 drivers/net/ethernet/intel/i40e/i40e_main.c                     |   18 
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c              |    8 
 drivers/net/ethernet/intel/ice/ice_flex_pipe.c                  |    2 
 drivers/net/ethernet/intel/ixgbe/ixgbe.h                        |    3 
 drivers/net/ethernet/mellanox/mlx5/core/cmd.c                   |    4 
 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c                 |    1 
 drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c                |    4 
 drivers/net/ethernet/mellanox/mlx5/core/main.c                  |    3 
 drivers/net/phy/mscc/mscc_ptp.c                                 |    1 
 drivers/net/phy/mscc/mscc_ptp.h                                 |    1 
 drivers/net/ppp/pptp.c                                          |   18 
 drivers/net/usb/usbnet.c                                        |   11 
 drivers/net/vrf.c                                               |    2 
 drivers/net/wireless/ath/ath11k/hal.c                           |    4 
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c     |    8 
 drivers/net/wireless/intel/iwlwifi/dvm/main.c                   |   11 
 drivers/net/wireless/intel/iwlwifi/mvm/ops.c                    |    4 
 drivers/net/wireless/marvell/mwl8k.c                            |    4 
 drivers/net/wireless/purelifi/plfxlc/mac.c                      |   11 
 drivers/net/wireless/purelifi/plfxlc/mac.h                      |    2 
 drivers/net/wireless/purelifi/plfxlc/usb.c                      |   29 
 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c              |    3 
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c           |    2 
 drivers/pci/controller/pcie-rockchip-host.c                     |    2 
 drivers/pci/endpoint/functions/pci-epf-vntb.c                   |    4 
 drivers/pci/hotplug/pnv_php.c                                   |  233 +++++++
 drivers/pinctrl/sunxi/pinctrl-sunxi.c                           |   11 
 drivers/platform/x86/ideapad-laptop.c                           |    2 
 drivers/power/supply/cpcap-charger.c                            |    5 
 drivers/power/supply/max14577_charger.c                         |    4 
 drivers/powercap/dtpm_cpu.c                                     |    2 
 drivers/pps/pps.c                                               |   11 
 drivers/regulator/core.c                                        |    1 
 drivers/rtc/rtc-ds1307.c                                        |    2 
 drivers/rtc/rtc-hym8563.c                                       |    2 
 drivers/rtc/rtc-nct3018y.c                                      |    2 
 drivers/rtc/rtc-pcf85063.c                                      |    2 
 drivers/rtc/rtc-pcf8563.c                                       |    2 
 drivers/rtc/rtc-rv3028.c                                        |    2 
 drivers/scsi/elx/efct/efct_lio.c                                |    2 
 drivers/scsi/ibmvscsi_tgt/libsrp.c                              |    6 
 drivers/scsi/isci/request.c                                     |    2 
 drivers/scsi/mpt3sas/mpt3sas_scsih.c                            |    3 
 drivers/scsi/mvsas/mv_sas.c                                     |    4 
 drivers/scsi/scsi_transport_iscsi.c                             |    2 
 drivers/scsi/sd.c                                               |    4 
 drivers/soc/qcom/qmi_encdec.c                                   |   46 +
 drivers/soc/tegra/cbb/tegra234-cbb.c                            |    2 
 drivers/soundwire/stream.c                                      |    2 
 drivers/staging/fbtft/fbtft-core.c                              |    1 
 drivers/staging/nvec/nvec_power.c                               |    2 
 drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c     |    4 
 drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h |    2 
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c   |   79 +-
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c  |  172 ++---
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c   |   36 -
 drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c           |    4 
 drivers/ufs/core/ufshcd.c                                       |   10 
 drivers/usb/chipidea/ci.h                                       |   18 
 drivers/usb/chipidea/udc.c                                      |   10 
 drivers/usb/early/xhci-dbc.c                                    |    4 
 drivers/usb/gadget/composite.c                                  |    5 
 drivers/usb/host/xhci-plat.c                                    |    2 
 drivers/usb/misc/apple-mfi-fastcharge.c                         |   24 
 drivers/usb/phy/phy-mxs-usb.c                                   |    4 
 drivers/usb/serial/option.c                                     |    2 
 drivers/usb/typec/tcpm/tcpm.c                                   |   64 +-
 drivers/vfio/pci/vfio_pci_core.c                                |    2 
 drivers/vhost/scsi.c                                            |    4 
 drivers/video/fbdev/core/fbcon.c                                |    4 
 drivers/video/fbdev/imxfb.c                                     |    9 
 drivers/watchdog/ziirave_wdt.c                                  |    3 
 drivers/xen/gntdev-common.h                                     |    4 
 drivers/xen/gntdev.c                                            |   71 +-
 fs/erofs/decompressor.c                                         |   23 
 fs/erofs/dir.c                                                  |   17 
 fs/erofs/inode.c                                                |    3 
 fs/erofs/internal.h                                             |    2 
 fs/erofs/namei.c                                                |    9 
 fs/erofs/zdata.c                                                |   56 -
 fs/erofs/zmap.c                                                 |    3 
 fs/f2fs/data.c                                                  |    2 
 fs/f2fs/extent_cache.c                                          |    2 
 fs/f2fs/f2fs.h                                                  |    2 
 fs/f2fs/inode.c                                                 |   21 
 fs/f2fs/segment.h                                               |    5 
 fs/hfsplus/extents.c                                            |    3 
 fs/jfs/jfs_dmap.c                                               |    4 
 fs/jfs/jfs_imap.c                                               |   13 
 fs/nfs/dir.c                                                    |    4 
 fs/nfs/export.c                                                 |   11 
 fs/nfs/flexfilelayout/flexfilelayout.c                          |   26 
 fs/nfs/flexfilelayout/flexfilelayoutdev.c                       |    6 
 fs/nfs/internal.h                                               |    9 
 fs/nfs/nfs4proc.c                                               |   10 
 fs/nilfs2/inode.c                                               |    9 
 fs/ntfs3/file.c                                                 |    5 
 fs/orangefs/orangefs-debugfs.c                                  |    6 
 fs/proc/generic.c                                               |    2 
 fs/proc/inode.c                                                 |    2 
 fs/proc/internal.h                                              |    5 
 fs/smb/client/smbdirect.c                                       |   14 
 fs/smb/server/connection.h                                      |    1 
 fs/smb/server/smb2pdu.c                                         |   22 
 fs/smb/server/smb_common.c                                      |    2 
 fs/smb/server/transport_rdma.c                                  |   97 +--
 fs/smb/server/transport_tcp.c                                   |   17 
 fs/smb/server/vfs.c                                             |    3 
 include/linux/fs_context.h                                      |    2 
 include/linux/moduleparam.h                                     |    5 
 include/linux/pps_kernel.h                                      |    1 
 include/linux/proc_fs.h                                         |    1 
 include/linux/skbuff.h                                          |   23 
 include/linux/usb/usbnet.h                                      |    1 
 include/linux/wait_bit.h                                        |   60 ++
 include/net/tc_act/tc_ctinfo.h                                  |    6 
 include/net/udp.h                                               |   24 
 kernel/bpf/preload/Kconfig                                      |    1 
 kernel/events/core.c                                            |   20 
 kernel/kcsan/kcsan_test.c                                       |    2 
 kernel/trace/preemptirq_delay_test.c                            |   13 
 kernel/ucount.c                                                 |    2 
 mm/hmm.c                                                        |    2 
 mm/kasan/report.c                                               |    4 
 mm/khugepaged.c                                                 |    4 
 mm/zsmalloc.c                                                   |    3 
 net/appletalk/aarp.c                                            |   24 
 net/caif/cfctrl.c                                               |  294 ++++------
 net/core/filter.c                                               |    3 
 net/core/netpoll.c                                              |    7 
 net/core/skmsg.c                                                |    7 
 net/ipv4/tcp_input.c                                            |    3 
 net/ipv6/ip6_fib.c                                              |   24 
 net/ipv6/ip6_offload.c                                          |    4 
 net/ipv6/ip6mr.c                                                |    3 
 net/ipv6/route.c                                                |   56 +
 net/mac80211/tdls.c                                             |    2 
 net/mac80211/tx.c                                               |   14 
 net/netfilter/nf_tables_api.c                                   |    4 
 net/netfilter/xt_nfacct.c                                       |    4 
 net/packet/af_packet.c                                          |   12 
 net/sched/act_ctinfo.c                                          |   19 
 net/sched/sch_netem.c                                           |   40 +
 net/sched/sch_qfq.c                                             |    7 
 net/tls/tls_sw.c                                                |   13 
 net/vmw_vsock/af_vsock.c                                        |    3 
 net/xfrm/xfrm_interface_core.c                                  |    7 
 samples/mei/mei-amt-version.c                                   |    2 
 scripts/kconfig/qconf.cc                                        |    2 
 security/apparmor/include/match.h                               |    3 
 security/apparmor/match.c                                       |    1 
 sound/pci/hda/hda_tegra.c                                       |   51 +
 sound/pci/hda/patch_ca0132.c                                    |    5 
 sound/pci/hda/patch_hdmi.c                                      |   20 
 sound/pci/hda/patch_realtek.c                                   |    1 
 sound/soc/amd/yc/acp6x-mach.c                                   |    7 
 sound/soc/intel/boards/Kconfig                                  |    2 
 sound/soc/soc-dai.c                                             |   16 
 sound/soc/soc-ops.c                                             |   26 
 sound/usb/mixer_scarlett2.c                                     |    7 
 sound/x86/intel_hdmi_audio.c                                    |    2 
 tools/bpf/bpftool/net.c                                         |   15 
 tools/perf/builtin-sched.c                                      |   39 +
 tools/perf/tests/bp_account.c                                   |    1 
 tools/perf/util/evsel.c                                         |   11 
 tools/perf/util/evsel.h                                         |    2 
 tools/testing/selftests/arm64/fp/sve-ptrace.c                   |    2 
 tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc |   28 
 tools/testing/selftests/net/mptcp/Makefile                      |    3 
 tools/testing/selftests/net/mptcp/mptcp_connect_checksum.sh     |    5 
 tools/testing/selftests/net/mptcp/mptcp_connect_mmap.sh         |    5 
 tools/testing/selftests/net/mptcp/mptcp_connect_sendfile.sh     |    5 
 tools/testing/selftests/net/rtnetlink.sh                        |    6 
 tools/testing/selftests/perf_events/.gitignore                  |    1 
 tools/testing/selftests/perf_events/Makefile                    |    2 
 tools/testing/selftests/perf_events/mmap.c                      |  236 ++++++++
 tools/testing/selftests/syscall_user_dispatch/sud_test.c        |   50 -
 271 files changed, 2444 insertions(+), 1165 deletions(-)

Abdun Nihaal (2):
regmap: fix potential memory leak of regmap_bus
staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc()

Abinash Singh (1):
f2fs: fix KMSAN uninit-value in extent_info usage

Adam Ford (2):
arm64: dts: imx8mm-beacon: Fix HS400 USDHC clock speed
arm64: dts: imx8mn-beacon: Fix HS400 USDHC clock speed

Adam Queler (1):
ASoC: amd: yc: Add DMI entries to support HP 15-fb1xxx

Akhil R (1):
i2c: tegra: Fix reset error handling with ACPI

Albin Törnqvist (1):
arm: dts: ti: omap: Fixup pinheader typo

Alessandro Carminati (1):
regulator: core: fix NULL dereference on unbind due to stale coupling data

Alex Williamson (1):
vfio/pci: Separate SR-IOV VF dev_set

Alexander Wetzel (2):
wifi: mac80211: Do not schedule stopped TXQs
wifi: mac80211: Don't call fq_flow_idx() for management frames

Alexander Wilhelm (1):
soc: qcom: QMI encoding/decoding for big endian

Alok Tiwari (1):
staging: nvec: Fix incorrect null termination of battery manufacturer

Ammar Faizi (1):
net: usbnet: Fix the wrong netif_carrier_on() call

Andy Shevchenko (1):
mm/hmm: move pmd_to_hmm_pfn_flags() to the respective #ifdeffery

Andy Yan (1):
drm/rockchip: cleanup fb when drm_gem_fb_afbc_init failed

Annette Kobou (1):
ARM: dts: imx6ul-kontron-bl-common: Fix RTS polarity for RS485 interface

Arnd Bergmann (7):
ethernet: intel: fix building with large NR_CPUS
ASoC: Intel: fix SND_SOC_SOF dependencies
ASoC: ops: dynamically allocate struct snd_ctl_elem_value
caif: reduce stack size, again
crypto: arm/aes-neonbs - work around gcc-15 warning
kernel: trace: preemptirq_delay_test: use offstack cpu mask
irqchip: Build IMX_MU_MSI only on ARM

Balamanikandan Gunasundar (1):
mtd: rawnand: atmel: set pmecc data setup time

Bard Liao (1):
soundwire: stream: restore params when prepare ports fail

Ben Hutchings (1):
sh: Do not use hyphen in exported variable name

Benjamin Coddington (1):
NFS: Fixup allocation flags for nfsiod's __GFP_NORETRY

Brahmajit Das (1):
samples: mei: Fix building on musl libc

Brian Masney (6):
rtc: ds1307: fix incorrect maximum clock rate handling
rtc: hym8563: fix incorrect maximum clock rate handling
rtc: nct3018y: fix incorrect maximum clock rate handling
rtc: pcf85063: fix incorrect maximum clock rate handling
rtc: pcf8563: fix incorrect maximum clock rate handling
rtc: rv3028: fix incorrect maximum clock rate handling

Budimir Markovic (1):
vsock: Do not allow binding to VMADDR_PORT_ANY

Caleb Sander Mateos (1):
ublk: use vmalloc for ublk_device's __queues

Chao Yu (6):
f2fs: doc: fix wrong quota mount option description
f2fs: fix to avoid UAF in f2fs_sync_inode_meta()
f2fs: fix to avoid panic in f2fs_evict_inode
f2fs: fix to avoid out-of-boundary access in devs.path
f2fs: fix to update upper_p in __get_secs_required() correctly
f2fs: fix to calculate dirty data during has_not_enough_free_secs()

Charalampos Mitrodimas (1):
usb: misc: apple-mfi-fastcharge: Make power supply names unique

Charles Han (2):
power: supply: cpcap-charger: Fix null check for power_supply_get_by_name
power: supply: max14577: Handle NULL pdata when CONFIG_OF is not set

Chenyuan Yang (1):
fbdev: imxfb: Check fb_add_videomode to prevent null-ptr-deref

Chiara Meiohas (1):
net/mlx5: Fix memory leak in cmd_exec()

Christoph Paasch (1):
net/mlx5: Correctly set gso_segs when LRO is used

Dan Carpenter (2):
watchdog: ziirave_wdt: check record length in ziirave_firm_verify() fs/orangefs: Allow 2 more characters in do_c_string()

Daniel Dadap (1):
ALSA: hda: Add missing NVIDIA HDA codec IDs

Daniil Dulov (1):
wifi: rtl818x: Kill URBs before clearing tx status queue

Dave Hansen (1):
x86/fpu: Delay instruction pointer fixup until after warning

David Lechner (1):

      iio: adc: ad7949: use spi_is_bpw_supported()

Dawid Rezler (1):

      ALSA: hda/realtek - Add mute LED support for HP Pavilion 15-eg0xxx

Denis OSTERLAND-HEIM (1):
pps: fix poll support

Dennis Chen (1):
i40e: report VF tx_dropped with tx_errors instead of tx_discards

Dmitry Antipov (1):
jfs: reject on-disk inodes of an unsupported type

Dmitry Baryshkov (2):

      interconnect: qcom: sc8280xp: specify num_links for qnm_a1noc_cfg
      interconnect: qcom: sc8180x: specify num_nodes

Dmitry Vyukov (1):
selftests: Fix errno checking in syscall_user_dispatch test

Douglas Anderson (1):
drm/bridge: ti-sn65dsi86: Remove extra semicolon in ti_sn_bridge_probe()

Eric Dumazet (7):
net_sched: act_ctinfo: use atomic64_t for three counters
ipv6: prevent infinite loop in rt6_nlmsg_size()
ipv6: fix possible infinite loop in fib6_info_uses_dev()
ipv6: annotate data-races around rt->fib6_nsiblings
pptp: ensure minimal skb length in pptp_xmit()
ipv6: reject malicious packets in ipv6_gso_segment()
pptp: fix pptp_xmit() error path

Eyal Birger (1):
xfrm: interface: fix use-after-free after changing collect_md xfrm interface

Fabrice Gasnier (1):
Input: gpio-keys - fix a sleep while atomic with PREEMPT_RT

Fedor Pchelkin (2):
drm/amd/pm/powerplay/hwmgr/smu_helper: fix order of mask and value
netfilter: nf_tables: adjust lockdep assertions handling

Finn Thain (1):
m68k: Don't unregister boot console needlessly

Florian Westphal (1):
netfilter: xt_nfacct: don't assume acct name is null-terminated

Gao Xiang (5):
erofs: get rid of debug_one_dentry()
erofs: sunset erofs_dbg()
erofs: drop z_erofs_page_mark_eio()
erofs: simplify z_erofs_transform_plain()
erofs: address D-cache aliasing

Geoffrey D. Bennett (1):
ALSA: scarlett2: Add retry on -EPROTO from scarlett2_usb_tx()

Giovanni Cabiddu (1):
crypto: qat - fix seq_file position update in adf_ring_next()

Gokul Sivakumar (1):
wifi: brcmfmac: fix P2P discovery failure in P2P peer due to missing P2P IE

Greg Kroah-Hartman (2):
Revert "vmci: Prevent the dispatching of uninitialized payloads" Linux 6.1.148

Hans Zhang (1):
PCI: rockchip-host: Fix "Unexpected Completion" log message

Haoxiang Li (1):
ice: Fix a null pointer dereference in ice_copy_and_init_pkg()

Harry Yoo (1):
mm/zsmalloc: do not pass __GFP_MOVABLE if CONFIG_COMPACTION=n

Henry Martin (1):
clk: davinci: Add NULL check in davinci_lpsc_clk_register()

Herbert Xu (1):
crypto: marvell/cesa - Fix engine load inaccuracy

Horatiu Vultur (1):
phy: mscc: Fix parsing of unicast frames

Ian Abbott (1):
comedi: comedi_test: Fix possible deletion of uninitialized timers

Ivan Stepchenko (1):
mtd: fix possible integer overflow in erase_xfer()

Jacek Kowalski (2):
e1000e: disregard NVM checksum on tgp when valid checksum bit is not set
e1000e: ignore uninitialized checksum word on tgp

Jakub Kicinski (1):
netpoll: prevent hanging NAPI when netcons gets enabled

James Cowgill (1):
media: v4l2-ctrls: Fix H264 SEPARATE_COLOUR_PLANE check

Jamie Bainbridge (1):
i40e: When removing VF MAC filters, only check PF-set MAC

Jan Prusakowski (1):
f2fs: vm_unmap_ram() may be called from an invalid context

Jerome Brunet (1):
PCI: endpoint: pci-epf-vntb: Return -ENOENT if pci_epc_get_next_free_bar() fails

Jian Shen (2):
net: hns3: fix concurrent setting vlan filter issue
net: hns3: fixed vf get max channels bug

Jiasheng Jiang (1):
iwlwifi: Add missing check for alloc_ordered_workqueue

Jiaxun Yang (1):
MIPS: mm: tlb-r4k: Uniquify TLB entries on init

Jiayuan Chen (2):
bpf, sockmap: Fix psock incorrectly pointing to sk
bpf, ktls: Fix data corruption when using bpf_msg_pop_data() in ktls

Jimmy Assarsson (2):
can: kvaser_pciefd: Store device channel index
can: kvaser_usb: Assign netdev.dev_port based on device channel index

Johan Korsnes (1):
arch: powerpc: defconfig: Drop obsolete CONFIG_NET_CLS_TCINDEX

John Ernberg (1):
net: usbnet: Avoid potential RCU stall on LINK_CHANGE event

Juergen Gross (1):
xen/gntdev: remove struct gntdev_copy_batch from stack

Junxian Huang (1):
RDMA/hns: Fix -Wframe-larger-than issue

Kito Xu (veritas501) (1):
net: appletalk: Fix use-after-free in AARP proxy probe

Konrad Dybcio (2):
arm64: dts: qcom: sdm845: Expand IMEM region
arm64: dts: qcom: sc7180: Expand IMEM region

Konstantin Komarov (1):
Revert "fs/ntfs3: Replace inode_trylock with inode_lock"

Krzysztof Kozlowski (1):
ARM: dts: vfxxx: Correctly use two tuples for timer address

Kuninori Morimoto (1):
ASoC: soc-dai: tidyup return value of snd_soc_xlate_tdm_slot_mask()

Leo Yan (1):
perf tests bp_account: Fix leaked file descriptor

Li Lingfeng (1):
scsi: Revert "scsi: iscsi: Fix HW conn removal use after free"

Lifeng Zheng (3):

      PM / devfreq: Check governor before using governor->name
      cpufreq: Initialize cpufreq-based frequency-invariance later
      cpufreq: Init policy->rwsem before it may be possibly used

Liu Shixin (1):
mm: khugepaged: fix call hpage_collapse_scan_file() for anonymous vma

Lizhi Xu (1):
vmci: Prevent the dispatching of uninitialized payloads

Lorenzo Stoakes (1):
selftests/perf_events: Add a mmap() correctness test

Lucas De Marchi (1):
usb: early: xhci-dbc: Fix early_ioremap leak

Ma Ke (3):
bus: fsl-mc: Fix potential double device reference in fsl_mc_get_endpoint()
dpaa2-eth: Fix device reference count leak in MAC endpoint handling
dpaa2-switch: Fix device reference count leak in MAC endpoint handling

Maciej W. Rozycki (1):

      powerpc/eeh: Rely on dev->link_active_reporting

Manivannan Sadhasivam (1):
PCI: endpoint: pci-epf-vntb: Fix the incorrect usage of __iomem attribute

Maor Gottlieb (1):
RDMA/core: Rate limit GID cache warning messages

Marc Kleine-Budde (3):
can: dev: can_restart(): reverse logic to remove need for goto
can: dev: can_restart(): move debug message and stats after successful restart
can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode

Marco Elver (2):
kasan: use vmalloc_dump_obj() for vmalloc error reports
kcsan: test: Initialize dummy variable

Mark Brown (1):
kselftest/arm64: Fix check for setting new VLs in sve-ptrace

Martin Kaistra (1):
wifi: rtl8xxxu: Fix RX skb size for aggregation disabled

Masahiro Yamada (1):
kconfig: qconf: fix ConfigList::updateListAllforAll()

Matthieu Baerts (NGI0) (2):
selftests: mptcp: connect: also cover alt modes
selftests: mptcp: connect: also cover checksum

Mengbiao Xiong (1):
crypto: ccp - Fix crash when rebind ccp device for ccp.ko

Michael Grzeschik (2):
usb: typec: tcpm: allow to use sink in accessory mode
usb: typec: tcpm: allow switching to mode accessory to mux properly

Michael Zhivich (1):
x86/bugs: Fix use of possibly uninit value in amd_check_tsa_microcode()

Michal Schmidt (1):
benet: fix BUG when creating VFs

Mike Christie (1):
vhost-scsi: Fix log flooding with target does not exist errors

Mohan Kumar D (1):
ALSA: hda/tegra: Add Tegra264 support

Moon Hee Lee (1):
wifi: mac80211: reject TDLS operations when station is not associated

Murad Masimov (1):
wifi: plfxlc: Fix error handling in usb driver probe

Namhyung Kim (2):
perf sched: Fix memory leaks for evsel->priv in timehist perf sched: Fix memory leaks in 'perf sched latency'

Namjae Jeon (4):
ksmbd: fix null pointer dereference error in generate_encryptionkey
ksmbd: fix Preauh_HashValue race condition
ksmbd: fix corrupted mtime and ctime in smb2_open
ksmbd: limit repeated connections from clients with the same IP

NeilBrown (1):
sched: Add test_and_clear_wake_up_bit() and atomic_dec_and_wake_up()

Nuno Das Neves (1):
x86/hyperv: Fix usage of cpu_online_mask to get valid cpu

Nuno Sá (1):
clk: clk-axi-clkgen: fix fpfd_max frequency for zynq

Olga Kornievskaia (1):
NFSv4.2: another fix for listxattr

Ovidiu Panait (2):
crypto: sun8i-ce - fix nents passed to dma_unmap_sg()
hwrng: mtk - handle devm_pm_runtime_enable errors

Paul Chaignon (1):
bpf: Check flow_dissector ctx accesses are aligned

Paul Kocialkowski (1):
clk: sunxi-ng: v3s: Fix de clock definition

Petr Machata (1):
net: ipv6: ip6mr: Fix in/out netdev to pass to the FORWARD chain

Petr Pavlu (1):
module: Restore the moduleparam prefix length check

Philip Yang (1):
drm/amdkfd: Don't call mmput from MMU notifier callback

Praveen Kaligineedi (1):
gve: Fix stuck TX queue for DQ queue format

Quang Le (1):
net/packet: fix a race in packet_set_ring() and packet_notifier()

RD Babiera (1):
usb: typec: tcpm: apply vbus before data bringup in tcpm_src_attach

Rafael J. Wysocki (1):
cpufreq: intel_pstate: Always use HWP_DESIRED_PERF in passive mode

Remi Pommarel (2):
wifi: mac80211: Check 802.11 encaps offloading in ieee80211_tx_h_select_key() Reapply "wifi: mac80211: Update skb's control block key in ieee80211_tx_dequeue()"

Rohit Visavalia (1):
clk: xilinx: vcu: unregister pll_post only if registered correctly

Rong Zhang (1):
platform/x86: ideapad-laptop: Fix kbd backlight not remembered among boots

RubenKelevra (1):
fs_context: fix parameter name in infofc() macro

Ryan Lee (1):
apparmor: ensure WB_HISTORY_SIZE value is a power of 2

Ryusuke Konishi (1):
nilfs2: reject invalid file types when reading inodes

Salomon Dushimirimana (1):
scsi: sd: Make sd shutdown issue START STOP UNIT appropriately

Sergey Senozhatsky (1):
wifi: ath11k: clear initialized flag for deinit-ed srng lists

Seunghui Lee (1):
scsi: ufs: core: Use link recovery when h8 exit fails during runtime resume

Seungjin Bae (1):
usb: host: xhci-plat: fix incorrect type for of_match variable in xhci_plat_probe()

Shixiong Ou (1):
fbcon: Fix outdated registered_fb reference in comment

Sivan Zohar-Kotzer (1):
powercap: dtpm_cpu: Fix NULL pointer dereference in get_pd_power_uw()

Slark Xiao (1):
USB: serial: option: add Foxconn T99W709

Stanislav Fomichev (1):
vrf: Drop existing dst reference in vrf_ip6_input_dst

Stav Aviram (1):
net/mlx5: Check device memory pointer before usage

Stefan Metzmacher (5):
smb: server: remove separate empty_recvmsg_queue
smb: server: make sure we call ib_dma_unmap_single() only if we called ib_dma_map_single already
smb: server: let recv_done() consistently call put_recvmsg/smb_direct_disconnect_rdma_connection
smb: server: let recv_done() avoid touching data_transfer after cleanup/move
smb: client: let recv_done() cleanup before notifying the callers.

Stefan Wahren (1):
staging: vchiq_arm: Make vchiq_shutdown never fail

Stephane Grosjean (1):
can: peak_usb: fix USB FD devices potential malfunction

Steven Rostedt (1):
selftests/tracing: Fix false failure of subsystem event test

Sumit Gupta (1):
soc/tegra: cbb: Clear ERR_FORCE register with ERR_STATUS

Takashi Iwai (1):
ALSA: hda/ca0132: Fix missing error handling in ca0132_alt_select_out()

Tao Xue (1):
usb: gadget : fix use-after-free in composite_dev_cleanup()

Thomas Fourier (12):
mwl8k: Add missing check after DMA map
crypto: inside-secure - Fix dma_unmap_sg() nents value
scsi: ibmvscsi_tgt: Fix dma_unmap_sg() nents value
scsi: elx: efct: Fix dma_unmap_sg() nents value
scsi: mvsas: Fix dma_unmap_sg() nents value
scsi: isci: Fix dma_unmap_sg() nents value
crypto: keembay - Fix dma_unmap_sg() nents value
crypto: img-hash - Fix dma_unmap_sg() nents value
dmaengine: mv_xor: Fix missing check after DMA map and missing unmap
dmaengine: nbpfaxi: Add missing check after DMA map
mtd: rawnand: atmel: Fix dma_mapping_error() address
mtd: rawnand: rockchip: Add missing check after DMA map

Thomas Gleixner (3):
perf/core: Don't leak AUX buffer refcount on allocation failure perf/core: Exit early on perf_mmap() fail
perf/core: Prevent VMA split of buffer mappings

Thomas Weißschuh (1):
bpf/preload: Don't select USERMODE_DRIVER

Thorsten Blum (2):
smb: server: Fix extension string in ksmbd_extract_shortname()
ALSA: intel_hdmi: Fix off-by-one error in __hdmi_lpe_audio_probe()

Tigran Mkrtchyan (1):
pNFS/flexfiles: don't attempt pnfs on fatal DS errors

Timothy Pearson (5):
PCI: pnv_php: Clean up allocated IRQs on unplug
PCI: pnv_php: Work around switches with broken presence detection powerpc/eeh: Export eeh_unfreeze_pe()
powerpc/eeh: Make EEH driver device hotplug safe
PCI: pnv_php: Fix surprise plug detection and recovery

Tiwei Bie (1):
um: rtc: Avoid shadowing err in uml_rtc_start()

Tom Lendacky (1):
x86/sev: Evict cache lines during SNP memory validation

Tomas Henzl (1):
scsi: mpt3sas: Fix a fw_event memory leak

Trond Myklebust (2):
NFS: Fix wakeup of __nfs_lookup_revalidate() in unblock_revalidate()
NFS: Fix filehandle bounds checking in nfs_fh_to_dentry()

Umang Jain (3):
staging: vc04_services: Drop VCHIQ_SUCCESS usage
staging: vc04_services: Drop VCHIQ_ERROR usage
staging: vc04_services: Drop VCHIQ_RETRY usage

Uros Bizjak (1):
ucount: fix atomic_long_inc_below() argument type

Ville Syrjälä (1):
drm/i915/dp: Fix 2.7 Gbps DP_LINK_BW value on g4x

Viresh Kumar (1):
i2c: virtio: Avoid hang by using interruptible completion wait

Wang Liang (1):
net: drop UFO packets in udp_rcv_segment()

William Liu (1):
net/sched: Restrict conditions for adding duplicating netems to qdisc tree

Xiang Mei (1):
net/sched: sch_qfq: Avoid triggering might_sleep in atomic context in qfq_delete_class

Xilin Wu (1):
interconnect: qcom: sc7280: Add missing num_links to xm_pcie3_1 node

Xiu Jianfeng (1):
wifi: iwlwifi: Fix memory leak in iwl_mvm_init()

Xiumei Mu (1):
selftests: rtnetlink.sh: remove esp4_offload after test

Xu Yang (2):
usb: chipidea: add USB PHY event
usb: phy: mxs: disconnect line when USB charger is attached

Yajun Deng (1):
i40e: Add rx_missed_errors for buffer exhaustion

Yang Xiwen (1):
i2c: qup: jump out of the loop in case of timeout

Yangtao Li (1):
hfsplus: remove mutex_lock check in hfsplus_free_extents

Yonglong Liu (1):
net: hns3: disable interrupt when ptp init failed

Yuan Chen (2):
bpftool: Fix memory leak in dump_xx_nlmsg on realloc failure
pinctrl: sunxi: Fix memory leak on krealloc failure

Zheng Yu (1):
jfs: fix metapage reference count leak in dbAllocCtl

wangzijie (1):
proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al

xin.guo (1):
tcp: fix tcp_ofo_queue() to avoid including too much DUP SACK range

author maintainer
#1 lore raw
Documentation/filesystems/f2fs.rst +3 -3
index 17df9a02ccff..0625d5bce596 100644
@@ -230,9 +230,9 @@ usrjquota=<file>	 Appoint specified file and type during mount, so that quota
 grpjquota=<file>	 information can be properly updated during recovery flow,
 prjjquota=<file>	 <quota file>: must be in root directory;
 jqfmt=<quota type>	 <quota type>: [vfsold,vfsv0,vfsv1].
-offusrjquota		 Turn off user journalled quota.
-offgrpjquota		 Turn off group journalled quota.
-offprjjquota		 Turn off project journalled quota.
+usrjquota=		 Turn off user journalled quota.
+grpjquota=		 Turn off group journalled quota.
+prjjquota=		 Turn off project journalled quota.
 quota			 Enable plain user disk quota accounting.
 noquota			 Disable all plain disk quota option.
 alloc_mode=%s		 Adjust block allocation policy, which supports "reuse"
Makefile +1 -1
index 0e07b0834a7c..dd9e4faf0fd5 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 1
-SUBLEVEL = 147
+SUBLEVEL = 148
 EXTRAVERSION =
 NAME = Curry Ramen
 
arch/arm/boot/dts/am335x-boneblack.dts +1 -1
index b956e2f60fe0..d20b935c0b69 100644
@@ -34,7 +34,7 @@ &gpio0 {
 		"P9_18 [spi0_d1]",
 		"P9_17 [spi0_cs0]",
 		"[mmc0_cd]",
-		"P8_42A [ecappwm0]",
+		"P9_42A [ecappwm0]",
 		"P8_35 [lcd d12]",
 		"P8_33 [lcd d13]",
 		"P8_31 [lcd d14]",
arch/arm/boot/dts/imx6ul-kontron-bl-common.dtsi +0 -1
index 43868311f48a..bb324725411c 100644
@@ -169,7 +169,6 @@ &uart2 {
 	pinctrl-0 = <&pinctrl_uart2>;
 	linux,rs485-enabled-at-boot-time;
 	rs485-rx-during-tx;
-	rs485-rts-active-low;
 	uart-has-rtscts;
 	status = "okay";
 };
arch/arm/boot/dts/vfxxx.dtsi +1 -1
index d53f9c9db8bf..eb7973fb4713 100644
@@ -617,7 +617,7 @@ usbmisc1: usb@400b4800 {
 
 			ftm: ftm@400b8000 {
 				compatible = "fsl,ftm-timer";
-				reg = <0x400b8000 0x1000 0x400b9000 0x1000>;
+				reg = <0x400b8000 0x1000>, <0x400b9000 0x1000>;
 				interrupts = <44 IRQ_TYPE_LEVEL_HIGH>;
 				clock-names = "ftm-evt", "ftm-src",
 					"ftm-evt-counter-en", "ftm-src-counter-en";
arch/arm/crypto/aes-neonbs-glue.c +1 -1
index 0ca94b90bc4e..ba98daeb119c 100644
@@ -245,7 +245,7 @@ static int ctr_encrypt(struct skcipher_request *req)
 	while (walk.nbytes > 0) {
 		const u8 *src = walk.src.virt.addr;
 		u8 *dst = walk.dst.virt.addr;
-		int bytes = walk.nbytes;
+		unsigned int bytes = walk.nbytes;
 
 		if (unlikely(bytes < AES_BLOCK_SIZE))
 			src = dst = memcpy(buf + sizeof(buf) - bytes,
arch/arm64/boot/dts/freescale/imx8mm-beacon-som.dtsi +2 -0
index 140e251094fa..94bec023868c 100644
@@ -284,6 +284,8 @@ &usdhc3 {
 	pinctrl-0 = <&pinctrl_usdhc3>;
 	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
 	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
+	assigned-clocks = <&clk IMX8MM_CLK_USDHC3>;
+	assigned-clock-rates = <400000000>;
 	bus-width = <8>;
 	non-removable;
 	status = "okay";
arch/arm64/boot/dts/freescale/imx8mn-beacon-som.dtsi +2 -0
index c4b1c6029c9a..ef138c867fc8 100644
@@ -295,6 +295,8 @@ &usdhc3 {
 	pinctrl-0 = <&pinctrl_usdhc3>;
 	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
 	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
+	assigned-clocks = <&clk IMX8MN_CLK_USDHC3>;
+	assigned-clock-rates = <400000000>;
 	bus-width = <8>;
 	non-removable;
 	status = "okay";
arch/arm64/boot/dts/qcom/sc7180.dtsi +5 -5
index a9f937b06847..41f6f9abf52f 100644
@@ -3244,18 +3244,18 @@ spmi_bus: spmi@c440000 {
 			cell-index = <0>;
 		};
 
-		sram@146aa000 {
+		sram@14680000 {
 			compatible = "qcom,sc7180-imem", "syscon", "simple-mfd";
-			reg = <0 0x146aa000 0 0x2000>;
+			reg = <0 0x14680000 0 0x2e000>;
 
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			ranges = <0 0 0x146aa000 0x2000>;
+			ranges = <0 0 0x14680000 0x2e000>;
 
-			pil-reloc@94c {
+			pil-reloc@2a94c {
 				compatible = "qcom,pil-reloc-info";
-				reg = <0x94c 0xc8>;
+				reg = <0x2a94c 0xc8>;
 			};
 		};
 
arch/arm64/boot/dts/qcom/sdm845.dtsi +5 -5
index a5df310ce7f3..b77f65a612a1 100644
@@ -4915,18 +4915,18 @@ spmi_bus: spmi@c440000 {
 			cell-index = <0>;
 		};
 
-		sram@146bf000 {
+		sram@14680000 {
 			compatible = "qcom,sdm845-imem", "syscon", "simple-mfd";
-			reg = <0 0x146bf000 0 0x1000>;
+			reg = <0 0x14680000 0 0x40000>;
 
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			ranges = <0 0 0x146bf000 0x1000>;
+			ranges = <0 0 0x14680000 0x40000>;
 
-			pil-reloc@94c {
+			pil-reloc@3f94c {
 				compatible = "qcom,pil-reloc-info";
-				reg = <0x94c 0xc8>;
+				reg = <0x3f94c 0xc8>;
 			};
 		};
 
arch/m68k/Kconfig.debug +1 -1
index 465e28be0ce4..6a6f0ed7713f 100644
@@ -10,7 +10,7 @@ config BOOTPARAM_STRING
 
 config EARLY_PRINTK
 	bool "Early printk"
-	depends on !(SUN3 || M68000 || COLDFIRE)
+	depends on MMU_MOTOROLA
 	help
 	  Write kernel log output directly to a serial port.
 	  Where implemented, output goes to the framebuffer as well.
arch/m68k/kernel/early_printk.c +14 -28

65 lines not on this page · raw message

arch/m68k/kernel/head.S +4 -4
index 9e812d8606be..397114962a14 100644
@@ -3267,8 +3267,8 @@ func_return	putn
  *	turns around and calls the internal routines.  This routine
  *	is used by the boot console.
  *
- *	The calling parameters are:
- *		void debug_cons_nputs(const char *str, unsigned length)
+ *	The function signature is -
+ *		void debug_cons_nputs(struct console *c, const char *s, unsigned int n)
  *
  *	This routine does NOT understand variable arguments only
  *	simple strings!
@@ -3277,8 +3277,8 @@ ENTRY(debug_cons_nputs)
 	moveml	%d0/%d1/%a0,%sp@-
 	movew	%sr,%sp@-
 	ori	#0x0700,%sr
-	movel	%sp@(18),%a0		/* fetch parameter */
-	movel	%sp@(22),%d1		/* fetch parameter */
+	movel	%sp@(22),%a0		/* char *s */
+	movel	%sp@(26),%d1		/* unsigned int n */
 	jra	2f
 1:
 #ifdef CONSOLE_DEBUG
arch/mips/mm/tlb-r4k.c +55 -1

68 lines not on this page · raw message

arch/powerpc/configs/ppc6xx_defconfig +0 -1
index d23deb94b36e..4a1c19cb6ea8 100644
@@ -263,7 +263,6 @@ CONFIG_NET_SCH_DSMARK=m
 CONFIG_NET_SCH_NETEM=m
 CONFIG_NET_SCH_INGRESS=m
 CONFIG_NET_CLS_BASIC=m
-CONFIG_NET_CLS_TCINDEX=m
 CONFIG_NET_CLS_ROUTE4=m
 CONFIG_NET_CLS_FW=m
 CONFIG_NET_CLS_U32=m
arch/powerpc/kernel/eeh.c +1 -0
index 2e286bba2f64..82626363a309 100644
@@ -1130,6 +1130,7 @@ int eeh_unfreeze_pe(struct eeh_pe *pe)
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(eeh_unfreeze_pe);
 
 
 static struct pci_device_id eeh_reset_ids[] = {
arch/powerpc/kernel/eeh_driver.c +32 -16

171 lines not on this page · raw message

arch/powerpc/kernel/eeh_pe.c +6 -5
index e4624d789629..08095aeba5c9 100644
@@ -671,11 +671,12 @@ static void eeh_bridge_check_link(struct eeh_dev *edev)
 	eeh_ops->write_config(edev, cap + PCI_EXP_LNKCTL, 2, val);
 
 	/* Check link */
-	eeh_ops->read_config(edev, cap + PCI_EXP_LNKCAP, 4, &val);
-	if (!(val & PCI_EXP_LNKCAP_DLLLARC)) {
-		eeh_edev_dbg(edev, "No link reporting capability (0x%08x) \n", val);
-		msleep(1000);
-		return;
+	if (edev->pdev) {
+		if (!edev->pdev->link_active_reporting) {
+			eeh_edev_dbg(edev, "No link reporting capability\n");
+			msleep(1000);
+			return;
+		}
 	}
 
 	/* Wait the link is up until timeout (5s) */
arch/powerpc/kernel/pci-hotplug.c +3 -0
index 0fe251c6ac2c..ac70e85b0df8 100644
@@ -111,6 +111,9 @@ void pci_hp_add_devices(struct pci_bus *bus)
 	struct pci_controller *phb;
 	struct device_node *dn = pci_bus_to_OF_node(bus);
 
+	if (!dn)
+		return;
+
 	phb = pci_bus_to_host(bus);
 
 	mode = PCI_PROBE_NORMAL;
arch/sh/Makefile +5 -5
index 5c8776482530..22c47e4ad572 100644
@@ -103,16 +103,16 @@ UTS_MACHINE		:= sh
 LDFLAGS_vmlinux		+= -e _stext
 
 ifdef CONFIG_CPU_LITTLE_ENDIAN
-ld-bfd			:= elf32-sh-linux
-LDFLAGS_vmlinux		+= --defsym jiffies=jiffies_64 --oformat $(ld-bfd)
+ld_bfd			:= elf32-sh-linux
+LDFLAGS_vmlinux		+= --defsym jiffies=jiffies_64 --oformat $(ld_bfd)
 KBUILD_LDFLAGS		+= -EL
 else
-ld-bfd			:= elf32-shbig-linux
-LDFLAGS_vmlinux		+= --defsym jiffies=jiffies_64+4 --oformat $(ld-bfd)
+ld_bfd			:= elf32-shbig-linux
+LDFLAGS_vmlinux		+= --defsym jiffies=jiffies_64+4 --oformat $(ld_bfd)
 KBUILD_LDFLAGS		+= -EB
 endif
 
-export ld-bfd
+export ld_bfd
 
 # Mach groups
 machdir-$(CONFIG_SOLUTION_ENGINE)		+= mach-se
arch/sh/boot/compressed/Makefile +2 -2
index 591125c42d49..05542eb20136 100644
@@ -36,7 +36,7 @@ endif
 
 ccflags-remove-$(CONFIG_MCOUNT) += -pg
 
-LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(IMAGE_OFFSET) -e startup \
+LDFLAGS_vmlinux := --oformat $(ld_bfd) -Ttext $(IMAGE_OFFSET) -e startup \
 		   -T $(obj)/../../kernel/vmlinux.lds
 
 KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
@@ -60,7 +60,7 @@ $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE
 
 OBJCOPYFLAGS += -R .empty_zero_page
 
-LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
+LDFLAGS_piggy.o := -r --format binary --oformat $(ld_bfd) -T
 
 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix_y) FORCE
 	$(call if_changed,ld)
arch/sh/boot/romimage/Makefile +2 -2
index c7c8be58400c..17b03df0a8de 100644
@@ -13,7 +13,7 @@ mmcif-obj-$(CONFIG_CPU_SUBTYPE_SH7724)	:= $(obj)/mmcif-sh7724.o
 load-$(CONFIG_ROMIMAGE_MMCIF)		:= $(mmcif-load-y)
 obj-$(CONFIG_ROMIMAGE_MMCIF)		:= $(mmcif-obj-y)
 
-LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(load-y) -e romstart \
+LDFLAGS_vmlinux := --oformat $(ld_bfd) -Ttext $(load-y) -e romstart \
 		   -T $(obj)/../../kernel/vmlinux.lds
 
 $(obj)/vmlinux: $(obj)/head.o $(obj-y) $(obj)/piggy.o FORCE
@@ -24,7 +24,7 @@ OBJCOPYFLAGS += -j .empty_zero_page
 $(obj)/zeropage.bin: vmlinux FORCE
 	$(call if_changed,objcopy)
 
-LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
+LDFLAGS_piggy.o := -r --format binary --oformat $(ld_bfd) -T
 
 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE
 	$(call if_changed,ld)
arch/um/drivers/rtc_user.c +1 -1
index 7c3cec4c68cf..006a5a164ea9 100644
@@ -28,7 +28,7 @@ int uml_rtc_start(bool timetravel)
 	int err;
 
 	if (timetravel) {
-		int err = os_pipe(uml_rtc_irq_fds, 1, 1);
+		err = os_pipe(uml_rtc_irq_fds, 1, 1);
 		if (err)
 			goto fail;
 	} else {
arch/x86/boot/compressed/sev.c +7 -0
index 3c5d5c97f8f7..4f61d48f2575 100644
@@ -164,6 +164,13 @@ static void __page_state_change(unsigned long paddr, enum psc_op op)
 	 */
 	if (op == SNP_PAGE_STATE_PRIVATE && pvalidate(paddr, RMP_PG_SIZE_4K, 1))
 		sev_es_terminate(SEV_TERM_SET_LINUX, GHCB_TERM_PVALIDATE);
+
+	/*
+	 * If validating memory (making it private) and affected by the
+	 * cache-coherency vulnerability, perform the cache eviction mitigation.
+	 */
+	if (op == SNP_PAGE_STATE_PRIVATE && !has_cpuflag(X86_FEATURE_COHERENCY_SFW_NO))
+		sev_evict_cache((void *)paddr, 1);
 }
 
 void snp_set_page_private(unsigned long paddr)
arch/x86/boot/cpuflags.c +13 -0
index a83d67ec627d..aa4943432dcf 100644
@@ -124,5 +124,18 @@ void get_cpuflags(void)
 			cpuid(0x80000001, &ignored, &ignored, &cpu.flags[6],
 			      &cpu.flags[1]);
 		}
+
+		if (max_amd_level >= 0x8000001f) {
+			u32 ebx;
+
+			/*
+			 * The X86_FEATURE_COHERENCY_SFW_NO feature bit is in
+			 * the virtualization flags entry (word 8) and set by
+			 * scattered.c, so the bit needs to be explicitly set.
+			 */
+			cpuid(0x8000001f, &ignored, &ebx, &ignored, &ignored);
+			if (ebx & BIT(31))
+				set_bit(X86_FEATURE_COHERENCY_SFW_NO, cpu.flags);
+		}
 	}
 }
arch/x86/hyperv/irqdomain.c +1 -3
index 42c70d28ef27..865ae4be233b 100644
@@ -192,7 +192,6 @@ static void hv_irq_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
 	struct pci_dev *dev;
 	struct hv_interrupt_entry out_entry, *stored_entry;
 	struct irq_cfg *cfg = irqd_cfg(data);
-	const cpumask_t *affinity;
 	int cpu;
 	u64 status;
 
@@ -204,8 +203,7 @@ static void hv_irq_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
 		return;
 	}
 
-	affinity = irq_data_get_effective_affinity_mask(data);
-	cpu = cpumask_first_and(affinity, cpu_online_mask);
+	cpu = cpumask_first(irq_data_get_effective_affinity_mask(data));
 
 	if (data->chip_data) {
 		/*
arch/x86/include/asm/cpufeatures.h +1 -0
index 6f6ea3b9a95e..c48a9733e906 100644
@@ -230,6 +230,7 @@
 #define X86_FEATURE_FLEXPRIORITY	( 8*32+ 2) /* Intel FlexPriority */
 #define X86_FEATURE_EPT			( 8*32+ 3) /* Intel Extended Page Table */
 #define X86_FEATURE_VPID		( 8*32+ 4) /* Intel Virtual Processor ID */
+#define X86_FEATURE_COHERENCY_SFW_NO	( 8*32+ 5) /* "" SNP cache coherency software work around not needed */
 
 #define X86_FEATURE_VMMCALL		( 8*32+15) /* Prefer VMMCALL to VMCALL */
 #define X86_FEATURE_XENPV		( 8*32+16) /* "" Xen paravirtual guest */
arch/x86/kernel/cpu/amd.c +2 -0
index 4785d41558d6..2d71c329b347 100644
@@ -563,6 +563,8 @@ static bool amd_check_tsa_microcode(void)
 	p.model		= c->x86_model;
 	p.ext_model	= c->x86_model >> 4;
 	p.stepping	= c->x86_stepping;
+	/* reserved bits are expected to be 0 in test below */
+	p.__reserved	= 0;
 
 	if (c->x86 == 0x19) {
 		switch (p.ucode_rev >> 8) {
arch/x86/kernel/cpu/scattered.c +1 -0
index b9e39c9eb274..0d019e6972be 100644
@@ -45,6 +45,7 @@ static const struct cpuid_bit cpuid_bits[] = {
 	{ X86_FEATURE_CPB,		CPUID_EDX,  9, 0x80000007, 0 },
 	{ X86_FEATURE_PROC_FEEDBACK,    CPUID_EDX, 11, 0x80000007, 0 },
 	{ X86_FEATURE_MBA,		CPUID_EBX,  6, 0x80000008, 0 },
+	{ X86_FEATURE_COHERENCY_SFW_NO,	CPUID_EBX, 31, 0x8000001f, 0 },
 	{ X86_FEATURE_TSA_SQ_NO,	CPUID_ECX,  1, 0x80000021, 0 },
 	{ X86_FEATURE_TSA_L1_NO,	CPUID_ECX,  2, 0x80000021, 0 },
 	{ X86_FEATURE_PERFMON_V2,	CPUID_EAX,  0, 0x80000022, 0 },
arch/x86/kernel/sev-shared.c +18 -0
index 3fe76bf17d95..e658e83c62ae 100644
@@ -1064,3 +1064,21 @@ static void __head setup_cpuid_table(const struct cc_blob_sev_info *cc_info)
 			RIP_REL_REF(cpuid_ext_range_max) = fn->eax;
 	}
 }
+
+static inline void sev_evict_cache(void *va, int npages)
+{
+	volatile u8 val __always_unused;
+	u8 *bytes = va;
+	int page_idx;
+
+	/*
+	 * For SEV guests, a read from the first/last cache-lines of a 4K page
+	 * using the guest key is sufficient to cause a flush of all cache-lines
+	 * associated with that 4K page without incurring all the overhead of a
+	 * full CLFLUSH sequence.
+	 */
+	for (page_idx = 0; page_idx < npages; page_idx++) {
+		val = bytes[page_idx * PAGE_SIZE];
+		val = bytes[page_idx * PAGE_SIZE + PAGE_SIZE - 1];
+	}
+}
arch/x86/kernel/sev.c +10 -1
index f8a8249ae117..7b7fa85d1547 100644
@@ -676,10 +676,12 @@ static u64 __init get_jump_table_addr(void)
 
 static void pvalidate_pages(unsigned long vaddr, unsigned long npages, bool validate)
 {
-	unsigned long vaddr_end;
+	unsigned long vaddr_begin, vaddr_end;
 	int rc;
 
 	vaddr = vaddr & PAGE_MASK;
+
+	vaddr_begin = vaddr;
 	vaddr_end = vaddr + (npages << PAGE_SHIFT);
 
 	while (vaddr < vaddr_end) {
@@ -689,6 +691,13 @@ static void pvalidate_pages(unsigned long vaddr, unsigned long npages, bool vali
 
 		vaddr = vaddr + PAGE_SIZE;
 	}
+
+	/*
+	 * If validating memory (making it private) and affected by the
+	 * cache-coherency vulnerability, perform the cache eviction mitigation.
+	 */
+	if (validate && !cpu_feature_enabled(X86_FEATURE_COHERENCY_SFW_NO))
+		sev_evict_cache((void *)vaddr_begin, npages);
 }
 
 static void __head early_set_pages_state(unsigned long paddr, unsigned long npages, enum psc_op op)
arch/x86/mm/extable.c +2 -3
index 60814e110a54..fcb8e7af5b4d 100644
@@ -121,13 +121,12 @@ static bool ex_handler_sgx(const struct exception_table_entry *fixup,
 static bool ex_handler_fprestore(const struct exception_table_entry *fixup,
 				 struct pt_regs *regs)
 {
-	regs->ip = ex_fixup_addr(fixup);
-
 	WARN_ONCE(1, "Bad FPU state detected at %pB, reinitializing FPU registers.",
 		  (void *)instruction_pointer(regs));
 
 	fpu_reset_from_exception_fixup();
-	return true;
+
+	return ex_handler_default(fixup, regs);
 }
 
 static bool ex_handler_uaccess(const struct exception_table_entry *fixup,
drivers/base/regmap/regmap.c +2 -0
index f0e314abcafc..168532931c86 100644
@@ -1266,6 +1266,8 @@ struct regmap *__regmap_init(struct device *dev,
 err_map:
 	kfree(map);
 err:
+	if (bus && bus->free_on_exit)
+		kfree(bus);
 	return ERR_PTR(ret);
 }
 EXPORT_SYMBOL_GPL(__regmap_init);
drivers/block/ublk_drv.c +2 -2
index f2a99e5d304d..3a7c42f76d89 100644
@@ -1391,7 +1391,7 @@ static void ublk_deinit_queues(struct ublk_device *ub)
 
 	for (i = 0; i < nr_queues; i++)
 		ublk_deinit_queue(ub, i);
-	kfree(ub->__queues);
+	kvfree(ub->__queues);
 }
 
 static int ublk_init_queues(struct ublk_device *ub)
@@ -1402,7 +1402,7 @@ static int ublk_init_queues(struct ublk_device *ub)
 	int i, ret = -ENOMEM;
 
 	ub->queue_size = ubq_size;
-	ub->__queues = kcalloc(nr_queues, ubq_size, GFP_KERNEL);
+	ub->__queues = kvcalloc(nr_queues, ubq_size, GFP_KERNEL);
 	if (!ub->__queues)
 		return ret;
 
drivers/bus/fsl-mc/fsl-mc-bus.c +9 -10
index 6e4556530df5..3447930240b8 100644
@@ -947,6 +947,7 @@ struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev,
 	struct fsl_mc_obj_desc endpoint_desc = {{ 0 }};
 	struct dprc_endpoint endpoint1 = {{ 0 }};
 	struct dprc_endpoint endpoint2 = {{ 0 }};
+	struct fsl_mc_bus *mc_bus;
 	int state, err;
 
 	mc_bus_dev = to_fsl_mc_device(mc_dev->dev.parent);
@@ -970,6 +971,8 @@ struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev,
 	strcpy(endpoint_desc.type, endpoint2.type);
 	endpoint_desc.id = endpoint2.id;
 	endpoint = fsl_mc_device_lookup(&endpoint_desc, mc_bus_dev);
+	if (endpoint)
+		return endpoint;
 
 	/*
 	 * We know that the device has an endpoint because we verified by
@@ -977,17 +980,13 @@ struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev,
 	 * yet discovered by the fsl-mc bus, thus the lookup returned NULL.
 	 * Force a rescan of the devices in this container and retry the lookup.
 	 */
-	if (!endpoint) {
-		struct fsl_mc_bus *mc_bus = to_fsl_mc_bus(mc_bus_dev);
-
-		if (mutex_trylock(&mc_bus->scan_mutex)) {
-			err = dprc_scan_objects(mc_bus_dev, true);
-			mutex_unlock(&mc_bus->scan_mutex);
-		}
-
-		if (err < 0)
-			return ERR_PTR(err);
+	mc_bus = to_fsl_mc_bus(mc_bus_dev);
+	if (mutex_trylock(&mc_bus->scan_mutex)) {
+		err = dprc_scan_objects(mc_bus_dev, true);
+		mutex_unlock(&mc_bus->scan_mutex);
 	}
+	if (err < 0)
+		return ERR_PTR(err);
 
 	endpoint = fsl_mc_device_lookup(&endpoint_desc, mc_bus_dev);
 	/*
drivers/char/hw_random/mtk-rng.c +3 -1
index 3e00506543b6..72269d0f2a4e 100644
@@ -142,7 +142,9 @@ static int mtk_rng_probe(struct platform_device *pdev)
 	dev_set_drvdata(&pdev->dev, priv);
 	pm_runtime_set_autosuspend_delay(&pdev->dev, RNG_AUTOSUSPEND_TIMEOUT);
 	pm_runtime_use_autosuspend(&pdev->dev);
-	devm_pm_runtime_enable(&pdev->dev);
+	ret = devm_pm_runtime_enable(&pdev->dev);
+	if (ret)
+		return ret;
 
 	dev_info(&pdev->dev, "registered RNG driver\n");
 
drivers/clk/clk-axi-clkgen.c +1 -1
index bb5cd9d38993..df9a4c778351 100644
@@ -118,7 +118,7 @@ static const struct axi_clkgen_limits axi_clkgen_zynqmp_default_limits = {
 
 static const struct axi_clkgen_limits axi_clkgen_zynq_default_limits = {
 	.fpfd_min = 10000,
-	.fpfd_max = 300000,
+	.fpfd_max = 450000,
 	.fvco_min = 600000,
 	.fvco_max = 1200000,
 };
drivers/clk/davinci/psc.c +5 -0
index 42a59dbd49c8..ecb111be56f7 100644
@@ -278,6 +278,11 @@ davinci_lpsc_clk_register(struct device *dev, const char *name,
 
 	lpsc->pm_domain.name = devm_kasprintf(dev, GFP_KERNEL, "%s: %s",
 					      best_dev_name(dev), name);
+	if (!lpsc->pm_domain.name) {
+		clk_hw_unregister(&lpsc->hw);
+		kfree(lpsc);
+		return ERR_PTR(-ENOMEM);
+	}
 	lpsc->pm_domain.attach_dev = davinci_psc_genpd_attach_dev;
 	lpsc->pm_domain.detach_dev = davinci_psc_genpd_detach_dev;
 	lpsc->pm_domain.flags = GENPD_FLAG_PM_CLK;
drivers/clk/sunxi-ng/ccu-sun8i-v3s.c +1 -2
index fbb3529f0d3e..8263beac203b 100644
@@ -347,8 +347,7 @@ static SUNXI_CCU_GATE(dram_ohci_clk,	"dram-ohci",	"dram",
 
 static const char * const de_parents[] = { "pll-video", "pll-periph0" };
 static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents,
-				 0x104, 0, 4, 24, 2, BIT(31),
-				 CLK_SET_RATE_PARENT);
+				 0x104, 0, 4, 24, 3, BIT(31), 0);
 
 static const char * const tcon_parents[] = { "pll-video" };
 static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents,
drivers/clk/xilinx/xlnx_vcu.c +2 -2
index d66b1315114e..292d50ba0112 100644
@@ -587,8 +587,8 @@ static void xvcu_unregister_clock_provider(struct xvcu_device *xvcu)
 		xvcu_clk_hw_unregister_leaf(hws[CLK_XVCU_ENC_MCU]);
 	if (!IS_ERR_OR_NULL(hws[CLK_XVCU_ENC_CORE]))
 		xvcu_clk_hw_unregister_leaf(hws[CLK_XVCU_ENC_CORE]);
-
-	clk_hw_unregister_fixed_factor(xvcu->pll_post);
+	if (!IS_ERR_OR_NULL(xvcu->pll_post))
+		clk_hw_unregister_fixed_factor(xvcu->pll_post);
 }
 
 /**
drivers/comedi/drivers/comedi_test.c +1 -1
index 626d53bf9146..aecb5f193be1 100644
@@ -788,7 +788,7 @@ static void waveform_detach(struct comedi_device *dev)
 {
 	struct waveform_private *devpriv = dev->private;
 
-	if (devpriv) {
+	if (devpriv && dev->n_subdevices) {
 		del_timer_sync(&devpriv->ai_timer);
 		del_timer_sync(&devpriv->ao_timer);
 	}
drivers/cpufreq/cpufreq.c +11 -10
index 3f35ce19c7b6..805b4d26e9d2 100644
@@ -1239,6 +1239,8 @@ static struct cpufreq_policy *cpufreq_policy_alloc(unsigned int cpu)
 		goto err_free_real_cpus;
 	}
 
+	init_rwsem(&policy->rwsem);
+
 	freq_constraints_init(&policy->constraints);
 
 	policy->nb_min.notifier_call = cpufreq_notifier_min;
@@ -1261,7 +1263,6 @@ static struct cpufreq_policy *cpufreq_policy_alloc(unsigned int cpu)
 	}
 
 	INIT_LIST_HEAD(&policy->policy_list);
-	init_rwsem(&policy->rwsem);
 	spin_lock_init(&policy->transition_lock);
 	init_waitqueue_head(&policy->transition_wait);
 	INIT_WORK(&policy->update, handle_update);
@@ -2882,15 +2883,6 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data)
 	cpufreq_driver = driver_data;
 	write_unlock_irqrestore(&cpufreq_driver_lock, flags);
 
-	/*
-	 * Mark support for the scheduler's frequency invariance engine for
-	 * drivers that implement target(), target_index() or fast_switch().
-	 */
-	if (!cpufreq_driver->setpolicy) {
-		static_branch_enable_cpuslocked(&cpufreq_freq_invariance);
-		pr_debug("supports frequency invariance");
-	}
-
 	if (driver_data->setpolicy)
 		driver_data->flags |= CPUFREQ_CONST_LOOPS;
 
@@ -2921,6 +2913,15 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data)
 	hp_online = ret;
 	ret = 0;
 
+	/*
+	 * Mark support for the scheduler's frequency invariance engine for
+	 * drivers that implement target(), target_index() or fast_switch().
+	 */
+	if (!cpufreq_driver->setpolicy) {
+		static_branch_enable_cpuslocked(&cpufreq_freq_invariance);
+		pr_debug("supports frequency invariance");
+	}
+
 	pr_debug("driver %s up and running\n", driver_data->name);
 	goto out;
 
drivers/cpufreq/intel_pstate.c +2 -2
index d471d74df3bb..ee676ae1bc48 100644
@@ -2867,8 +2867,8 @@ static int intel_cpufreq_update_pstate(struct cpufreq_policy *policy,
 		int max_pstate = policy->strict_target ?
 					target_pstate : cpu->max_perf_ratio;
 
-		intel_cpufreq_hwp_update(cpu, target_pstate, max_pstate, 0,
-					 fast_switch);
+		intel_cpufreq_hwp_update(cpu, target_pstate, max_pstate,
+					 target_pstate, fast_switch);
 	} else if (target_pstate != old_pstate) {
 		intel_cpufreq_perf_ctl_update(cpu, target_pstate, fast_switch);
 	}
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c +2 -2
index 4c6afc736723..f7b6dfc3170a 100644
@@ -260,8 +260,8 @@ static int sun8i_ce_cipher_prepare(struct crypto_engine *engine, void *async_req
 	}
 
 	chan->timeout = areq->cryptlen;
-	rctx->nr_sgs = nr_sgs;
-	rctx->nr_sgd = nr_sgd;
+	rctx->nr_sgs = ns;
+	rctx->nr_sgd = nd;
 	return 0;
 
 theend_sgs:
drivers/crypto/ccp/ccp-debugfs.c +3 -0
index a1055554b47a..dc26bc22c91d 100644
@@ -319,5 +319,8 @@ void ccp5_debugfs_setup(struct ccp_device *ccp)
 
 void ccp5_debugfs_destroy(void)
 {
+	mutex_lock(&ccp_debugfs_lock);
 	debugfs_remove_recursive(ccp_debugfs_dir);
+	ccp_debugfs_dir = NULL;
+	mutex_unlock(&ccp_debugfs_lock);
 }
drivers/crypto/img-hash.c +1 -1
index 9629e98bd68b..0de49efb9ef9 100644
@@ -436,7 +436,7 @@ static int img_hash_write_via_dma_stop(struct img_hash_dev *hdev)
 	struct img_hash_request_ctx *ctx = ahash_request_ctx(hdev->req);
 
 	if (ctx->flags & DRIVER_FLAGS_SG)
-		dma_unmap_sg(hdev->dev, ctx->sg, ctx->dma_ct, DMA_TO_DEVICE);
+		dma_unmap_sg(hdev->dev, ctx->sg, 1, DMA_TO_DEVICE);
 
 	return 0;
 }
drivers/crypto/inside-secure/safexcel_hash.c +6 -2
index ecf64cc35fff..08227d44a27b 100644
@@ -249,7 +249,9 @@ static int safexcel_handle_req_result(struct safexcel_crypto_priv *priv,
 	safexcel_complete(priv, ring);
 
 	if (sreq->nents) {
-		dma_unmap_sg(priv->dev, areq->src, sreq->nents, DMA_TO_DEVICE);
+		dma_unmap_sg(priv->dev, areq->src,
+			     sg_nents_for_len(areq->src, areq->nbytes),
+			     DMA_TO_DEVICE);
 		sreq->nents = 0;
 	}
 
@@ -497,7 +499,9 @@ static int safexcel_ahash_send_req(struct crypto_async_request *async, int ring,
 			 DMA_FROM_DEVICE);
 unmap_sg:
 	if (req->nents) {
-		dma_unmap_sg(priv->dev, areq->src, req->nents, DMA_TO_DEVICE);
+		dma_unmap_sg(priv->dev, areq->src,
+			     sg_nents_for_len(areq->src, areq->nbytes),
+			     DMA_TO_DEVICE);
 		req->nents = 0;
 	}
 cdesc_rollback:
drivers/crypto/keembay/keembay-ocs-hcu-core.c +7 -1
index 0379dbf32a4c..6b46c37f00ae 100644
@@ -68,6 +68,7 @@ struct ocs_hcu_ctx {
  * @sg_data_total:  Total data in the SG list at any time.
  * @sg_data_offset: Offset into the data of the current individual SG node.
  * @sg_dma_nents:   Number of sg entries mapped in dma_list.
+ * @nents:          Number of entries in the scatterlist.
  */
 struct ocs_hcu_rctx {
 	struct ocs_hcu_dev	*hcu_dev;
@@ -91,6 +92,7 @@ struct ocs_hcu_rctx {
 	unsigned int		sg_data_total;
 	unsigned int		sg_data_offset;
 	unsigned int		sg_dma_nents;
+	unsigned int		nents;
 };
 
 /**
@@ -199,7 +201,7 @@ static void kmb_ocs_hcu_dma_cleanup(struct ahash_request *req,
 
 	/* Unmap req->src (if mapped). */
 	if (rctx->sg_dma_nents) {
-		dma_unmap_sg(dev, req->src, rctx->sg_dma_nents, DMA_TO_DEVICE);
+		dma_unmap_sg(dev, req->src, rctx->nents, DMA_TO_DEVICE);
 		rctx->sg_dma_nents = 0;
 	}
 
@@ -260,6 +262,10 @@ static int kmb_ocs_dma_prepare(struct ahash_request *req)
 			rc = -ENOMEM;
 			goto cleanup;
 		}
+
+		/* Save the value of nents to pass to dma_unmap_sg. */
+		rctx->nents = nents;
+
 		/*
 		 * The value returned by dma_map_sg() can be < nents; so update
 		 * nents accordingly.
drivers/crypto/marvell/cesa/cipher.c +3 -1
index 3876e3ce822f..eabed9d977df 100644
@@ -75,9 +75,12 @@ mv_cesa_skcipher_dma_cleanup(struct skcipher_request *req)
 static inline void mv_cesa_skcipher_cleanup(struct skcipher_request *req)
 {
 	struct mv_cesa_skcipher_req *creq = skcipher_request_ctx(req);
+	struct mv_cesa_engine *engine = creq->base.engine;
 
 	if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ)
 		mv_cesa_skcipher_dma_cleanup(req);
+
+	atomic_sub(req->cryptlen, &engine->load);
 }
 
 static void mv_cesa_skcipher_std_step(struct skcipher_request *req)
@@ -212,7 +215,6 @@ mv_cesa_skcipher_complete(struct crypto_async_request *req)
 	struct mv_cesa_engine *engine = creq->base.engine;
 	unsigned int ivsize;
 
-	atomic_sub(skreq->cryptlen, &engine->load);
 	ivsize = crypto_skcipher_ivsize(crypto_skcipher_reqtfm(skreq));
 
 	if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ) {
drivers/crypto/marvell/cesa/hash.c +3 -2
index 72b0f863dee0..66ebe26e59cb 100644
@@ -110,9 +110,12 @@ static inline void mv_cesa_ahash_dma_cleanup(struct ahash_request *req)
 static inline void mv_cesa_ahash_cleanup(struct ahash_request *req)
 {
 	struct mv_cesa_ahash_req *creq = ahash_request_ctx(req);
+	struct mv_cesa_engine *engine = creq->base.engine;
 
 	if (mv_cesa_req_get_type(&creq->base) == CESA_DMA_REQ)
 		mv_cesa_ahash_dma_cleanup(req);
+
+	atomic_sub(req->nbytes, &engine->load);
 }
 
 static void mv_cesa_ahash_last_cleanup(struct ahash_request *req)
@@ -395,8 +398,6 @@ static void mv_cesa_ahash_complete(struct crypto_async_request *req)
 			}
 		}
 	}
-
-	atomic_sub(ahashreq->nbytes, &engine->load);
 }
 
 static void mv_cesa_ahash_prepare(struct crypto_async_request *req,
drivers/crypto/qat/qat_common/adf_transport_debug.c +3 -1
index e2dd568b87b5..621b5d3dfcef 100644
@@ -31,8 +31,10 @@ static void *adf_ring_next(struct seq_file *sfile, void *v, loff_t *pos)
 	struct adf_etr_ring_data *ring = sfile->private;
 
 	if (*pos >= (ADF_SIZE_TO_RING_SIZE_IN_BYTES(ring->ring_size) /
-		     ADF_MSG_SIZE_TO_BYTES(ring->msg_size)))
+		     ADF_MSG_SIZE_TO_BYTES(ring->msg_size))) {
+		(*pos)++;
 		return NULL;
+	}
 
 	return ring->base_addr +
 		(ADF_MSG_SIZE_TO_BYTES(ring->msg_size) * (*pos)++);
drivers/devfreq/devfreq.c +3 -7
index 344e276165e4..9ab97164443e 100644
@@ -1381,15 +1381,11 @@ int devfreq_remove_governor(struct devfreq_governor *governor)
 		int ret;
 		struct device *dev = devfreq->dev.parent;
 
+		if (!devfreq->governor)
+			continue;
+
 		if (!strncmp(devfreq->governor->name, governor->name,
 			     DEVFREQ_NAME_LEN)) {
-			/* we should have a devfreq governor! */
-			if (!devfreq->governor) {
-				dev_warn(dev, "%s: Governor %s NOT present\n",
-					 __func__, governor->name);
-				continue;
-				/* Fall through */
-			}
 			ret = devfreq->governor->event_handler(devfreq,
 						DEVFREQ_GOV_STOP, NULL);
 			if (ret) {
drivers/dma/mv_xor.c +19 -2
index ea48661e87ea..ca0ba1d46283 100644
@@ -1061,8 +1061,16 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
 	 */
 	mv_chan->dummy_src_addr = dma_map_single(dma_dev->dev,
 		mv_chan->dummy_src, MV_XOR_MIN_BYTE_COUNT, DMA_FROM_DEVICE);
+	if (dma_mapping_error(dma_dev->dev, mv_chan->dummy_src_addr))
+		return ERR_PTR(-ENOMEM);
+
 	mv_chan->dummy_dst_addr = dma_map_single(dma_dev->dev,
 		mv_chan->dummy_dst, MV_XOR_MIN_BYTE_COUNT, DMA_TO_DEVICE);
+	if (dma_mapping_error(dma_dev->dev, mv_chan->dummy_dst_addr)) {
+		ret = -ENOMEM;
+		goto err_unmap_src;
+	}
+
 
 	/* allocate coherent memory for hardware descriptors
 	 * note: writecombine gives slightly better performance, but
@@ -1071,8 +1079,10 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
 	mv_chan->dma_desc_pool_virt =
 	  dma_alloc_wc(&pdev->dev, MV_XOR_POOL_SIZE, &mv_chan->dma_desc_pool,
 		       GFP_KERNEL);
-	if (!mv_chan->dma_desc_pool_virt)
-		return ERR_PTR(-ENOMEM);
+	if (!mv_chan->dma_desc_pool_virt) {
+		ret = -ENOMEM;
+		goto err_unmap_dst;
+	}
 
 	/* discover transaction capabilites from the platform data */
 	dma_dev->cap_mask = cap_mask;
@@ -1155,6 +1165,13 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
 err_free_dma:
 	dma_free_coherent(&pdev->dev, MV_XOR_POOL_SIZE,
 			  mv_chan->dma_desc_pool_virt, mv_chan->dma_desc_pool);
+err_unmap_dst:
+	dma_unmap_single(dma_dev->dev, mv_chan->dummy_dst_addr,
+			 MV_XOR_MIN_BYTE_COUNT, DMA_TO_DEVICE);
+err_unmap_src:
+	dma_unmap_single(dma_dev->dev, mv_chan->dummy_src_addr,
+			 MV_XOR_MIN_BYTE_COUNT, DMA_FROM_DEVICE);
+
 	return ERR_PTR(ret);
 }
 
drivers/dma/nbpfaxi.c +13 -0
index e389945e36f2..256ae956b55e 100644
@@ -712,6 +712,9 @@ static int nbpf_desc_page_alloc(struct nbpf_channel *chan)
 		list_add_tail(&ldesc->node, &lhead);
 		ldesc->hwdesc_dma_addr = dma_map_single(dchan->device->dev,
 					hwdesc, sizeof(*hwdesc), DMA_TO_DEVICE);
+		if (dma_mapping_error(dchan->device->dev,
+				      ldesc->hwdesc_dma_addr))
+			goto unmap_error;
 
 		dev_dbg(dev, "%s(): mapped 0x%p to %pad\n", __func__,
 			hwdesc, &ldesc->hwdesc_dma_addr);
@@ -738,6 +741,16 @@ static int nbpf_desc_page_alloc(struct nbpf_channel *chan)
 	spin_unlock_irq(&chan->lock);
 
 	return ARRAY_SIZE(dpage->desc);
+
+unmap_error:
+	while (i--) {
+		ldesc--; hwdesc--;
+
+		dma_unmap_single(dchan->device->dev, ldesc->hwdesc_dma_addr,
+				 sizeof(hwdesc), DMA_TO_DEVICE);
+	}
+
+	return -ENOMEM;
 }
 
 static void nbpf_desc_put(struct nbpf_desc *desc)
drivers/gpu/drm/amd/amdkfd/kfd_svm.c +22 -25

113 lines not on this page · raw message

drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu_helper.c +1 -1
index d0b1ab6c4523..54d191b2dc20 100644
@@ -149,7 +149,7 @@ int phm_wait_on_indirect_register(struct pp_hwmgr *hwmgr,
 	}
 
 	cgs_write_register(hwmgr->device, indirect_port, index);
-	return phm_wait_on_register(hwmgr, indirect_port + 1, mask, value);
+	return phm_wait_on_register(hwmgr, indirect_port + 1, value, mask);
 }
 
 int phm_wait_for_register_unequal(struct pp_hwmgr *hwmgr,
drivers/gpu/drm/bridge/ti-sn65dsi86.c +1 -1
index 26a064624d97..6595f954135a 100644
@@ -1333,7 +1333,7 @@ static int ti_sn_bridge_probe(struct auxiliary_device *adev,
 			regmap_update_bits(pdata->regmap, SN_HPD_DISABLE_REG,
 					   HPD_DISABLE, 0);
 		mutex_unlock(&pdata->comms_mutex);
-	};
+	}
 
 	drm_bridge_add(&pdata->bridge);
 
drivers/gpu/drm/i915/display/intel_dp.c +6 -0
index 3f65d890b8a9..9120e367a913 100644
@@ -1139,6 +1139,12 @@ int intel_dp_rate_select(struct intel_dp *intel_dp, int rate)
 void intel_dp_compute_rate(struct intel_dp *intel_dp, int port_clock,
 			   u8 *link_bw, u8 *rate_select)
 {
+	struct drm_i915_private *i915 = dp_to_i915(intel_dp);
+
+	/* FIXME g4x can't generate an exact 2.7GHz with the 96MHz non-SSC refclk */
+	if (IS_G4X(i915) && port_clock == 268800)
+		port_clock = 270000;
+
 	/* eDP 1.4 rate select method. */
 	if (intel_dp->use_rate_select) {
 		*link_bw = 0;
drivers/gpu/drm/rockchip/rockchip_drm_fb.c +1 -8
index 092bf863110b..9545ee64a90a 100644
@@ -82,16 +82,9 @@ rockchip_fb_create(struct drm_device *dev, struct drm_file *file,
 	}
 
 	if (drm_is_afbc(mode_cmd->modifier[0])) {
-		int ret, i;
-
 		ret = drm_gem_fb_afbc_init(dev, mode_cmd, afbc_fb);
 		if (ret) {
-			struct drm_gem_object **obj = afbc_fb->base.obj;
-
-			for (i = 0; i < info->num_planes; ++i)
-				drm_gem_object_put(obj[i]);
-
-			kfree(afbc_fb);
+			drm_framebuffer_put(&afbc_fb->base);
 			return ERR_PTR(ret);
 		}
 	}
drivers/i2c/busses/i2c-qup.c +3 -1
index 82de4651d18f..855aa23c96d1 100644
@@ -452,8 +452,10 @@ static int qup_i2c_bus_active(struct qup_i2c_dev *qup, int len)
 		if (!(status & I2C_STATUS_BUS_ACTIVE))
 			break;
 
-		if (time_after(jiffies, timeout))
+		if (time_after(jiffies, timeout)) {
 			ret = -ETIMEDOUT;
+			break;
+		}
 
 		usleep_range(len, len * 2);
 	}
drivers/i2c/busses/i2c-tegra.c +1 -23
index b8726167cf73..850d76d9114c 100644
@@ -623,7 +623,6 @@ static int tegra_i2c_wait_for_config_load(struct tegra_i2c_dev *i2c_dev)
 static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev)
 {
 	u32 val, clk_divisor, clk_multiplier, tsu_thd, tlow, thigh, non_hs_mode;
-	acpi_handle handle = ACPI_HANDLE(i2c_dev->dev);
 	struct i2c_timings *t = &i2c_dev->timings;
 	int err;
 
@@ -635,11 +634,7 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev)
 	 * emit a noisy warning on error, which won't stay unnoticed and
 	 * won't hose machine entirely.
 	 */
-	if (handle)
-		err = acpi_evaluate_object(handle, "_RST", NULL, NULL);
-	else
-		err = reset_control_reset(i2c_dev->rst);
-
+	err = device_reset(i2c_dev->dev);
 	WARN_ON_ONCE(err);
 
 	if (IS_DVC(i2c_dev))
@@ -1696,19 +1691,6 @@ static void tegra_i2c_parse_dt(struct tegra_i2c_dev *i2c_dev)
 		i2c_dev->is_vi = true;
 }
 
-static int tegra_i2c_init_reset(struct tegra_i2c_dev *i2c_dev)
-{
-	if (ACPI_HANDLE(i2c_dev->dev))
-		return 0;
-
-	i2c_dev->rst = devm_reset_control_get_exclusive(i2c_dev->dev, "i2c");
-	if (IS_ERR(i2c_dev->rst))
-		return dev_err_probe(i2c_dev->dev, PTR_ERR(i2c_dev->rst),
-				      "failed to get reset control\n");
-
-	return 0;
-}
-
 static int tegra_i2c_init_clocks(struct tegra_i2c_dev *i2c_dev)
 {
 	int err;
@@ -1818,10 +1800,6 @@ static int tegra_i2c_probe(struct platform_device *pdev)
 
 	tegra_i2c_parse_dt(i2c_dev);
 
-	err = tegra_i2c_init_reset(i2c_dev);
-	if (err)
-		return err;
-
 	err = tegra_i2c_init_clocks(i2c_dev);
 	if (err)
 		return err;
drivers/i2c/busses/i2c-virtio.c +8 -7
index 4b9536f50800..12e317434f78 100644
@@ -116,15 +116,16 @@ static int virtio_i2c_complete_reqs(struct virtqueue *vq,
 	for (i = 0; i < num; i++) {
 		struct virtio_i2c_req *req = &reqs[i];
 
-		wait_for_completion(&req->completion);
-
-		if (!failed && req->in_hdr.status != VIRTIO_I2C_MSG_OK)
-			failed = true;
+		if (!failed) {
+			if (wait_for_completion_interruptible(&req->completion))
+				failed = true;
+			else if (req->in_hdr.status != VIRTIO_I2C_MSG_OK)
+				failed = true;
+			else
+				j++;
+		}
 
 		i2c_put_dma_safe_msg_buf(reqs[i].buf, &msgs[i], !failed);
-
-		if (!failed)
-			j++;
 	}
 
 	return j;
drivers/iio/adc/ad7949.c +3 -4
index edd0c3a35ab7..202561cad401 100644
@@ -308,7 +308,6 @@ static void ad7949_disable_reg(void *reg)
 
 static int ad7949_spi_probe(struct spi_device *spi)
 {
-	u32 spi_ctrl_mask = spi->controller->bits_per_word_mask;
 	struct device *dev = &spi->dev;
 	const struct ad7949_adc_spec *spec;
 	struct ad7949_adc_chip *ad7949_adc;
@@ -337,11 +336,11 @@ static int ad7949_spi_probe(struct spi_device *spi)
 	ad7949_adc->resolution = spec->resolution;
 
 	/* Set SPI bits per word */
-	if (spi_ctrl_mask & SPI_BPW_MASK(ad7949_adc->resolution)) {
+	if (spi_is_bpw_supported(spi, ad7949_adc->resolution)) {
 		spi->bits_per_word = ad7949_adc->resolution;
-	} else if (spi_ctrl_mask == SPI_BPW_MASK(16)) {
+	} else if (spi_is_bpw_supported(spi, 16)) {
 		spi->bits_per_word = 16;
-	} else if (spi_ctrl_mask == SPI_BPW_MASK(8)) {
+	} else if (spi_is_bpw_supported(spi, 8)) {
 		spi->bits_per_word = 8;
 	} else {
 		dev_err(dev, "unable to find common BPW with spi controller\n");
drivers/infiniband/core/cache.c +2 -2
index 873988e5c528..0023aad0e7e4 100644
@@ -582,8 +582,8 @@ static int __ib_cache_gid_add(struct ib_device *ib_dev, u32 port,
 out_unlock:
 	mutex_unlock(&table->lock);
 	if (ret)
-		pr_warn("%s: unable to add gid %pI6 error=%d\n",
-			__func__, gid->raw, ret);
+		pr_warn_ratelimited("%s: unable to add gid %pI6 error=%d\n",
+				    __func__, gid->raw, ret);
 	return ret;
 }
 
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +10 -5
index be5d7a8ab4d4..72c719805af3 100644
@@ -5331,11 +5331,10 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
 {
 	struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device);
 	struct hns_roce_qp *hr_qp = to_hr_qp(ibqp);
-	struct hns_roce_v2_qp_context ctx[2];
-	struct hns_roce_v2_qp_context *context = ctx;
-	struct hns_roce_v2_qp_context *qpc_mask = ctx + 1;
+	struct hns_roce_v2_qp_context *context;
+	struct hns_roce_v2_qp_context *qpc_mask;
 	struct ib_device *ibdev = &hr_dev->ib_dev;
-	int ret;
+	int ret = -ENOMEM;
 
 	if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS)
 		return -EOPNOTSUPP;
@@ -5346,7 +5345,11 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
 	 * we should set all bits of the relevant fields in context mask to
 	 * 0 at the same time, else set them to 0x1.
 	 */
-	memset(context, 0, hr_dev->caps.qpc_sz);
+	context = kvzalloc(sizeof(*context), GFP_KERNEL);
+	qpc_mask = kvzalloc(sizeof(*qpc_mask), GFP_KERNEL);
+	if (!context || !qpc_mask)
+		goto out;
+
 	memset(qpc_mask, 0xff, hr_dev->caps.qpc_sz);
 
 	ret = hns_roce_v2_set_abs_fields(ibqp, attr, attr_mask, cur_state,
@@ -5388,6 +5391,8 @@ static int hns_roce_v2_modify_qp(struct ib_qp *ibqp,
 		clear_qp(hr_qp);
 
 out:
+	kvfree(qpc_mask);
+	kvfree(context);
 	return ret;
 }
 
drivers/infiniband/hw/mlx5/dm.c +1 -1
index 3669c90b2dad..672e5cfd2fca 100644
@@ -282,7 +282,7 @@ static struct ib_dm *handle_alloc_dm_memic(struct ib_ucontext *ctx,
 	int err;
 	u64 address;
 
-	if (!MLX5_CAP_DEV_MEM(dm_db->dev, memic))
+	if (!dm_db || !MLX5_CAP_DEV_MEM(dm_db->dev, memic))
 		return ERR_PTR(-EOPNOTSUPP);
 
 	dm = kzalloc(sizeof(*dm), GFP_KERNEL);
drivers/input/keyboard/gpio_keys.c +2 -2
index b55306cb354a..f8ae4b08668b 100644
@@ -495,7 +495,7 @@ static irqreturn_t gpio_keys_irq_isr(int irq, void *dev_id)
 	if (bdata->release_delay)
 		hrtimer_start(&bdata->release_timer,
 			      ms_to_ktime(bdata->release_delay),
-			      HRTIMER_MODE_REL_HARD);
+			      HRTIMER_MODE_REL);
 out:
 	spin_unlock_irqrestore(&bdata->lock, flags);
 	return IRQ_HANDLED;
@@ -635,7 +635,7 @@ static int gpio_keys_setup_key(struct platform_device *pdev,
 
 		bdata->release_delay = button->debounce_interval;
 		hrtimer_init(&bdata->release_timer,
-			     CLOCK_REALTIME, HRTIMER_MODE_REL_HARD);
+			     CLOCK_REALTIME, HRTIMER_MODE_REL);
 		bdata->release_timer.function = gpio_keys_irq_timer;
 
 		isr = gpio_keys_irq_isr;
drivers/interconnect/qcom/sc7280.c +1 -0
index 3c39edd21b6c..79794d8fd711 100644
@@ -164,6 +164,7 @@ static struct qcom_icc_node xm_pcie3_1 = {
 	.id = SC7280_MASTER_PCIE_1,
 	.channels = 1,
 	.buswidth = 8,
+	.num_links = 1,
 	.links = { SC7280_SLAVE_ANOC_PCIE_GEM_NOC },
 };
 
drivers/interconnect/qcom/sc8180x.c +6 -0
index d9ee193fb18b..df2fdce42f93 100644
@@ -1507,22 +1507,26 @@ static struct qcom_icc_bcm bcm_sh3 = {
 
 static struct qcom_icc_bcm bcm_sn0 = {
 	.name = "SN0",
+	.num_nodes = 1,
 	.nodes = { &slv_qns_gemnoc_sf }
 };
 
 static struct qcom_icc_bcm bcm_sn1 = {
 	.name = "SN1",
+	.num_nodes = 1,
 	.nodes = { &slv_qxs_imem }
 };
 
 static struct qcom_icc_bcm bcm_sn2 = {
 	.name = "SN2",
 	.keepalive = true,
+	.num_nodes = 1,
 	.nodes = { &slv_qns_gemnoc_gc }
 };
 
 static struct qcom_icc_bcm bcm_co2 = {
 	.name = "CO2",
+	.num_nodes = 1,
 	.nodes = { &mas_qnm_npu }
 };
 
@@ -1534,12 +1538,14 @@ static struct qcom_icc_bcm bcm_ip0 = {
 static struct qcom_icc_bcm bcm_sn3 = {
 	.name = "SN3",
 	.keepalive = true,
+	.num_nodes = 2,
 	.nodes = { &slv_srvc_aggre1_noc,
 		  &slv_qns_cnoc }
 };
 
 static struct qcom_icc_bcm bcm_sn4 = {
 	.name = "SN4",
+	.num_nodes = 1,
 	.nodes = { &slv_qxs_pimem }
 };
 
drivers/interconnect/qcom/sc8280xp.c +1 -0
index 489f259a02e5..d759b04e3391 100644
@@ -47,6 +47,7 @@ static struct qcom_icc_node qnm_a1noc_cfg = {
 	.id = SC8280XP_MASTER_A1NOC_CFG,
 	.channels = 1,
 	.buswidth = 4,
+	.num_links = 1,
 	.links = { SC8280XP_SLAVE_SERVICE_A1NOC },
 };
 
drivers/irqchip/Kconfig +1 -0
index a29a426e4eed..eae221b28397 100644
@@ -486,6 +486,7 @@ config IMX_MU_MSI
 	tristate "i.MX MU used as MSI controller"
 	depends on OF && HAS_IOMEM
 	depends on ARCH_MXC || COMPILE_TEST
+	depends on ARM || ARM64
 	default m if ARCH_MXC
 	select IRQ_DOMAIN
 	select IRQ_DOMAIN_HIERARCHY
drivers/media/v4l2-core/v4l2-ctrls-core.c +4 -4
index 29169170880a..ad5a40e4c2d5 100644
@@ -651,12 +651,12 @@ static int std_validate_compound(const struct v4l2_ctrl *ctrl, u32 idx,
 
 			p_h264_sps->flags &=
 				~V4L2_H264_SPS_FLAG_QPPRIME_Y_ZERO_TRANSFORM_BYPASS;
-
-			if (p_h264_sps->chroma_format_idc < 3)
-				p_h264_sps->flags &=
-					~V4L2_H264_SPS_FLAG_SEPARATE_COLOUR_PLANE;
 		}
 
+		if (p_h264_sps->chroma_format_idc < 3)
+			p_h264_sps->flags &=
+				~V4L2_H264_SPS_FLAG_SEPARATE_COLOUR_PLANE;
+
 		if (p_h264_sps->flags & V4L2_H264_SPS_FLAG_FRAME_MBS_ONLY)
 			p_h264_sps->flags &=
 				~V4L2_H264_SPS_FLAG_MB_ADAPTIVE_FRAME_FIELD;
drivers/mtd/ftl.c +1 -1
index 8c22064ead38..f2bd1984609c 100644
@@ -344,7 +344,7 @@ static int erase_xfer(partition_t *part,
             return -ENOMEM;
 
     erase->addr = xfer->Offset;
-    erase->len = 1 << part->header.EraseUnitSize;
+    erase->len = 1ULL << part->header.EraseUnitSize;
 
     ret = mtd_erase(part->mbd.mtd, erase);
     if (!ret) {
drivers/mtd/nand/raw/atmel/nand-controller.c +1 -1
index 41c6bd6e2d72..710d1d73eb35 100644
@@ -373,7 +373,7 @@ static int atmel_nand_dma_transfer(struct atmel_nand_controller *nc,
 	dma_cookie_t cookie;
 
 	buf_dma = dma_map_single(nc->dev, buf, len, dir);
-	if (dma_mapping_error(nc->dev, dev_dma)) {
+	if (dma_mapping_error(nc->dev, buf_dma)) {
 		dev_err(nc->dev,
 			"Failed to prepare a buffer for DMA access\n");
 		goto err;
drivers/mtd/nand/raw/atmel/pmecc.c +6 -0
index 3c7dee1be21d..0b402823b619 100644
@@ -143,6 +143,7 @@ struct atmel_pmecc_caps {
 	int nstrengths;
 	int el_offset;
 	bool correct_erased_chunks;
+	bool clk_ctrl;
 };
 
 struct atmel_pmecc {
@@ -843,6 +844,10 @@ static struct atmel_pmecc *atmel_pmecc_create(struct platform_device *pdev,
 	if (IS_ERR(pmecc->regs.errloc))
 		return ERR_CAST(pmecc->regs.errloc);
 
+	/* pmecc data setup time */
+	if (caps->clk_ctrl)
+		writel(PMECC_CLK_133MHZ, pmecc->regs.base + ATMEL_PMECC_CLK);
+
 	/* Disable all interrupts before registering the PMECC handler. */
 	writel(0xffffffff, pmecc->regs.base + ATMEL_PMECC_IDR);
 	atmel_pmecc_reset(pmecc);
@@ -896,6 +901,7 @@ static struct atmel_pmecc_caps at91sam9g45_caps = {
 	.strengths = atmel_pmecc_strengths,
 	.nstrengths = 5,
 	.el_offset = 0x8c,
+	.clk_ctrl = true,
 };
 
 static struct atmel_pmecc_caps sama5d4_caps = {
drivers/mtd/nand/raw/rockchip-nand-controller.c +15 -0
index d8456b849c13..1efe97fd6595 100644
@@ -657,9 +657,16 @@ static int rk_nfc_write_page_hwecc(struct nand_chip *chip, const u8 *buf,
 
 	dma_data = dma_map_single(nfc->dev, (void *)nfc->page_buf,
 				  mtd->writesize, DMA_TO_DEVICE);
+	if (dma_mapping_error(nfc->dev, dma_data))
+		return -ENOMEM;
+
 	dma_oob = dma_map_single(nfc->dev, nfc->oob_buf,
 				 ecc->steps * oob_step,
 				 DMA_TO_DEVICE);
+	if (dma_mapping_error(nfc->dev, dma_oob)) {
+		dma_unmap_single(nfc->dev, dma_data, mtd->writesize, DMA_TO_DEVICE);
+		return -ENOMEM;
+	}
 
 	reinit_completion(&nfc->done);
 	writel(INT_DMA, nfc->regs + nfc->cfg->int_en_off);
@@ -773,9 +780,17 @@ static int rk_nfc_read_page_hwecc(struct nand_chip *chip, u8 *buf, int oob_on,
 	dma_data = dma_map_single(nfc->dev, nfc->page_buf,
 				  mtd->writesize,
 				  DMA_FROM_DEVICE);
+	if (dma_mapping_error(nfc->dev, dma_data))
+		return -ENOMEM;
+
 	dma_oob = dma_map_single(nfc->dev, nfc->oob_buf,
 				 ecc->steps * oob_step,
 				 DMA_FROM_DEVICE);
+	if (dma_mapping_error(nfc->dev, dma_oob)) {
+		dma_unmap_single(nfc->dev, dma_data, mtd->writesize,
+				 DMA_FROM_DEVICE);
+		return -ENOMEM;
+	}
 
 	/*
 	 * The first blocks (4, 8 or 16 depending on the device)
drivers/net/can/dev/dev.c +17 -14
index 43125ce96f1a..89f80d74f27e 100644
@@ -125,13 +125,16 @@ void can_change_state(struct net_device *dev, struct can_frame *cf,
 EXPORT_SYMBOL_GPL(can_change_state);
 
 /* CAN device restart for bus-off recovery */
-static void can_restart(struct net_device *dev)
+static int can_restart(struct net_device *dev)
 {
 	struct can_priv *priv = netdev_priv(dev);
 	struct sk_buff *skb;
 	struct can_frame *cf;
 	int err;
 
+	if (!priv->do_set_mode)
+		return -EOPNOTSUPP;
+
 	if (netif_carrier_ok(dev))
 		netdev_err(dev, "Attempt to restart for bus-off recovery, but carrier is OK?\n");
 
@@ -142,24 +145,25 @@ static void can_restart(struct net_device *dev)
 
 	/* send restart message upstream */
 	skb = alloc_can_err_skb(dev, &cf);
-	if (!skb)
-		goto restart;
-
-	cf->can_id |= CAN_ERR_RESTARTED;
-
-	netif_rx(skb);
-
-restart:
-	netdev_dbg(dev, "restarted\n");
-	priv->can_stats.restarts++;
+	if (skb) {
+		cf->can_id |= CAN_ERR_RESTARTED;
+		netif_rx(skb);
+	}
 
 	/* Now restart the device */
 	netif_carrier_on(dev);
 	err = priv->do_set_mode(dev, CAN_MODE_START);
 	if (err) {
-		netdev_err(dev, "Error %d during restart", err);
+		netdev_err(dev, "Restart failed, error %pe\n", ERR_PTR(err));
 		netif_carrier_off(dev);
+
+		return err;
+	} else {
+		netdev_dbg(dev, "Restarted\n");
+		priv->can_stats.restarts++;
 	}
+
+	return 0;
 }
 
 static void can_restart_work(struct work_struct *work)
@@ -184,9 +188,8 @@ int can_restart_now(struct net_device *dev)
 		return -EBUSY;
 
 	cancel_delayed_work_sync(&priv->restart_work);
-	can_restart(dev);
 
-	return 0;
+	return can_restart(dev);
 }
 
 /* CAN bus-off
drivers/net/can/dev/netlink.c +12 -0
index 053d375eae4f..7425db9d34dd 100644
@@ -252,6 +252,12 @@ static int can_changelink(struct net_device *dev, struct nlattr *tb[],
 	}
 
 	if (data[IFLA_CAN_RESTART_MS]) {
+		if (!priv->do_set_mode) {
+			NL_SET_ERR_MSG(extack,
+				       "Device doesn't support restart from Bus Off");
+			return -EOPNOTSUPP;
+		}
+
 		/* Do not allow changing restart delay while running */
 		if (dev->flags & IFF_UP)
 			return -EBUSY;
@@ -259,6 +265,12 @@ static int can_changelink(struct net_device *dev, struct nlattr *tb[],
 	}
 
 	if (data[IFLA_CAN_RESTART]) {
+		if (!priv->do_set_mode) {
+			NL_SET_ERR_MSG(extack,
+				       "Device doesn't support restart from Bus Off");
+			return -EOPNOTSUPP;
+		}
+
 		/* Do not allow a restart while not running */
 		if (!(dev->flags & IFF_UP))
 			return -EINVAL;
drivers/net/can/kvaser_pciefd.c +1 -0
index 74a47244f129..c6406fc1b0d5 100644
@@ -966,6 +966,7 @@ static int kvaser_pciefd_setup_can_ctrls(struct kvaser_pciefd *pcie)
 		can->err_rep_cnt = 0;
 		can->bec.txerr = 0;
 		can->bec.rxerr = 0;
+		can->can.dev->dev_port = i;
 
 		init_completion(&can->start_comp);
 		init_completion(&can->flush_comp);
drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c +1 -0
index 65dd57247c62..57e5cb3c39c5 100644
@@ -858,6 +858,7 @@ static int kvaser_usb_init_one(struct kvaser_usb *dev, int channel)
 	}
 	SET_NETDEV_DEV(netdev, &dev->intf->dev);
 	netdev->dev_id = channel;
+	netdev->dev_port = channel;
 
 	dev->nets[channel] = priv;
 
drivers/net/can/usb/peak_usb/pcan_usb_fd.c +9 -8
index 2ea1500df393..a203b7fca2f3 100644
@@ -49,7 +49,7 @@ struct __packed pcan_ufd_fw_info {
 	__le32	ser_no;		/* S/N */
 	__le32	flags;		/* special functions */
 
-	/* extended data when type == PCAN_USBFD_TYPE_EXT */
+	/* extended data when type >= PCAN_USBFD_TYPE_EXT */
 	u8	cmd_out_ep;	/* ep for cmd */
 	u8	cmd_in_ep;	/* ep for replies */
 	u8	data_out_ep[2];	/* ep for CANx TX */
@@ -939,10 +939,11 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev)
 			dev->can.ctrlmode |= CAN_CTRLMODE_FD_NON_ISO;
 		}
 
-		/* if vendor rsp is of type 2, then it contains EP numbers to
-		 * use for cmds pipes. If not, then default EP should be used.
+		/* if vendor rsp type is greater than or equal to 2, then it
+		 * contains EP numbers to use for cmds pipes. If not, then
+		 * default EP should be used.
 		 */
-		if (fw_info->type != cpu_to_le16(PCAN_USBFD_TYPE_EXT)) {
+		if (le16_to_cpu(fw_info->type) < PCAN_USBFD_TYPE_EXT) {
 			fw_info->cmd_out_ep = PCAN_USBPRO_EP_CMDOUT;
 			fw_info->cmd_in_ep = PCAN_USBPRO_EP_CMDIN;
 		}
@@ -975,11 +976,11 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev)
 	dev->device_number =
 		le32_to_cpu(pdev->usb_if->fw_info.dev_id[dev->ctrl_idx]);
 
-	/* if vendor rsp is of type 2, then it contains EP numbers to
-	 * use for data pipes. If not, then statically defined EP are used
-	 * (see peak_usb_create_dev()).
+	/* if vendor rsp type is greater than or equal to 2, then it contains EP
+	 * numbers to use for data pipes. If not, then statically defined EP are
+	 * used (see peak_usb_create_dev()).
 	 */
-	if (fw_info->type == cpu_to_le16(PCAN_USBFD_TYPE_EXT)) {
+	if (le16_to_cpu(fw_info->type) >= PCAN_USBFD_TYPE_EXT) {
 		dev->ep_msg_in = fw_info->data_in_ep;
 		dev->ep_msg_out = fw_info->data_out_ep[dev->ctrl_idx];
 	}
drivers/net/ethernet/emulex/benet/be_cmds.c +1 -1
index 17098cd89dff..e764d2be4948 100644
@@ -3851,8 +3851,8 @@ int be_cmd_set_mac_list(struct be_adapter *adapter, u8 *mac_array,
 	status = be_mcc_notify_wait(adapter);
 
 err:
-	dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, cmd.dma);
 	spin_unlock_bh(&adapter->mcc_lock);
+	dma_free_coherent(&adapter->pdev->dev, cmd.size, cmd.va, cmd.dma);
 	return status;
 }
 
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +12 -3
index 5ef117c9d0ec..dbc40e4514f0 100644
@@ -4446,12 +4446,19 @@ static int dpaa2_eth_connect_mac(struct dpaa2_eth_priv *priv)
 	if (PTR_ERR(dpmac_dev) == -EPROBE_DEFER)
 		return PTR_ERR(dpmac_dev);
 
-	if (IS_ERR(dpmac_dev) || dpmac_dev->dev.type != &fsl_mc_bus_dpmac_type)
+	if (IS_ERR(dpmac_dev))
 		return 0;
 
+	if (dpmac_dev->dev.type != &fsl_mc_bus_dpmac_type) {
+		err = 0;
+		goto out_put_device;
+	}
+
 	mac = kzalloc(sizeof(struct dpaa2_mac), GFP_KERNEL);
-	if (!mac)
-		return -ENOMEM;
+	if (!mac) {
+		err = -ENOMEM;
+		goto out_put_device;
+	}
 
 	mac->mc_dev = dpmac_dev;
 	mac->mc_io = priv->mc_io;
@@ -4478,6 +4485,8 @@ static int dpaa2_eth_connect_mac(struct dpaa2_eth_priv *priv)
 	priv->mac = NULL;
 err_free_mac:
 	kfree(mac);
+out_put_device:
+	put_device(&dpmac_dev->dev);
 	return err;
 }
 
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c +12 -3
index d6c871f22794..732fd2e389c4 100644
@@ -1439,12 +1439,19 @@ static int dpaa2_switch_port_connect_mac(struct ethsw_port_priv *port_priv)
 	if (PTR_ERR(dpmac_dev) == -EPROBE_DEFER)
 		return PTR_ERR(dpmac_dev);
 
-	if (IS_ERR(dpmac_dev) || dpmac_dev->dev.type != &fsl_mc_bus_dpmac_type)
+	if (IS_ERR(dpmac_dev))
 		return 0;
 
+	if (dpmac_dev->dev.type != &fsl_mc_bus_dpmac_type) {
+		err = 0;
+		goto out_put_device;
+	}
+
 	mac = kzalloc(sizeof(*mac), GFP_KERNEL);
-	if (!mac)
-		return -ENOMEM;
+	if (!mac) {
+		err = -ENOMEM;
+		goto out_put_device;
+	}
 
 	mac->mc_dev = dpmac_dev;
 	mac->mc_io = port_priv->ethsw_data->mc_io;
@@ -1472,6 +1479,8 @@ static int dpaa2_switch_port_connect_mac(struct ethsw_port_priv *port_priv)
 	port_priv->mac = NULL;
 err_free_mac:
 	kfree(mac);
+out_put_device:
+	put_device(&dpmac_dev->dev);
 	return err;
 }
 
drivers/net/ethernet/google/gve/gve_main.c +37 -30

86 lines not on this page · raw message

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +21 -15
index ed1b49a36016..c509c1e12109 100644
@@ -9599,33 +9599,36 @@ static bool hclge_need_enable_vport_vlan_filter(struct hclge_vport *vport)
 	return false;
 }
 
-int hclge_enable_vport_vlan_filter(struct hclge_vport *vport, bool request_en)
+static int __hclge_enable_vport_vlan_filter(struct hclge_vport *vport,
+					    bool request_en)
 {
-	struct hclge_dev *hdev = vport->back;
 	bool need_en;
 	int ret;
 
-	mutex_lock(&hdev->vport_lock);
-
-	vport->req_vlan_fltr_en = request_en;
-
 	need_en = hclge_need_enable_vport_vlan_filter(vport);
-	if (need_en == vport->cur_vlan_fltr_en) {
-		mutex_unlock(&hdev->vport_lock);
+	if (need_en == vport->cur_vlan_fltr_en)
 		return 0;
-	}
 
 	ret = hclge_set_vport_vlan_filter(vport, need_en);
-	if (ret) {
-		mutex_unlock(&hdev->vport_lock);
+	if (ret)
 		return ret;
-	}
 
 	vport->cur_vlan_fltr_en = need_en;
 
+	return 0;
+}
+
+int hclge_enable_vport_vlan_filter(struct hclge_vport *vport, bool request_en)
+{
+	struct hclge_dev *hdev = vport->back;
+	int ret;
+
+	mutex_lock(&hdev->vport_lock);
+	vport->req_vlan_fltr_en = request_en;
+	ret = __hclge_enable_vport_vlan_filter(vport, request_en);
 	mutex_unlock(&hdev->vport_lock);
 
-	return 0;
+	return ret;
 }
 
 static int hclge_enable_vlan_filter(struct hnae3_handle *handle, bool enable)
@@ -10646,16 +10649,19 @@ static void hclge_sync_vlan_fltr_state(struct hclge_dev *hdev)
 					&vport->state))
 			continue;
 
-		ret = hclge_enable_vport_vlan_filter(vport,
-						     vport->req_vlan_fltr_en);
+		mutex_lock(&hdev->vport_lock);
+		ret = __hclge_enable_vport_vlan_filter(vport,
+						       vport->req_vlan_fltr_en);
 		if (ret) {
 			dev_err(&hdev->pdev->dev,
 				"failed to sync vlan filter state for vport%u, ret = %d\n",
 				vport->vport_id, ret);
 			set_bit(HCLGE_VPORT_STATE_VLAN_FLTR_CHANGE,
 				&vport->state);
+			mutex_unlock(&hdev->vport_lock);
 			return;
 		}
+		mutex_unlock(&hdev->vport_lock);
 	}
 }
 
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c +6 -3
index b7cf9fbf9718..6d7aeac60012 100644
@@ -509,14 +509,14 @@ int hclge_ptp_init(struct hclge_dev *hdev)
 	if (ret) {
 		dev_err(&hdev->pdev->dev,
 			"failed to init freq, ret = %d\n", ret);
-		goto out;
+		goto out_clear_int;
 	}
 
 	ret = hclge_ptp_set_ts_mode(hdev, &hdev->ptp->ts_cfg);
 	if (ret) {
 		dev_err(&hdev->pdev->dev,
 			"failed to init ts mode, ret = %d\n", ret);
-		goto out;
+		goto out_clear_int;
 	}
 
 	ktime_get_real_ts64(&ts);
@@ -524,7 +524,7 @@ int hclge_ptp_init(struct hclge_dev *hdev)
 	if (ret) {
 		dev_err(&hdev->pdev->dev,
 			"failed to init ts time, ret = %d\n", ret);
-		goto out;
+		goto out_clear_int;
 	}
 
 	set_bit(HCLGE_STATE_PTP_EN, &hdev->state);
@@ -532,6 +532,9 @@ int hclge_ptp_init(struct hclge_dev *hdev)
 
 	return 0;
 
+out_clear_int:
+	clear_bit(HCLGE_PTP_FLAG_EN, &hdev->ptp->flags);
+	hclge_ptp_int_en(hdev, false);
 out:
 	hclge_ptp_destroy_clock(hdev);
 
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +1 -5
index b11d38a6093f..cff8654354e6 100644
@@ -3086,11 +3086,7 @@ static void hclgevf_uninit_ae_dev(struct hnae3_ae_dev *ae_dev)
 
 static u32 hclgevf_get_max_channels(struct hclgevf_dev *hdev)
 {
-	struct hnae3_handle *nic = &hdev->nic;
-	struct hnae3_knic_private_info *kinfo = &nic->kinfo;
-
-	return min_t(u32, hdev->rss_size_max,
-		     hdev->num_tqps / kinfo->tc_info.num_tc);
+	return min(hdev->rss_size_max, hdev->num_tqps);
 }
 
 /**
drivers/net/ethernet/intel/e1000e/defines.h +3 -0
index 63c3c79380a1..32e6d16b2dcf 100644
@@ -638,6 +638,9 @@
 /* For checksumming, the sum of all words in the NVM should equal 0xBABA. */
 #define NVM_SUM                    0xBABA
 
+/* Uninitialized ("empty") checksum word value */
+#define NVM_CHECKSUM_UNINITIALIZED 0xFFFF
+
 /* PBA (printed board assembly) number words */
 #define NVM_PBA_OFFSET_0           8
 #define NVM_PBA_OFFSET_1           9
drivers/net/ethernet/intel/e1000e/ich8lan.c +2 -0
index 9466f65a6da7..0cb7dce57cce 100644
@@ -4146,6 +4146,8 @@ static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)
 			ret_val = e1000e_update_nvm_checksum(hw);
 			if (ret_val)
 				return ret_val;
+		} else if (hw->mac.type == e1000_pch_tgp) {
+			return 0;
 		}
 	}
 
drivers/net/ethernet/intel/e1000e/nvm.c +6 -0
index e609f4df86f4..16369e6d245a 100644
@@ -558,6 +558,12 @@ s32 e1000e_validate_nvm_checksum_generic(struct e1000_hw *hw)
 		checksum += nvm_data;
 	}
 
+	if (hw->mac.type == e1000_pch_tgp &&
+	    nvm_data == NVM_CHECKSUM_UNINITIALIZED) {
+		e_dbg("Uninitialized NVM Checksum on TGP platform - ignoring\n");
+		return 0;
+	}
+
 	if (checksum != (u16)NVM_SUM) {
 		e_dbg("NVM Checksum Invalid\n");
 		return -E1000_ERR_NVM;
drivers/net/ethernet/intel/fm10k/fm10k.h +2 -1
index 6119a4108838..65a2816142d9 100644
@@ -189,13 +189,14 @@ struct fm10k_q_vector {
 	struct fm10k_ring_container rx, tx;
 
 	struct napi_struct napi;
+	struct rcu_head rcu;	/* to avoid race with update stats on free */
+
 	cpumask_t affinity_mask;
 	char name[IFNAMSIZ + 9];
 
 #ifdef CONFIG_DEBUG_FS
 	struct dentry *dbg_q_vector;
 #endif /* CONFIG_DEBUG_FS */
-	struct rcu_head rcu;	/* to avoid race with update stats on free */
 
 	/* for dynamic allocation of rings associated with this q_vector */
 	struct fm10k_ring ring[] ____cacheline_internodealigned_in_smp;
drivers/net/ethernet/intel/i40e/i40e.h +1 -1
index 22ac8c48ca34..61590e92f3ab 100644
@@ -980,6 +980,7 @@ struct i40e_q_vector {
 	u16 reg_idx;		/* register index of the interrupt */
 
 	struct napi_struct napi;
+	struct rcu_head rcu;	/* to avoid race with update stats on free */
 
 	struct i40e_ring_container rx;
 	struct i40e_ring_container tx;
@@ -990,7 +991,6 @@ struct i40e_q_vector {
 	cpumask_t affinity_mask;
 	struct irq_affinity_notify affinity_notify;
 
-	struct rcu_head rcu;	/* to avoid race with update stats on free */
 	char name[I40E_INT_NAME_STR_LEN];
 	bool arm_wb_state;
 	bool in_busy_poll;
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +2 -1
index 107bcca7db8c..9b5044cfea87 100644
@@ -245,6 +245,7 @@ static const struct i40e_stats i40e_gstrings_net_stats[] = {
 	I40E_NETDEV_STAT(rx_errors),
 	I40E_NETDEV_STAT(tx_errors),
 	I40E_NETDEV_STAT(rx_dropped),
+	I40E_NETDEV_STAT(rx_missed_errors),
 	I40E_NETDEV_STAT(tx_dropped),
 	I40E_NETDEV_STAT(collisions),
 	I40E_NETDEV_STAT(rx_length_errors),
@@ -321,7 +322,7 @@ static const struct i40e_stats i40e_gstrings_stats[] = {
 	I40E_PF_STAT("port.rx_broadcast", stats.eth.rx_broadcast),
 	I40E_PF_STAT("port.tx_broadcast", stats.eth.tx_broadcast),
 	I40E_PF_STAT("port.tx_errors", stats.eth.tx_errors),
-	I40E_PF_STAT("port.rx_dropped", stats.eth.rx_discards),
+	I40E_PF_STAT("port.rx_discards", stats.eth.rx_discards),
 	I40E_PF_STAT("port.tx_dropped_link_down", stats.tx_dropped_link_down),
 	I40E_PF_STAT("port.rx_crc_errors", stats.crc_errors),
 	I40E_PF_STAT("port.illegal_bytes", stats.illegal_bytes),
drivers/net/ethernet/intel/i40e/i40e_main.c +7 -11
index 3b165d8f03dc..37d83b4bca7f 100644
@@ -495,6 +495,7 @@ static void i40e_get_netdev_stats_struct(struct net_device *netdev,
 	stats->tx_dropped	= vsi_stats->tx_dropped;
 	stats->rx_errors	= vsi_stats->rx_errors;
 	stats->rx_dropped	= vsi_stats->rx_dropped;
+	stats->rx_missed_errors	= vsi_stats->rx_missed_errors;
 	stats->rx_crc_errors	= vsi_stats->rx_crc_errors;
 	stats->rx_length_errors	= vsi_stats->rx_length_errors;
 }
@@ -686,17 +687,13 @@ i40e_stats_update_rx_discards(struct i40e_vsi *vsi, struct i40e_hw *hw,
 			      struct i40e_eth_stats *stat_offset,
 			      struct i40e_eth_stats *stat)
 {
-	u64 rx_rdpc, rx_rxerr;
-
 	i40e_stat_update32(hw, I40E_GLV_RDPC(stat_idx), offset_loaded,
-			   &stat_offset->rx_discards, &rx_rdpc);
+			   &stat_offset->rx_discards, &stat->rx_discards);
 	i40e_stat_update64(hw,
 			   I40E_GL_RXERR1H(i40e_compute_pci_to_hw_id(vsi, hw)),
 			   I40E_GL_RXERR1L(i40e_compute_pci_to_hw_id(vsi, hw)),
 			   offset_loaded, &stat_offset->rx_discards_other,
-			   &rx_rxerr);
-
-	stat->rx_discards = rx_rdpc + rx_rxerr;
+			   &stat->rx_discards_other);
 }
 
 /**
@@ -718,9 +715,6 @@ void i40e_update_eth_stats(struct i40e_vsi *vsi)
 	i40e_stat_update32(hw, I40E_GLV_TEPC(stat_idx),
 			   vsi->stat_offsets_loaded,
 			   &oes->tx_errors, &es->tx_errors);
-	i40e_stat_update32(hw, I40E_GLV_RDPC(stat_idx),
-			   vsi->stat_offsets_loaded,
-			   &oes->rx_discards, &es->rx_discards);
 	i40e_stat_update32(hw, I40E_GLV_RUPP(stat_idx),
 			   vsi->stat_offsets_loaded,
 			   &oes->rx_unknown_protocol, &es->rx_unknown_protocol);
@@ -977,8 +971,10 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)
 	ns->tx_errors = es->tx_errors;
 	ons->multicast = oes->rx_multicast;
 	ns->multicast = es->rx_multicast;
-	ons->rx_dropped = oes->rx_discards;
-	ns->rx_dropped = es->rx_discards;
+	ons->rx_dropped = oes->rx_discards_other;
+	ns->rx_dropped = es->rx_discards_other;
+	ons->rx_missed_errors = oes->rx_discards;
+	ns->rx_missed_errors = es->rx_discards;
 	ons->tx_dropped = oes->tx_discards;
 	ns->tx_dropped = es->tx_discards;
 
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +4 -4
index ff4f1c4f3829..7cfcb16c3091 100644
@@ -3076,10 +3076,10 @@ static int i40e_vc_del_mac_addr_msg(struct i40e_vf *vf, u8 *msg)
 		const u8 *addr = al->list[i].addr;
 
 		/* Allow to delete VF primary MAC only if it was not set
-		 * administratively by PF or if VF is trusted.
+		 * administratively by PF.
 		 */
 		if (ether_addr_equal(addr, vf->default_lan_addr.addr)) {
-			if (i40e_can_vf_change_mac(vf))
+			if (!vf->pf_set_mac)
 				was_unimac_deleted = true;
 			else
 				continue;
@@ -4934,8 +4934,8 @@ int i40e_get_vf_stats(struct net_device *netdev, int vf_id,
 	vf_stats->tx_bytes   = stats->tx_bytes;
 	vf_stats->broadcast  = stats->rx_broadcast;
 	vf_stats->multicast  = stats->rx_multicast;
-	vf_stats->rx_dropped = stats->rx_discards;
-	vf_stats->tx_dropped = stats->tx_discards;
+	vf_stats->rx_dropped = stats->rx_discards + stats->rx_discards_other;
+	vf_stats->tx_dropped = stats->tx_errors;
 
 	return 0;
 }
drivers/net/ethernet/intel/ice/ice_flex_pipe.c +2 -0
index 4b3bb19e1d06..93a1b6b90856 100644
@@ -1753,6 +1753,8 @@ ice_copy_and_init_pkg(struct ice_hw *hw, const u8 *buf, u32 len)
 		return ICE_DDP_PKG_ERR;
 
 	buf_copy = devm_kmemdup(ice_hw_to_dev(hw), buf, len, GFP_KERNEL);
+	if (!buf_copy)
+		return ICE_DDP_PKG_ERR;
 
 	state = ice_init_pkg(hw, buf_copy, len);
 	if (!ice_is_init_pkg_successful(state)) {
drivers/net/ethernet/intel/ixgbe/ixgbe.h +2 -1
index 2bf387e52e20..f49b99b175ef 100644
@@ -498,9 +498,10 @@ struct ixgbe_q_vector {
 	struct ixgbe_ring_container rx, tx;
 
 	struct napi_struct napi;
+	struct rcu_head rcu;	/* to avoid race with update stats on free */
+
 	cpumask_t affinity_mask;
 	int numa_node;
-	struct rcu_head rcu;	/* to avoid race with update stats on free */
 	char name[IFNAMSIZ + 9];
 
 	/* for dynamic allocation of rings associated with this q_vector */
drivers/net/ethernet/mellanox/mlx5/core/cmd.c +2 -2
index 6dbb4021fd2f..c83523395d5e 100644
@@ -1913,8 +1913,8 @@ static int cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out,
 
 	err = mlx5_cmd_invoke(dev, inb, outb, out, out_size, callback, context,
 			      pages_queue, token, force_polling);
-	if (callback)
-		return err;
+	if (callback && !err)
+		return 0;
 
 	if (err > 0) /* Failed in FW, command didn't execute */
 		err = deliv_status_to_err(err);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +1 -0
index 74dc45d9c242..2768eab89ead 100644
@@ -1428,6 +1428,7 @@ static inline void mlx5e_build_rx_skb(struct mlx5_cqe64 *cqe,
 		unsigned int hdrlen = mlx5e_lro_update_hdr(skb, cqe, cqe_bcnt);
 
 		skb_shinfo(skb)->gso_size = DIV_ROUND_UP(cqe_bcnt - hdrlen, lro_num_seg);
+		skb_shinfo(skb)->gso_segs = lro_num_seg;
 		/* Subtract one since we already counted this as one
 		 * "regular" packet in mlx5e_complete_rx_cqe()
 		 */
drivers/net/ethernet/mellanox/mlx5/core/lib/dm.c +2 -2
index 9482e51ac82a..bdbbfaf504d9 100644
@@ -28,7 +28,7 @@ struct mlx5_dm *mlx5_dm_create(struct mlx5_core_dev *dev)
 
 	dm = kzalloc(sizeof(*dm), GFP_KERNEL);
 	if (!dm)
-		return ERR_PTR(-ENOMEM);
+		return NULL;
 
 	spin_lock_init(&dm->lock);
 
@@ -80,7 +80,7 @@ struct mlx5_dm *mlx5_dm_create(struct mlx5_core_dev *dev)
 err_steering:
 	kfree(dm);
 
-	return ERR_PTR(-ENOMEM);
+	return NULL;
 }
 
 void mlx5_dm_cleanup(struct mlx5_core_dev *dev)
drivers/net/ethernet/mellanox/mlx5/core/main.c +0 -3
index 8c9633f740b4..a53f222e3fee 100644
@@ -1022,9 +1022,6 @@ static int mlx5_init_once(struct mlx5_core_dev *dev)
 	}
 
 	dev->dm = mlx5_dm_create(dev);
-	if (IS_ERR(dev->dm))
-		mlx5_core_warn(dev, "Failed to init device memory %ld\n", PTR_ERR(dev->dm));
-
 	dev->tracer = mlx5_fw_tracer_create(dev);
 	dev->hv_vhca = mlx5_hv_vhca_create(dev);
 	dev->rsc_dump = mlx5_rsc_dump_create(dev);
drivers/net/phy/mscc/mscc_ptp.c +1 -0
index 7e7ce79eadff..d0bd6ab45ebe 100644
@@ -897,6 +897,7 @@ static int vsc85xx_eth1_conf(struct phy_device *phydev, enum ts_blk blk,
 				     get_unaligned_be32(ptp_multicast));
 	} else {
 		val |= ANA_ETH1_FLOW_ADDR_MATCH2_ANY_MULTICAST;
+		val |= ANA_ETH1_FLOW_ADDR_MATCH2_ANY_UNICAST;
 		vsc85xx_ts_write_csr(phydev, blk,
 				     MSCC_ANA_ETH1_FLOW_ADDR_MATCH2(0), val);
 		vsc85xx_ts_write_csr(phydev, blk,
drivers/net/phy/mscc/mscc_ptp.h +1 -0
index da3465360e90..ae9ad925bfa8 100644
@@ -98,6 +98,7 @@
 #define MSCC_ANA_ETH1_FLOW_ADDR_MATCH2(x) (MSCC_ANA_ETH1_FLOW_ENA(x) + 3)
 #define ANA_ETH1_FLOW_ADDR_MATCH2_MASK_MASK	GENMASK(22, 20)
 #define ANA_ETH1_FLOW_ADDR_MATCH2_ANY_MULTICAST	0x400000
+#define ANA_ETH1_FLOW_ADDR_MATCH2_ANY_UNICAST	0x200000
 #define ANA_ETH1_FLOW_ADDR_MATCH2_FULL_ADDR	0x100000
 #define ANA_ETH1_FLOW_ADDR_MATCH2_SRC_DEST_MASK	GENMASK(17, 16)
 #define ANA_ETH1_FLOW_ADDR_MATCH2_SRC_DEST	0x020000
drivers/net/ppp/pptp.c +11 -7
index 32183f24e63f..bf011bbb6105 100644
@@ -159,19 +159,17 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)
 	int len;
 	unsigned char *data;
 	__u32 seq_recv;
-
-
 	struct rtable *rt;
 	struct net_device *tdev;
 	struct iphdr  *iph;
 	int    max_headroom;
 
 	if (sk_pppox(po)->sk_state & PPPOX_DEAD)
-		goto tx_error;
+		goto tx_drop;
 
 	rt = pptp_route_output(po, &fl4);
 	if (IS_ERR(rt))
-		goto tx_error;
+		goto tx_drop;
 
 	tdev = rt->dst.dev;
 
@@ -179,16 +177,20 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)
 
 	if (skb_headroom(skb) < max_headroom || skb_cloned(skb) || skb_shared(skb)) {
 		struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom);
-		if (!new_skb) {
-			ip_rt_put(rt);
+
+		if (!new_skb)
 			goto tx_error;
-		}
+
 		if (skb->sk)
 			skb_set_owner_w(new_skb, skb->sk);
 		consume_skb(skb);
 		skb = new_skb;
 	}
 
+	/* Ensure we can safely access protocol field and LCP code */
+	if (!pskb_may_pull(skb, 3))
+		goto tx_error;
+
 	data = skb->data;
 	islcp = ((data[0] << 8) + data[1]) == PPP_LCP && 1 <= data[2] && data[2] <= 7;
 
@@ -262,6 +264,8 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)
 	return 1;
 
 tx_error:
+	ip_rt_put(rt);
+tx_drop:
 	kfree_skb(skb);
 	return 1;
 }
drivers/net/usb/usbnet.c +8 -3
index 51d93422d09c..a68fead88720 100644
@@ -1115,6 +1115,9 @@ static void __handle_link_change(struct usbnet *dev)
 	if (!test_bit(EVENT_DEV_OPEN, &dev->flags))
 		return;
 
+	if (test_and_clear_bit(EVENT_LINK_CARRIER_ON, &dev->flags))
+		netif_carrier_on(dev->net);
+
 	if (!netif_carrier_ok(dev->net)) {
 		/* kill URBs for reading packets to save bus bandwidth */
 		unlink_urbs(dev, &dev->rxq);
@@ -2010,10 +2013,12 @@ EXPORT_SYMBOL(usbnet_manage_power);
 void usbnet_link_change(struct usbnet *dev, bool link, bool need_reset)
 {
 	/* update link after link is reseted */
-	if (link && !need_reset)
-		netif_carrier_on(dev->net);
-	else
+	if (link && !need_reset) {
+		set_bit(EVENT_LINK_CARRIER_ON, &dev->flags);
+	} else {
+		clear_bit(EVENT_LINK_CARRIER_ON, &dev->flags);
 		netif_carrier_off(dev->net);
+	}
 
 	if (need_reset && link)
 		usbnet_defer_kevent(dev, EVENT_LINK_RESET);
drivers/net/vrf.c +2 -0
index c8a1009d659e..75e95f6dd816 100644
@@ -1355,6 +1355,8 @@ static void vrf_ip6_input_dst(struct sk_buff *skb, struct net_device *vrf_dev,
 	struct net *net = dev_net(vrf_dev);
 	struct rt6_info *rt6;
 
+	skb_dst_drop(skb);
+
 	rt6 = vrf_ip6_route_lookup(net, vrf_dev, &fl6, ifindex, skb,
 				   RT6_LOOKUP_F_HAS_SADDR | RT6_LOOKUP_F_IFACE);
 	if (unlikely(!rt6))
drivers/net/wireless/ath/ath11k/hal.c +4 -0
index a5028efbdd2e..ec64fbf9aa82 100644
@@ -1314,6 +1314,10 @@ EXPORT_SYMBOL(ath11k_hal_srng_init);
 void ath11k_hal_srng_deinit(struct ath11k_base *ab)
 {
 	struct ath11k_hal *hal = &ab->hal;
+	int i;
+
+	for (i = 0; i < HAL_SRNG_RING_ID_MAX; i++)
+		ab->hal.srng_list[i].initialized = 0;
 
 	ath11k_hal_unregister_srng_key(ab);
 	ath11k_hal_free_cont_rdp(ab);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +4 -4
index 24a3d5a593f1..8b6e3cbaf463 100644
@@ -1200,10 +1200,6 @@ brcmf_cfg80211_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
 		return -EAGAIN;
 	}
 
-	/* If scan req comes for p2p0, send it over primary I/F */
-	if (vif == cfg->p2p.bss_idx[P2PAPI_BSSCFG_DEVICE].vif)
-		vif = cfg->p2p.bss_idx[P2PAPI_BSSCFG_PRIMARY].vif;
-
 	brcmf_dbg(SCAN, "START ESCAN\n");
 
 	cfg->scan_request = request;
@@ -1219,6 +1215,10 @@ brcmf_cfg80211_scan(struct wiphy *wiphy, struct cfg80211_scan_request *request)
 	if (err)
 		goto scan_out;
 
+	/* If scan req comes for p2p0, send it over primary I/F */
+	if (vif == cfg->p2p.bss_idx[P2PAPI_BSSCFG_DEVICE].vif)
+		vif = cfg->p2p.bss_idx[P2PAPI_BSSCFG_PRIMARY].vif;
+
 	err = brcmf_do_escan(vif->ifp, request);
 	if (err)
 		goto scan_out;
drivers/net/wireless/intel/iwlwifi/dvm/main.c +9 -2
index a873be109f43..b490a88b97ca 100644
@@ -1048,9 +1048,11 @@ static void iwl_bg_restart(struct work_struct *data)
  *
  *****************************************************************************/
 
-static void iwl_setup_deferred_work(struct iwl_priv *priv)
+static int iwl_setup_deferred_work(struct iwl_priv *priv)
 {
 	priv->workqueue = alloc_ordered_workqueue(DRV_NAME, 0);
+	if (!priv->workqueue)
+		return -ENOMEM;
 
 	INIT_WORK(&priv->restart, iwl_bg_restart);
 	INIT_WORK(&priv->beacon_update, iwl_bg_beacon_update);
@@ -1067,6 +1069,8 @@ static void iwl_setup_deferred_work(struct iwl_priv *priv)
 	timer_setup(&priv->statistics_periodic, iwl_bg_statistics_periodic, 0);
 
 	timer_setup(&priv->ucode_trace, iwl_bg_ucode_trace, 0);
+
+	return 0;
 }
 
 void iwl_cancel_deferred_work(struct iwl_priv *priv)
@@ -1456,7 +1460,9 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
 	/********************
 	 * 6. Setup services
 	 ********************/
-	iwl_setup_deferred_work(priv);
+	if (iwl_setup_deferred_work(priv))
+		goto out_uninit_drv;
+
 	iwl_setup_rx_handlers(priv);
 
 	iwl_power_initialize(priv);
@@ -1494,6 +1500,7 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
 	iwl_cancel_deferred_work(priv);
 	destroy_workqueue(priv->workqueue);
 	priv->workqueue = NULL;
+out_uninit_drv:
 	iwl_uninit_drv(priv);
 out_free_eeprom_blob:
 	kfree(priv->eeprom_blob);
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +3 -1
index 0a11ee347bf3..64cc1e1bbb47 100644
@@ -64,8 +64,10 @@ static int __init iwl_mvm_init(void)
 	}
 
 	ret = iwl_opmode_register("iwlmvm", &iwl_mvm_ops);
-	if (ret)
+	if (ret) {
 		pr_err("Unable to register MVM op_mode: %d\n", ret);
+		iwl_mvm_rate_control_unregister();
+	}
 
 	return ret;
 }
drivers/net/wireless/marvell/mwl8k.c +4 -0
index 61697dad4ea6..cc3a9543d255 100644
@@ -1222,6 +1222,10 @@ static int rxq_refill(struct ieee80211_hw *hw, int index, int limit)
 
 		addr = dma_map_single(&priv->pdev->dev, skb->data,
 				      MWL8K_RX_MAXSZ, DMA_FROM_DEVICE);
+		if (dma_mapping_error(&priv->pdev->dev, addr)) {
+			kfree_skb(skb);
+			break;
+		}
 
 		rxq->rxd_count++;
 		rx = rxq->tail++;
drivers/net/wireless/purelifi/plfxlc/mac.c +6 -5
index 70d6f5244e5e..7585ded553dd 100644
@@ -100,11 +100,6 @@ int plfxlc_mac_init_hw(struct ieee80211_hw *hw)
 	return r;
 }
 
-void plfxlc_mac_release(struct plfxlc_mac *mac)
-{
-	plfxlc_chip_release(&mac->chip);
-}
-
 int plfxlc_op_start(struct ieee80211_hw *hw)
 {
 	plfxlc_hw_mac(hw)->chip.usb.initialized = 1;
@@ -751,3 +746,9 @@ struct ieee80211_hw *plfxlc_mac_alloc_hw(struct usb_interface *intf)
 	SET_IEEE80211_DEV(hw, &intf->dev);
 	return hw;
 }
+
+void plfxlc_mac_release_hw(struct ieee80211_hw *hw)
+{
+	plfxlc_chip_release(&plfxlc_hw_mac(hw)->chip);
+	ieee80211_free_hw(hw);
+}
drivers/net/wireless/purelifi/plfxlc/mac.h +1 -1
index 49b92413729b..c0445932b2e8 100644
@@ -168,7 +168,7 @@ static inline u8 *plfxlc_mac_get_perm_addr(struct plfxlc_mac *mac)
 }
 
 struct ieee80211_hw *plfxlc_mac_alloc_hw(struct usb_interface *intf);
-void plfxlc_mac_release(struct plfxlc_mac *mac);
+void plfxlc_mac_release_hw(struct ieee80211_hw *hw);
 
 int plfxlc_mac_preinit_hw(struct ieee80211_hw *hw, const u8 *hw_address);
 int plfxlc_mac_init_hw(struct ieee80211_hw *hw);
drivers/net/wireless/purelifi/plfxlc/usb.c +14 -15
index 8151bc5e00cc..901e0139969e 100644
@@ -604,7 +604,7 @@ static int probe(struct usb_interface *intf,
 	r = plfxlc_upload_mac_and_serial(intf, hw_address, serial_number);
 	if (r) {
 		dev_err(&intf->dev, "MAC and Serial upload failed (%d)\n", r);
-		goto error;
+		goto error_free_hw;
 	}
 
 	chip->unit_type = STA;
@@ -613,13 +613,13 @@ static int probe(struct usb_interface *intf,
 	r = plfxlc_mac_preinit_hw(hw, hw_address);
 	if (r) {
 		dev_err(&intf->dev, "Init mac failed (%d)\n", r);
-		goto error;
+		goto error_free_hw;
 	}
 
 	r = ieee80211_register_hw(hw);
 	if (r) {
 		dev_err(&intf->dev, "Register device failed (%d)\n", r);
-		goto error;
+		goto error_free_hw;
 	}
 
 	if ((le16_to_cpu(interface_to_usbdev(intf)->descriptor.idVendor) ==
@@ -632,7 +632,7 @@ static int probe(struct usb_interface *intf,
 	}
 	if (r != 0) {
 		dev_err(&intf->dev, "FPGA download failed (%d)\n", r);
-		goto error;
+		goto error_unreg_hw;
 	}
 
 	tx->mac_fifo_full = 0;
@@ -642,21 +642,21 @@ static int probe(struct usb_interface *intf,
 	r = plfxlc_usb_init_hw(usb);
 	if (r < 0) {
 		dev_err(&intf->dev, "usb_init_hw failed (%d)\n", r);
-		goto error;
+		goto error_unreg_hw;
 	}
 
 	msleep(PLF_MSLEEP_TIME);
 	r = plfxlc_chip_switch_radio(chip, PLFXLC_RADIO_ON);
 	if (r < 0) {
 		dev_dbg(&intf->dev, "chip_switch_radio_on failed (%d)\n", r);
-		goto error;
+		goto error_unreg_hw;
 	}
 
 	msleep(PLF_MSLEEP_TIME);
 	r = plfxlc_chip_set_rate(chip, 8);
 	if (r < 0) {
 		dev_dbg(&intf->dev, "chip_set_rate failed (%d)\n", r);
-		goto error;
+		goto error_unreg_hw;
 	}
 
 	msleep(PLF_MSLEEP_TIME);
@@ -664,7 +664,7 @@ static int probe(struct usb_interface *intf,
 			    hw_address, ETH_ALEN, USB_REQ_MAC_WR);
 	if (r < 0) {
 		dev_dbg(&intf->dev, "MAC_WR failure (%d)\n", r);
-		goto error;
+		goto error_unreg_hw;
 	}
 
 	plfxlc_chip_enable_rxtx(chip);
@@ -691,12 +691,12 @@ static int probe(struct usb_interface *intf,
 	plfxlc_mac_init_hw(hw);
 	usb->initialized = true;
 	return 0;
+
+error_unreg_hw:
+	ieee80211_unregister_hw(hw);
+error_free_hw:
+	plfxlc_mac_release_hw(hw);
 error:
-	if (hw) {
-		plfxlc_mac_release(plfxlc_hw_mac(hw));
-		ieee80211_unregister_hw(hw);
-		ieee80211_free_hw(hw);
-	}
 	dev_err(&intf->dev, "pureLifi:Device error");
 	return r;
 }
@@ -730,8 +730,7 @@ static void disconnect(struct usb_interface *intf)
 	 */
 	usb_reset_device(interface_to_usbdev(intf));
 
-	plfxlc_mac_release(mac);
-	ieee80211_free_hw(hw);
+	plfxlc_mac_release_hw(hw);
 }
 
 static void plfxlc_usb_resume(struct plfxlc_usb *usb)
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c +2 -1
index c0f6e9c6d03e..fa3fb93f4485 100644
@@ -1041,10 +1041,11 @@ static void rtl8187_stop(struct ieee80211_hw *dev)
 	rtl818x_iowrite8(priv, &priv->map->CONFIG4, reg | RTL818X_CONFIG4_VCOOFF);
 	rtl818x_iowrite8(priv, &priv->map->EEPROM_CMD, RTL818X_EEPROM_CMD_NORMAL);
 
+	usb_kill_anchored_urbs(&priv->anchored);
+
 	while ((skb = skb_dequeue(&priv->b_tx_status.queue)))
 		dev_kfree_skb_any(skb);
 
-	usb_kill_anchored_urbs(&priv->anchored);
 	mutex_unlock(&priv->conf_mutex);
 
 	if (!priv->is_rtl8187b)
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +1 -1
index cd22c756acc6..c1bc55f0e4c0 100644
@@ -5858,7 +5858,7 @@ static int rtl8xxxu_submit_rx_urb(struct rtl8xxxu_priv *priv,
 		skb_size = fops->rx_agg_buf_size;
 		skb_size += (rx_desc_sz + sizeof(struct rtl8723au_phy_stats));
 	} else {
-		skb_size = IEEE80211_MAX_FRAME_LEN;
+		skb_size = IEEE80211_MAX_FRAME_LEN + rx_desc_sz;
 	}
 
 	skb = __netdev_alloc_skb(NULL, skb_size, GFP_KERNEL);
drivers/pci/controller/pcie-rockchip-host.c +1 -1
index 7352b5ff8d35..bd982390e04c 100644
@@ -439,7 +439,7 @@ static irqreturn_t rockchip_pcie_subsys_irq_handler(int irq, void *arg)
 			dev_dbg(dev, "malformed TLP received from the link\n");
 
 		if (sub_reg & PCIE_CORE_INT_UCR)
-			dev_dbg(dev, "malformed TLP received from the link\n");
+			dev_dbg(dev, "Unexpected Completion received from the link\n");
 
 		if (sub_reg & PCIE_CORE_INT_FCE)
 			dev_dbg(dev, "an error was observed in the flow control advertisements from the other side\n");
drivers/pci/endpoint/functions/pci-epf-vntb.c +2 -2
index 6708d2e789cb..d057537781f6 100644
@@ -534,7 +534,7 @@ static int epf_ntb_db_bar_init(struct epf_ntb *ntb)
 	struct device *dev = &ntb->epf->dev;
 	int ret;
 	struct pci_epf_bar *epf_bar;
-	void __iomem *mw_addr;
+	void *mw_addr;
 	enum pci_barno barno;
 	size_t size = 4 * ntb->db_count;
 
@@ -714,7 +714,7 @@ static int epf_ntb_init_epc_bar(struct epf_ntb *ntb)
 		barno = pci_epc_get_next_free_bar(epc_features, barno);
 		if (barno < 0) {
 			dev_err(dev, "Fail to get NTB function BAR\n");
-			return barno;
+			return -ENOENT;
 		}
 		ntb->epf_ntb_bar[bar] = barno;
 	}
drivers/pci/hotplug/pnv_php.c +211 -22

338 lines not on this page · raw message

drivers/pinctrl/sunxi/pinctrl-sunxi.c +8 -3
index 6c04027d0dd9..df2e721297fc 100644
@@ -396,6 +396,7 @@ static int sunxi_pctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
 	const char *function, *pin_prop;
 	const char *group;
 	int ret, npins, nmaps, configlen = 0, i = 0;
+	struct pinctrl_map *new_map;
 
 	*map = NULL;
 	*num_maps = 0;
@@ -470,9 +471,13 @@ static int sunxi_pctrl_dt_node_to_map(struct pinctrl_dev *pctldev,
 	 * We know have the number of maps we need, we can resize our
 	 * map array
 	 */
-	*map = krealloc(*map, i * sizeof(struct pinctrl_map), GFP_KERNEL);
-	if (!*map)
-		return -ENOMEM;
+	new_map = krealloc(*map, i * sizeof(struct pinctrl_map), GFP_KERNEL);
+	if (!new_map) {
+		ret = -ENOMEM;
+		goto err_free_map;
+	}
+
+	*map = new_map;
 
 	return 0;
 
drivers/platform/x86/ideapad-laptop.c +1 -1
index bddd240d68ab..54ee8b170733 100644
@@ -1498,7 +1498,7 @@ static int ideapad_kbd_bl_init(struct ideapad_private *priv)
 	priv->kbd_bl.led.max_brightness          = 1;
 	priv->kbd_bl.led.brightness_get          = ideapad_kbd_bl_led_cdev_brightness_get;
 	priv->kbd_bl.led.brightness_set_blocking = ideapad_kbd_bl_led_cdev_brightness_set;
-	priv->kbd_bl.led.flags                   = LED_BRIGHT_HW_CHANGED;
+	priv->kbd_bl.led.flags                   = LED_BRIGHT_HW_CHANGED | LED_RETAIN_AT_SHUTDOWN;
 
 	err = led_classdev_register(&priv->platform_device->dev, &priv->kbd_bl.led);
 	if (err)
drivers/power/supply/cpcap-charger.c +2 -3
index be9764541d52..05a3f4b208a4 100644
@@ -689,9 +689,8 @@ static void cpcap_usb_detect(struct work_struct *work)
 		struct power_supply *battery;
 
 		battery = power_supply_get_by_name("battery");
-		if (IS_ERR_OR_NULL(battery)) {
-			dev_err(ddata->dev, "battery power_supply not available %li\n",
-					PTR_ERR(battery));
+		if (!battery) {
+			dev_err(ddata->dev, "battery power_supply not available\n");
 			return;
 		}
 
drivers/power/supply/max14577_charger.c +2 -2
index f244cd902eb9..e4461caecea3 100644
@@ -501,7 +501,7 @@ static struct max14577_charger_platform_data *max14577_charger_dt_init(
 static struct max14577_charger_platform_data *max14577_charger_dt_init(
 		struct platform_device *pdev)
 {
-	return NULL;
+	return ERR_PTR(-ENODATA);
 }
 #endif /* CONFIG_OF */
 
@@ -572,7 +572,7 @@ static int max14577_charger_probe(struct platform_device *pdev)
 	chg->max14577 = max14577;
 
 	chg->pdata = max14577_charger_dt_init(pdev);
-	if (IS_ERR_OR_NULL(chg->pdata))
+	if (IS_ERR(chg->pdata))
 		return PTR_ERR(chg->pdata);
 
 	ret = max14577_charger_reg_init(chg);
drivers/powercap/dtpm_cpu.c +2 -0
index ae7ee611978b..99a82060ead9 100644
@@ -93,6 +93,8 @@ static u64 get_pd_power_uw(struct dtpm *dtpm)
 	int i;
 
 	pd = em_cpu_get(dtpm_cpu->cpu);
+	if (!pd)
+		return 0;
 
 	pd_mask = em_span_cpus(pd);
 
drivers/pps/pps.c +9 -2
index 2d008e0d116a..ea966fc67d28 100644
@@ -41,6 +41,9 @@ static __poll_t pps_cdev_poll(struct file *file, poll_table *wait)
 
 	poll_wait(file, &pps->queue, wait);
 
+	if (pps->last_fetched_ev == pps->last_ev)
+		return 0;
+
 	return EPOLLIN | EPOLLRDNORM;
 }
 
@@ -186,9 +189,11 @@ static long pps_cdev_ioctl(struct file *file,
 		if (err)
 			return err;
 
-		/* Return the fetched timestamp */
+		/* Return the fetched timestamp and save last fetched event  */
 		spin_lock_irq(&pps->lock);
 
+		pps->last_fetched_ev = pps->last_ev;
+
 		fdata.info.assert_sequence = pps->assert_sequence;
 		fdata.info.clear_sequence = pps->clear_sequence;
 		fdata.info.assert_tu = pps->assert_tu;
@@ -272,9 +277,11 @@ static long pps_cdev_compat_ioctl(struct file *file,
 		if (err)
 			return err;
 
-		/* Return the fetched timestamp */
+		/* Return the fetched timestamp and save last fetched event  */
 		spin_lock_irq(&pps->lock);
 
+		pps->last_fetched_ev = pps->last_ev;
+
 		compat.info.assert_sequence = pps->assert_sequence;
 		compat.info.clear_sequence = pps->clear_sequence;
 		compat.info.current_mode = pps->current_mode;
drivers/regulator/core.c +1 -0
index 29c9171e923a..7e6ff7e72784 100644
@@ -5423,6 +5423,7 @@ static void regulator_remove_coupling(struct regulator_dev *rdev)
 				 ERR_PTR(err));
 	}
 
+	rdev->coupling_desc.n_coupled = 0;
 	kfree(rdev->coupling_desc.coupled_rdevs);
 	rdev->coupling_desc.coupled_rdevs = NULL;
 }
drivers/rtc/rtc-ds1307.c +1 -1
index b7f8b3f9b059..73f2dd3af4d4 100644
@@ -1461,7 +1461,7 @@ static long ds3231_clk_sqw_round_rate(struct clk_hw *hw, unsigned long rate,
 			return ds3231_clk_sqw_rates[i];
 	}
 
-	return 0;
+	return ds3231_clk_sqw_rates[ARRAY_SIZE(ds3231_clk_sqw_rates) - 1];
 }
 
 static int ds3231_clk_sqw_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-hym8563.c +1 -1
index cc710d682121..2f52aabd129a 100644
@@ -294,7 +294,7 @@ static long hym8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
 		if (clkout_rates[i] <= rate)
 			return clkout_rates[i];
 
-	return 0;
+	return clkout_rates[0];
 }
 
 static int hym8563_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-nct3018y.c +1 -1
index 108eced8f003..43b01f3e640a 100644
@@ -342,7 +342,7 @@ static long nct3018y_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
 		if (clkout_rates[i] <= rate)
 			return clkout_rates[i];
 
-	return 0;
+	return clkout_rates[0];
 }
 
 static int nct3018y_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-pcf85063.c +1 -1
index 4a29b44e75e6..b095663d5ebc 100644
@@ -410,7 +410,7 @@ static long pcf85063_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
 		if (clkout_rates[i] <= rate)
 			return clkout_rates[i];
 
-	return 0;
+	return clkout_rates[0];
 }
 
 static int pcf85063_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-pcf8563.c +1 -1
index 11fa9788558b..dd27acae137c 100644
@@ -386,7 +386,7 @@ static long pcf8563_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
 		if (clkout_rates[i] <= rate)
 			return clkout_rates[i];
 
-	return 0;
+	return clkout_rates[0];
 }
 
 static int pcf8563_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/rtc/rtc-rv3028.c +1 -1
index dd170e3efd83..436523605f8f 100644
@@ -738,7 +738,7 @@ static long rv3028_clkout_round_rate(struct clk_hw *hw, unsigned long rate,
 		if (clkout_rates[i] <= rate)
 			return clkout_rates[i];
 
-	return 0;
+	return clkout_rates[0];
 }
 
 static int rv3028_clkout_set_rate(struct clk_hw *hw, unsigned long rate,
drivers/scsi/elx/efct/efct_lio.c +1 -1
index be4b5c1ee32d..150d059e51ac 100644
@@ -396,7 +396,7 @@ efct_lio_sg_unmap(struct efct_io *io)
 		return;
 
 	dma_unmap_sg(&io->efct->pci->dev, cmd->t_data_sg,
-		     ocp->seg_map_cnt, cmd->data_direction);
+		     cmd->t_data_nents, cmd->data_direction);
 	ocp->seg_map_cnt = 0;
 }
 
drivers/scsi/ibmvscsi_tgt/libsrp.c +4 -2
index 8a0e28aec928..0ecad398ed3d 100644
@@ -184,7 +184,8 @@ static int srp_direct_data(struct ibmvscsis_cmd *cmd, struct srp_direct_buf *md,
 	err = rdma_io(cmd, sg, nsg, md, 1, dir, len);
[… more lines in the raw message]

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

drivers/scsi/isci/request.c +1 -1
index 0f0732d56800..46d30a725d7e 100644

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

drivers/scsi/mpt3sas/mpt3sas_scsih.c +1 -2
index 31768da482a5..b5b77b82d69f 100644

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

drivers/scsi/mvsas/mv_sas.c +2 -2
index a6867dae0e7c..1275f3be530f 100644

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

drivers/scsi/scsi_transport_iscsi.c +2 -0
index c44103752b69..ef20fea95957 100644

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

drivers/scsi/sd.c +3 -1
index c3006524eb03..3b481779af35 100644

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

drivers/soc/qcom/qmi_encdec.c +38 -8

46 lines not on this page · raw message

drivers/soc/tegra/cbb/tegra234-cbb.c +2 -0
index f33d094e5ea6..5813c55222ca 100644

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

drivers/soundwire/stream.c +1 -1
index 2624441d2fa9..3f23d9f0f726 100644

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

drivers/staging/fbtft/fbtft-core.c +1 -0
index afaba94d1d1c..7b802b022627 100644

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

drivers/staging/nvec/nvec_power.c +1 -1
index b1ef196e1cfe..622d99ea9555 100644

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

drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c +2 -2
index f4c2c9506d86..2a5a43e7ff29 100644

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

drivers/staging/vc04_services/include/linux/raspberrypi/vchiq.h +0 -2
index 690ab7165b2c..842bec937bd9 100644

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

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +39 -40

79 lines not on this page · raw message

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +85 -87

172 lines not on this page · raw message

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_dev.c +18 -18
index 7e297494437e..841e1a535642 100644

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

drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c +2 -2
index 90eb4c5936f3..e6dea0c8eecd 100644

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

drivers/ufs/core/ufshcd.c +9 -1
index dc17ae1dfe26..f9adb1106747 100644

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

drivers/usb/chipidea/ci.h +16 -2
index 2ff83911219f..de23e10470d3 100644

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

drivers/usb/chipidea/udc.c +10 -0
index 3795c70a3155..e7a02d9e1c07 100644

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

drivers/usb/early/xhci-dbc.c +4 -0
index 7ef0a4b39762..a4e1390ed4fd 100644

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

drivers/usb/gadget/composite.c +5 -0
index 87404340763d..c64e7d30db7d 100644

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

drivers/usb/host/xhci-plat.c +1 -1
index 6704bd76e157..7ec4c38c3cee 100644

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

drivers/usb/misc/apple-mfi-fastcharge.c +21 -3
index ac8695195c13..8e852f4b8262 100644

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

drivers/usb/phy/phy-mxs-usb.c +3 -1
index 160c9264339f..f3075ff6cd20 100644

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

drivers/usb/serial/option.c +2 -0
index 1c31ae9fd162..2a3bf8718efc 100644

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

drivers/usb/typec/tcpm/tcpm.c +39 -25

64 lines not on this page · raw message

drivers/vfio/pci/vfio_pci_core.c +1 -1
index aa362b434413..13c223228c31 100644

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

drivers/vhost/scsi.c +1 -3
index 87f2f56fd20a..de6f108a50a9 100644

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

drivers/video/fbdev/core/fbcon.c +2 -2
index 1a1727418711..194889e1cc34 100644

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

drivers/video/fbdev/imxfb.c +7 -2
index 32b8374abeca..3770225a0b90 100644

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

drivers/watchdog/ziirave_wdt.c +3 -0
index d0e88875443a..06d59805c9c0 100644

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

drivers/xen/gntdev-common.h +4 -0
index 9c286b2a1900..ac8ce3179ba2 100644

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

drivers/xen/gntdev.c +50 -21

71 lines not on this page · raw message

fs/erofs/decompressor.c +9 -14
index 0eaa9e495346..e524c0b432f3 100644

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

fs/erofs/dir.c +0 -17
index 966a88cc529e..963bbed0b699 100644

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

fs/erofs/inode.c +0 -3
index 7dcf350b9fef..3cbef6318b7b 100644

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

fs/erofs/internal.h +0 -2
index d7cd1e619d46..126970932805 100644

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

fs/erofs/namei.c +3 -6
index 8332428b780c..c0d5ffb62420 100644

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

fs/erofs/zdata.c +23 -33

56 lines not on this page · raw message

fs/erofs/zmap.c +0 -3
index 2cd70cf4c8b2..d2d7fe826091 100644

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

fs/f2fs/data.c +1 -1
index 7b65766d365f..dc8f283f210c 100644

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

fs/f2fs/extent_cache.c +1 -1
index f13143efc4b1..a5c63c7da299 100644

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

fs/f2fs/f2fs.h +1 -1
index ef9149bd398a..1ad9669666e8 100644

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

fs/f2fs/inode.c +19 -2
index b8296b0414fc..c02b5ea43f07 100644

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

fs/f2fs/segment.h +2 -3
index 5ef5a88f47a0..20d4387c661d 100644

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

fs/hfsplus/extents.c +0 -3
index 91354e769642..839bf83448c3 100644

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

fs/jfs/jfs_dmap.c +3 -1
index 32ae408ee699..c761291f59ac 100644

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

fs/jfs/jfs_imap.c +11 -2
index 9adb29e7862c..1f2e452a7676 100644

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

fs/nfs/dir.c +1 -3
index 1876978107ca..3c98049912df 100644

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

fs/nfs/export.c +9 -2
index 9fe9586a51b7..aacf6220ab44 100644

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

fs/nfs/flexfilelayout/flexfilelayout.c +16 -10
index aa55b5df065b..5dd16f4ae74d 100644

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

fs/nfs/flexfilelayout/flexfilelayoutdev.c +3 -3
index d21c5ecfbf1c..95d5dca67145 100644

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

fs/nfs/internal.h +6 -3
index 84361674bffc..6ea10abfa851 100644

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

fs/nfs/nfs4proc.c +6 -4
index 29f8a2df2c11..4abac68a4f0f 100644

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

fs/nilfs2/inode.c +8 -1
index 452fb23d2e4c..1eb6c90fb7f4 100644

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

fs/ntfs3/file.c +4 -1
index 46eec986ec9c..6d9c1dfe9b1b 100644

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

fs/orangefs/orangefs-debugfs.c +3 -3
index fa41db088488..b57140ebfad0 100644

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

fs/proc/generic.c +2 -0
index b721bb88b4a6..c3a809e1d719 100644

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

fs/proc/inode.c +1 -1
index bc4011901c90..623aa0d97a6d 100644

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

fs/proc/internal.h +5 -0
index d115d22c01d4..019137261a03 100644

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

fs/smb/client/smbdirect.c +8 -6
index cf923f211c51..d47eae133a20 100644

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

fs/smb/server/connection.h +1 -0
index 0e04cf8b1d89..0e72be594e91 100644

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

fs/smb/server/smb2pdu.c +16 -6
index a04413095b23..3e2cd22fb2bd 100644

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

fs/smb/server/smb_common.c +1 -1
index 7134abeeb53e..2850802f4a50 100644

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

fs/smb/server/transport_rdma.c +35 -62

97 lines not on this page · raw message

fs/smb/server/transport_tcp.c +17 -0
index 25f7c86ba9b9..1222cf6be5ef 100644

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

fs/smb/server/vfs.c +2 -1
index 63276a752373..871c0d8e5012 100644

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

include/linux/fs_context.h +1 -1
index 13fa6f3df8e4..c861b2c894ba 100644

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

include/linux/moduleparam.h +2 -3
index 962cd41a2cb5..061e19c94a6b 100644

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

include/linux/pps_kernel.h +1 -0
index c7abce28ed29..aab0aebb529e 100644

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

include/linux/proc_fs.h +1 -0
index 39532c19aa28..ca9cd8a2569e 100644

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

include/linux/skbuff.h +23 -0
index 2b5466204888..8014a335414e 100644

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

include/linux/usb/usbnet.h +1 -0
index 0b9f1e598e3a..4bc6bb01a0eb 100644

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

include/linux/wait_bit.h +60 -0

60 lines not on this page · raw message

include/net/tc_act/tc_ctinfo.h +3 -3
index f071c1d70a25..a04bcac7adf4 100644

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

include/net/udp.h +18 -6
index fa4cdbe55552..aba442bd1439 100644

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

kernel/bpf/preload/Kconfig +0 -1
index c9d45c9d6918..f9b11d01c3b5 100644

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

kernel/events/core.c +17 -3
index f815b808db20..4d7bf0536348 100644

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

kernel/kcsan/kcsan_test.c +1 -1
index a60c561724be..fb5e7b65f799 100644

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

kernel/trace/preemptirq_delay_test.c +9 -4
index cb0871fbdb07..8af92dbe98f0 100644

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

kernel/ucount.c +1 -1
index ced99a4bb562..8afa2878422d 100644

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

mm/hmm.c +1 -1
index 3850fb625dda..2cb3626fd103 100644

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

mm/kasan/report.c +3 -1
index d21d216f838a..240560ec8d99 100644

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

mm/khugepaged.c +2 -2
index 085fca1fa27a..eb46acfd3d20 100644

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

mm/zsmalloc.c +3 -0
index 37f755c9a1b7..af130e2dcea2 100644

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

net/appletalk/aarp.c +21 -3
index c7236daa2415..0d7c14a49668 100644

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

net/caif/cfctrl.c +144 -150

294 lines not on this page · raw message

net/core/filter.c +3 -0
index 4c806ce62739..cd0c28e94979 100644

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

net/core/netpoll.c +7 -0
index 657abbb7d0d7..89f5358d7a1b 100644

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

net/core/skmsg.c +7 -0
index 2aa6262f19e8..01ca497fe2cd 100644

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

net/ipv4/tcp_input.c +2 -1
index 222b829f33f4..5ee1e1c2082c 100644

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

net/ipv6/ip6_fib.c +15 -9
index b6a7cbd6bee0..bb51a911a6ce 100644

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

net/ipv6/ip6_offload.c +3 -1
index 3ee345672849..171a5c1afefe 100644

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

net/ipv6/ip6mr.c +2 -1
index 138f6aee70af..06f66531628f 100644

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

net/ipv6/route.c +32 -24

56 lines not on this page · raw message

net/mac80211/tdls.c +1 -1
index f4b4d25eef95..04531d18fa93 100644

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

net/mac80211/tx.c +12 -2
index 62b2817df2ba..e6cf5ab928a6 100644

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

net/netfilter/nf_tables_api.c +2 -2
index 0bf347a0a1dd..df83224bef06 100644

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

net/netfilter/xt_nfacct.c +2 -2
index 7c6bf1c16813..0ca1cdfc4095 100644

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

net/packet/af_packet.c +6 -6
index 4753a796cf4c..8c06e3e6b52b 100644

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

net/sched/act_ctinfo.c +11 -8
index 7275ad869f8e..34a1fb617a0f 100644

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

net/sched/sch_netem.c +40 -0
index cb38e58ee771..2613353defde 100644

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

net/sched/sch_qfq.c +3 -4
index f2692c9173f7..2f2863ae18ad 100644

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

net/tls/tls_sw.c +13 -0
index 5f95f837dfc7..6ac3dcbe87b5 100644

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

net/vmw_vsock/af_vsock.c +2 -1
index 678b809affe0..4184e8110f56 100644

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

net/xfrm/xfrm_interface_core.c +1 -6
index 85501b77f4e3..45466fa4ace4 100644

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

samples/mei/mei-amt-version.c +1 -1
index 867debd3b912..1d7254bcb44c 100644

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

scripts/kconfig/qconf.cc +1 -1
index 61b679f6c2f2..c31dead186cc 100644

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

security/apparmor/include/match.h +2 -1
index 884489590588..29306ec87fd1 100644

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

security/apparmor/match.c +1 -0
index 3e9e1eaf990e..0e683ee323e3 100644

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

sound/pci/hda/hda_tegra.c +45 -6

51 lines not on this page · raw message

sound/pci/hda/patch_ca0132.c +4 -1
index 748a3c40966e..d825fcce05ee 100644

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

sound/pci/hda/patch_hdmi.c +20 -0
index 0ffacc779cd6..3388e407e44e 100644

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

sound/pci/hda/patch_realtek.c +1 -0
index f0c67b6af33a..43265f4d42a5 100644

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

sound/soc/amd/yc/acp6x-mach.c +7 -0
index 1f4c43bf817e..fce918a089e3 100644

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

sound/soc/intel/boards/Kconfig +1 -1
index ca49cc49c378..109efda305bf 100644

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

sound/soc/soc-dai.c +9 -7
index ba38b6e6b264..ba8a99124869 100644

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

sound/soc/soc-ops.c +15 -11
index eff1355cc3df..5be32c37bb8a 100644

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

sound/usb/mixer_scarlett2.c +7 -0
index bcb8b7617406..fa2bfa102ab5 100644

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

sound/x86/intel_hdmi_audio.c +1 -1
index ab95fb34a635..7b9292cf839f 100644

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

tools/bpf/bpftool/net.c +9 -6
index 526a332c48e6..7c9e86faab6c 100644

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

tools/perf/builtin-sched.c +36 -3
index e440a00b1613..3ffb41fa82b8 100644

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

tools/perf/tests/bp_account.c +1 -0
index 6f921db33cf9..855b81c3326c 100644

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

tools/perf/util/evsel.c +11 -0
index 7db35dbdfcef..22969cc00a5f 100644

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

tools/perf/util/evsel.h +2 -0
index 8ce30329a077..fabf0697c36a 100644

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

tools/testing/selftests/arm64/fp/sve-ptrace.c +1 -1
index 8c4847977583..91dd31629ffe 100644

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

tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc +26 -2
index b7c8f29c09a9..65916bb55dfb 100644

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

tools/testing/selftests/net/mptcp/Makefile +2 -1
index 7b936a926859..3c2fb9efb0b1 100644

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

tools/testing/selftests/net/mptcp/mptcp_connect_checksum.sh new file +5 -0
new file mode 100644
index 000000000000..ce93ec2f107f

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

tools/testing/selftests/net/mptcp/mptcp_connect_mmap.sh new file +5 -0
new file mode 100644
index 000000000000..5dd30f9394af

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

tools/testing/selftests/net/mptcp/mptcp_connect_sendfile.sh new file +5 -0
new file mode 100644
index 000000000000..1d16fb1cc9bb

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

tools/testing/selftests/net/rtnetlink.sh +6 -0
index ff1242f2afaa..7d2164e0a39d 100755

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

tools/testing/selftests/perf_events/.gitignore +1 -0
index 790c47001e77..4858977dd55b 100644

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

tools/testing/selftests/perf_events/Makefile +1 -1
index db93c4ff081a..913854914ae4 100644

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

tools/testing/selftests/perf_events/mmap.c new file +236 -0

236 lines not on this page · raw message

tools/testing/selftests/syscall_user_dispatch/sud_test.c +25 -25

50 lines not on this page · 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.