Linux 4.19.6
Greg KH
maintainerI'm announcing the release of the 4.19.6 kernel.
All users of the 4.19 kernel series must upgrade.
The updated 4.19.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/admin-guide/security-bugs.rst | 48 +- Documentation/devicetree/bindings/net/can/holt_hi311x.txt | 2 MAINTAINERS | 1 Makefile | 2 arch/powerpc/include/asm/io.h | 20 arch/powerpc/kvm/trace.h | 8 arch/powerpc/kvm/trace_booke.h | 9 arch/powerpc/kvm/trace_hv.h | 9 arch/powerpc/kvm/trace_pr.h | 9 arch/powerpc/mm/numa.c | 2 arch/riscv/Makefile | 4 arch/riscv/kernel/module.c | 12 arch/x86/events/intel/uncore_snb.c | 115 +++++ block/bio.c | 1 block/bounce.c | 1 crypto/simd.c | 5 drivers/acpi/acpica/dsopcode.c | 4 drivers/block/floppy.c | 3 drivers/cpufreq/imx6q-cpufreq.c | 7 drivers/firmware/efi/arm-init.c | 4 drivers/firmware/efi/arm-runtime.c | 2 drivers/firmware/efi/libstub/Makefile | 3 drivers/firmware/efi/memmap.c | 3 drivers/gpio/gpiolib.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 7 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 1 drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 2 drivers/gpu/drm/ast/ast_drv.c | 21 drivers/gpu/drm/ast/ast_mode.c | 3 drivers/gpu/drm/drm_fb_helper.c | 3 drivers/gpu/drm/i915/intel_pm.c | 41 + drivers/gpu/drm/vc4/vc4_kms.c | 6 drivers/hid/hid-steam.c | 154 ++++--- drivers/infiniband/hw/hfi1/user_sdma.c | 87 +-- drivers/infiniband/hw/hfi1/user_sdma.h | 3 drivers/input/mouse/synaptics.c | 4 drivers/media/i2c/ov5640.c | 263 +++++++----- drivers/mmc/host/sdhci-pci-core.c | 86 +++ drivers/net/can/dev.c | 48 +- drivers/net/can/flexcan.c | 108 ++-- drivers/net/can/rx-offload.c | 51 ++ drivers/net/can/spi/hi311x.c | 2 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 drivers/net/wireless/intel/iwlwifi/fw/acpi.h | 4 drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 38 + drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 12 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c | 5 drivers/opp/ti-opp-supply.c | 5 drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 2 drivers/pinctrl/meson/pinctrl-meson-gxl.c | 2 drivers/pinctrl/meson/pinctrl-meson.c | 2 drivers/pinctrl/meson/pinctrl-meson8.c | 2 drivers/pinctrl/meson/pinctrl-meson8b.c | 2 drivers/rtc/rtc-cmos.c | 16 drivers/rtc/rtc-pcf2127.c | 3 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 2 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 2 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 drivers/scsi/lpfc/lpfc_debugfs.c | 2 drivers/tty/n_tty.c | 20 drivers/tty/tty_buffer.c | 6 drivers/usb/core/hub.c | 4 drivers/usb/dwc3/core.c | 1 drivers/usb/dwc3/dwc3-pci.c | 4 drivers/usb/dwc3/gadget.c | 8 drivers/usb/host/xhci-histb.c | 6 drivers/usb/host/xhci-hub.c | 66 ++- drivers/usb/host/xhci-mtk.c | 6 drivers/usb/host/xhci-pci.c | 6 drivers/usb/host/xhci-plat.c | 6 drivers/usb/host/xhci-ring.c | 45 +- drivers/usb/host/xhci-tegra.c | 1 drivers/usb/host/xhci.c | 2 drivers/usb/host/xhci.h | 3 fs/9p/vfs_dir.c | 11 fs/bfs/inode.c | 9 fs/dax.c | 7 fs/gfs2/bmap.c | 40 - fs/gfs2/ops_fstype.c | 2 fs/nfs/callback_proc.c | 4 fs/nfs/delegation.c | 11 fs/notify/fanotify/fanotify.c | 10 fs/notify/fsnotify.c | 15 include/linux/can/dev.h | 1 include/linux/can/rx-offload.h | 7 include/linux/fsnotify_backend.h | 9 include/linux/pfn_t.h | 2 include/net/sock.h | 1 kernel/debug/kdb/kdb_io.c | 15 kernel/debug/kdb/kdb_private.h | 2 kernel/debug/kdb/kdb_support.c | 10 kernel/rcu/tree.c | 9 kernel/sched/fair.c | 62 ++ mm/memory.c | 34 + mm/page_alloc.c | 28 - mm/shmem.c | 4 mm/slab.c | 4 mm/slab_common.c | 12 mm/z3fold.c | 101 ++-- net/can/raw.c | 15 net/core/sock.c | 2 net/ipv4/tcp.c | 11 net/llc/af_llc.c | 11 net/sctp/associola.c | 10 net/sunrpc/auth_generic.c | 8 security/selinux/ss/policydb.c | 2 sound/core/oss/pcm_oss.c | 6 sound/core/oss/pcm_plugin.c | 6 tools/power/cpupower/bench/Makefile | 2 tools/power/cpupower/lib/cpufreq.c | 2 tools/power/cpupower/lib/cpuidle.c | 2 tools/power/cpupower/lib/cpupower.c | 4 tools/power/cpupower/lib/cpupower_intern.h | 2 tools/testing/nvdimm/test/nfit.c | 8 114 files changed, 1341 insertions(+), 617 deletions(-)
Aaron Ma (2):
usb: xhci: fix uninitialized completion when USB3 port got wrong status
usb: xhci: fix timeout for transition from RExit to U0
Adrian Hunter (1):
mmc: sdhci-pci: Workaround GLK firmware failing to restore the tuning value
Alexander Stein (1):
can: flexcan: Always use last mailbox for TX
Alistair Strachan (1):
efi/libstub: arm: support building with clang
Amir Goldstein (2):
fsnotify: generalize handling of extra event flags
fanotify: fix handling of events on child sub-directory
Andreas Gruenbacher (1):
gfs2: Fix iomap buffer head reference counting bug
Andrew Price (1):
gfs2: Don't leave s_fs_info pointing to freed memory in init_sbd
Andy Shevchenko (1):
usb: dwc3: core: Clean up ULPI device
Aneesh Kumar K.V (1):
mm/memory.c: recheck page table entry with page table lock held
Anson Huang (1):
cpufreq: imx6q: add return value check for voltage scale
Ard Biesheuvel (2):
crypto: simd - correctly take reqsize of wrapped skcipher into account efi/arm: Revert deferred unmap of early memmap mapping
Arnd Bergmann (1):
scsi: lpfc: fix remoteport access
Boris Brezillon (1):
drm/vc4: Set ->legacy_cursor_update to false when doing non-async updates
Cherian, George (1):
xhci: Add quirk to workaround the errata seen on Cavium Thunder-X2 Soc
David Abdurachmanov (1):
riscv: add missing vdso_install target
Dennis Wassenberg (1):
usb: core: Fix hub port connection events lost
Dmitry Torokhov (1):
Input: synaptics - avoid using uninitialized variable when probing
Dmitry Vyukov (1):
mm: don't warn about large allocations for slab
Dominique Martinet (1):
v9fs_dir_readdir: fix double-free on p9stat_read error
Emmanuel Grumbach (2):
iwlwifi: mvm: support sta_statistics() even on older firmware
iwlwifi: mvm: fix regulatory domain update when the firmware starts
Eric Dumazet (2):
llc: do not use sk_eat_skb()
tcp: do not release socket ownership in tcp_close()
Erik Schmauss (1):
ACPICA: AML interpreter: add region addresses in global list during initialization
Felipe Balbi (1):
usb: dwc3: gadget: fix ISOC TRB type on unaligned transfers
Felix Kuehling (1):
drm/amdgpu: Fix oops when pp_funcs->switch_power_profile is unset
Greg Kroah-Hartman (3):
MAINTAINERS: Add Sasha as a stable branch maintainer
tty: wipe buffer if not echoing data
Linux 4.19.6
Hannes Reinecke (1):
block: copy ioprio in __bio_clone_fast() and bounce
Hans de Goede (1):
rtc: cmos: Do not export alarm rtc_ops when we do not support alarms
Hugues Fruchet (4):
media: ov5640: fix exposure regression
media: ov5640: fix auto gain & exposure when changing mode
media: ov5640: fix wrong binning value in exposure calculation
media: ov5640: fix auto controls values when switching to manual mode
Jacopo Mondi (2):
media: ov5640: Re-work MIPI startup sequence
media: ov5640: Fix timings setup code
Jens Axboe (1):
floppy: fix race condition in __floppy_read_block_0()
Jerome Brunet (5):
pinctrl: meson: fix pinconf bias disable
pinctrl: meson: fix gxbb ao pull register bits
pinctrl: meson: fix gxl ao pull register bits
pinctrl: meson: fix meson8 ao pull register bits
pinctrl: meson: fix meson8b ao pull register bits
Kan Liang (1):
perf/x86/intel/uncore: Add more IMC PCI IDs for KabyLake and CoffeeLake CPUs
Keerthy (2):
opp: ti-opp-supply: Dynamically update u_volt_min
opp: ti-opp-supply: Correct the supply in _get_optimal_vdd_voltage call
Konstantin Khlebnikov (1):
tools/power/cpupower: fix compilation with STATIC=true
Kuppuswamy Sathyanarayanan (1):
usb: dwc3: Fix NULL pointer exception in dwc3_pci_remove()
Linus Torvalds (1):
tty: wipe buffer.
Luca Coelho (1):
iwlwifi: mvm: don't use SAR Geo if basic SAR is not used
Lukas Wunner (1):
can: hi311x: Use level-triggered interrupt
Marc Kleine-Budde (5):
can: dev: can_get_echo_skb(): factor out non sending code to __can_get_echo_skb()
can: dev: __can_get_echo_skb(): replace struct can_frame by canfd_frame to access frame length
can: dev: __can_get_echo_skb(): Don't crash the kernel if can_priv::echo_skb is accessed out of bounds
can: dev: __can_get_echo_skb(): print error message, if trying to echo non existing skb
can: flexcan: remove not needed struct flexcan_priv::tx_mb and struct flexcan_priv::tx_mb_idx
Masayoshi Mizuma (1):
tools/testing/nvdimm: Fix the array size for dimm devices.
Mathias Nyman (3):
xhci: Fix leaking USB3 shared_hcd at xhci removal
xhci: handle port status events for removed USB3 hcd
usb: xhci: Prevent bus suspend if a port connect change or polling state is detected
Matt Chen (1):
iwlwifi: fix wrong WGDS_WIFI_DATA_SIZE
Matthew Wilcox (1):
dax: Avoid losing wakeup in dax_lock_mapping_entry
Michael Ellerman (1):
powerpc/io: Fix the IO workarounds code to work with Radix
Michael J. Ruhl (1):
IB/hfi1: Eliminate races in the SDMA send error path
Michal Hocko (2):
mm, memory_hotplug: check zone_movable in has_unmovable_pages mm, page_alloc: check for max order in hot path
Oleksij Rempel (4):
can: rx-offload: introduce can_rx_offload_get_echo_skb() and can_rx_offload_queue_sorted() functions
can: rx-offload: rename can_rx_offload_irq_queue_err_skb() to can_rx_offload_queue_tail()
can: flexcan: use can_rx_offload_queue_sorted() for flexcan_irq_bus_*()
can: flexcan: handle tx-complete CAN frames via rx-offload infrastructure
Oliver Hartkopp (1):
can: raw: check for CAN FD capable netdev in raw_sendmsg()
Olof Johansson (1):
RISC-V: Silence some module warnings on 32-bit
Pankaj Bansal (1):
can: flexcan: Unlock the MB unconditionally
Patrick Bellasi (1):
sched/fair: Fix cpu_util_wake() for 'execl' type workloads
Paul E. McKenney (1):
rcu: Make need_resched() respond to urgent RCU-QS needs
Paul Kocialkowski (1):
drm/fb-helper: Blacklist writeback when adding connectors to fbdev
Philip Yang (1):
drm/amdgpu: fix bug with IH ring setup
Prarit Bhargava (1):
kdb: Use strscpy with destination buffer size
Rafał Miłecki (1):
brcmfmac: fix reporting support for 160 MHz channels
Rajat Jain (1):
mmc: sdhci-pci: Try "cd" for card-detect lookup before using NULL
Rodrigo Rivas Costa (1):
HID: steam: remove input device when a hid client is running.
Sandeep Singh (1):
xhci: Add check for invalid byte size error when UAS devices are connected.
Satheesh Rajendran (1):
powerpc/numa: Suppress "VPHN is not supported" messages
Scott Wood (1):
KVM: PPC: Move and undef TRACE_INCLUDE_PATH/FILE
Sebastien Boisvert (1):
include/linux/pfn_t.h: force '~' to be parsed as an unary operator
Takashi Iwai (2):
ALSA: oss: Use kvzalloc() for local buffer allocations drm/amdgpu: Add missing firmware entry for HAINAN
Tetsuo Handa (2):
selinux: Add __GFP_NOWARN to allocation at str_read()
bfs: add sanity check at bfs_fill_super()
Thinh Nguyen (1):
usb: dwc3: gadget: Properly check last unaligned/zero chain TRB
Thomas Zimmermann (1):
drm/ast: Remove existing framebuffers before loading driver
Trond Myklebust (2):
SUNRPC: Fix a bogus get/put in generic_key_to_expire()
NFSv4: Fix an Oops during delegation callbacks
Ville Syrjälä (1):
drm/i915: Disable LP3 watermarks on all SNB machines
Vitaly Wool (1):
z3fold: fix possible reclaim races
Vladimir Zapolskiy (1):
gpio: don't free unallocated ida on gpiochip_add_data_with_key() error path
Will Deacon (2):
Documentation/security-bugs: Clarify treatment of embargoed information Documentation/security-bugs: Postpone fix publication in exceptional cases
Xin Long (1):
sctp: clear the transport of some out_chunk_list chunks in sctp_assoc_rm_peer
Xulin Sun (1):
rtc: pcf2127: fix a kmemleak caused in pcf2127_i2c_gather_write
Y.C. Chen (2):
drm/ast: change resolution may cause screen blurred drm/ast: fixed cursor may disappear sometimes
YueHaibing (1):
scsi: hisi_sas: Remove set but not used variable 'dq_list'
Yufen Yu (1):
tmpfs: make lseek(SEEK_DATA/SEK_HOLE) return ENXIO with a negative offset
Greg KH
maintainerDocumentation/admin-guide/security-bugs.rst +30 -18
@@ -26,23 +26,35 @@ information is helpful. Any exploit code is very helpful and will not be released without consent from the reporter unless it has already been made public. -Disclosure ----------- - -The goal of the Linux kernel security team is to work with the bug -submitter to understand and fix the bug. We prefer to publish the fix as -soon as possible, but try to avoid public discussion of the bug itself -and leave that to others. - -Publishing the fix may be delayed when the bug or the fix is not yet -fully understood, the solution is not well-tested or for vendor -coordination. However, we expect these delays to be short, measurable in -days, not weeks or months. A release date is negotiated by the security -team working with the bug submitter as well as vendors. However, the -kernel security team holds the final say when setting a timeframe. The -timeframe varies from immediate (esp. if it's already publicly known bug) -to a few weeks. As a basic default policy, we expect report date to -release date to be on the order of 7 days. +Disclosure and embargoed information +------------------------------------ + +The security list is not a disclosure channel. For that, see Coordination +below. + +Once a robust fix has been developed, the release process starts. Fixes +for publicly known bugs are released immediately. + +Although our preference is to release fixes for publicly undisclosed bugs +as soon as they become available, this may be postponed at the request of +the reporter or an affected party for up to 7 calendar days from the start +of the release process, with an exceptional extension to 14 calendar days +if it is agreed that the criticality of the bug requires more time. The +only valid reason for deferring the publication of a fix is to accommodate +the logistics of QA and large scale rollouts which require release +coordination. + +Whilst embargoed information may be shared with trusted individuals in +order to develop a fix, such information will not be published alongside +the fix or on any other disclosure channel without the permission of the +reporter. This includes but is not limited to the original bug report +and followup discussions (if any), exploits, CVE information or the +identity of the reporter. + +In other words our only interest is in getting bugs fixed. All other +information submitted to the security list and any followup discussions +of the report are treated confidentially even after the embargo has been +lifted, in perpetuity. Coordination ------------
@@ -68,7 +80,7 @@ may delay the bug handling. If a reporter wishes to have a CVE identifier assigned ahead of public disclosure, they will need to contact the private linux-distros list, described above. When such a CVE identifier is known before a patch is provided, it is desirable to mention it in the commit -message, though. +message if the reporter agrees. Non-disclosure agreements -------------------------
Documentation/devicetree/bindings/net/can/holt_hi311x.txt +1 -1
@@ -17,7 +17,7 @@ Example: reg = <1>; clocks = <&clk32m>; interrupt-parent = <&gpio4>; - interrupts = <13 IRQ_TYPE_EDGE_RISING>; + interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; vdd-supply = <®5v0>; xceiver-supply = <®5v0>; };
MAINTAINERS +1 -0
@@ -13769,6 +13769,7 @@ F: drivers/i2c/busses/i2c-stm32* STABLE BRANCH M: Greg Kroah-Hartman <[email protected]> +M: Sasha Levin <[email protected]> L: [email protected] S: Supported F: Documentation/process/stable-kernel-rules.rst
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 5 +SUBLEVEL = 6 EXTRAVERSION = NAME = "People's Front"
arch/powerpc/include/asm/io.h +7 -13
@@ -285,19 +285,13 @@ extern void _memcpy_toio(volatile void __iomem *dest, const void *src,* their hooks, a bitfield is reserved for use by the platform near the * top of MMIO addresses (not PIO, those have to cope the hard way). * -* This bit field is 12 bits and is at the top of the IO virtual -* addresses PCI_IO_INDIRECT_TOKEN_MASK. +* The highest address in the kernel virtual space are: * -* The kernel virtual space is thus: +* d0003fffffffffff # with Hash MMU +* c00fffffffffffff # with Radix MMU * -* 0xD000000000000000 : vmalloc -* 0xD000080000000000 : PCI PHB IO space -* 0xD000080080000000 : ioremap -* 0xD0000fffffffffff : end of ioremap region -* -* Since the top 4 bits are reserved as the region ID, we use thus -* the next 12 bits and keep 4 bits available for the future if the -* virtual address space is ever to be extended. +* The top 4 bits are reserved as the region ID on hash, leaving us 8 bits +* that can be used for the field. * * The direct IO mapping operations will then mask off those bits * before doing the actual access, though that only happen when
@@ -309,8 +303,8 @@ extern void _memcpy_toio(volatile void __iomem *dest, const void *src,*/ #ifdef CONFIG_PPC_INDIRECT_MMIO -#define PCI_IO_IND_TOKEN_MASK 0x0fff000000000000ul -#define PCI_IO_IND_TOKEN_SHIFT 48 +#define PCI_IO_IND_TOKEN_SHIFT 52 +#define PCI_IO_IND_TOKEN_MASK (0xfful << PCI_IO_IND_TOKEN_SHIFT)#define PCI_FIX_ADDR (addr) \ ((PCI_IO_ADDR)(((unsigned long)(addr)) & ~PCI_IO_IND_TOKEN_MASK))#define PCI_GET_ADDR_TOKEN (addr) \
arch/powerpc/kvm/trace.h +6 -2
@@ -6,8 +6,6 @@#undef TRACE_SYSTEM#define TRACE_SYSTEM kvm -#define TRACE_INCLUDE_PATH . -#define TRACE_INCLUDE_FILE trace/* * Tracepoint for guest mode entry.
@@ -120,4 +118,10 @@ TRACE_EVENT(kvm_check_requests,#endif /* _TRACE_KVM_H */ /* This part must be outside protection */ +#undef TRACE_INCLUDE_PATH +#undef TRACE_INCLUDE_FILE + +#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_FILE trace +#include <trace/define_trace.h>
arch/powerpc/kvm/trace_booke.h +7 -2
@@ -6,8 +6,6 @@#undef TRACE_SYSTEM#define TRACE_SYSTEM kvm_booke -#define TRACE_INCLUDE_PATH . -#define TRACE_INCLUDE_FILE trace_booke#define kvm_trace_symbol_exit \ {0, "CRITICAL"}, \
@@ -218,4 +216,11 @@ TRACE_EVENT(kvm_booke_queue_irqprio,#endif /* This part must be outside protection */ + +#undef TRACE_INCLUDE_PATH +#undef TRACE_INCLUDE_FILE + +#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_FILE trace_booke +#include <trace/define_trace.h>
arch/powerpc/kvm/trace_hv.h +7 -2
@@ -9,8 +9,6 @@#undef TRACE_SYSTEM#define TRACE_SYSTEM kvm_hv -#define TRACE_INCLUDE_PATH . -#define TRACE_INCLUDE_FILE trace_hv#define kvm_trace_symbol_hcall \ {H_REMOVE, "H_REMOVE"}, \
@@ -497,4 +495,11 @@ TRACE_EVENT(kvmppc_run_vcpu_exit,#endif /* _TRACE_KVM_HV_H */ /* This part must be outside protection */ + +#undef TRACE_INCLUDE_PATH +#undef TRACE_INCLUDE_FILE + +#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_FILE trace_hv +#include <trace/define_trace.h>
arch/powerpc/kvm/trace_pr.h +7 -2
@@ -8,8 +8,6 @@#undef TRACE_SYSTEM#define TRACE_SYSTEM kvm_pr -#define TRACE_INCLUDE_PATH . -#define TRACE_INCLUDE_FILE trace_pr TRACE_EVENT(kvm_book3s_reenter, TP_PROTO(int r, struct kvm_vcpu *vcpu),
@@ -257,4 +255,11 @@ TRACE_EVENT(kvm_exit,#endif /* _TRACE_KVM_H */ /* This part must be outside protection */ + +#undef TRACE_INCLUDE_PATH +#undef TRACE_INCLUDE_FILE + +#define TRACE_INCLUDE_PATH . +#define TRACE_INCLUDE_FILE trace_pr +#include <trace/define_trace.h>
arch/powerpc/mm/numa.c +1 -1
@@ -1179,7 +1179,7 @@ static long vphn_get_associativity(unsigned long cpu,switch (rc) {case H_FUNCTION : -printk (KERN_INFO +printk_once (KERN_INFO "VPHN is not supported. Disabling polling...\n" );stop_topology_update ();break ;
arch/riscv/Makefile +4 -0
@@ -82,4 +82,8 @@ core-y += arch/riscv/kernel/ arch/riscv/mm/ libs-y += arch/riscv/lib/ +PHONY += vdso_install +vdso_install: + $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@ + all: vmlinux
arch/riscv/kernel/module.c +6 -6
@@ -21,7 +21,7 @@ static int apply_r_riscv_32_rela(struct module *me, u32 *location, Elf_Addr v) {if (v != (u32 )v) {pr_err ("%s: value %016llx out of range for 32-bit field\n" , - me->name, v); + me->name, (long long )v);return -EINVAL ; } *location = v;
@@ -102,7 +102,7 @@ static int apply_r_riscv_pcrel_hi20_rela(struct module *me, u32 *location,if (offset != (s32 )offset) {pr_err ("%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n" , - me->name, v, location); + me->name, (long long )v, location);return -EINVAL ; }
@@ -144,7 +144,7 @@ static int apply_r_riscv_hi20_rela(struct module *me, u32 *location,if (IS_ENABLED (CMODEL_MEDLOW )) {pr_err ("%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n" , - me->name, v, location); + me->name, (long long )v, location);return -EINVAL ; }
@@ -188,7 +188,7 @@ static int apply_r_riscv_got_hi20_rela(struct module *me, u32 *location, }else {pr_err ("%s: can not generate the GOT entry for symbol = %016llx from PC = %p\n" , - me->name, v, location); + me->name, (long long )v, location);return -EINVAL ; }
@@ -212,7 +212,7 @@ static int apply_r_riscv_call_plt_rela(struct module *me, u32 *location, }else {pr_err ("%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n" , - me->name, v, location); + me->name, (long long )v, location);return -EINVAL ; } }
@@ -234,7 +234,7 @@ static int apply_r_riscv_call_rela(struct module *me, u32 *location,if (offset != fill_v) {pr_err ("%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n" , - me->name, v, location); + me->name, (long long )v, location);return -EINVAL ; }
arch/x86/events/intel/uncore_snb.c +114 -1
133 lines not on this page · raw message
block/bio.c +1 -0
@@ -605,6 +605,7 @@ void __bio_clone_fast(struct bio *bio, struct bio *bio_src)if (bio_flagged (bio_src,BIO_THROTTLED ))bio_set_flag (bio,BIO_THROTTLED ); bio->bi_opf = bio_src->bi_opf; + bio->bi_ioprio = bio_src->bi_ioprio; bio->bi_write_hint = bio_src->bi_write_hint; bio->bi_iter = bio_src->bi_iter; bio->bi_io_vec = bio_src->bi_io_vec;
block/bounce.c +1 -0
@@ -248,6 +248,7 @@ static struct bio *bounce_clone_bio(struct bio *bio_src, gfp_t gfp_mask,return NULL ; bio->bi_disk = bio_src->bi_disk; bio->bi_opf = bio_src->bi_opf; + bio->bi_ioprio = bio_src->bi_ioprio; bio->bi_write_hint = bio_src->bi_write_hint; bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; bio->bi_iter.bi_size = bio_src->bi_iter.bi_size;
crypto/simd.c +3 -2
@@ -124,8 +124,9 @@ static int simd_skcipher_init(struct crypto_skcipher *tfm) ctx->cryptd_tfm = cryptd_tfm; - reqsize =sizeof (struct skcipher_request ); - reqsize +=crypto_skcipher_reqsize (&cryptd_tfm->base); + reqsize =crypto_skcipher_reqsize (cryptd_skcipher_child (cryptd_tfm)); + reqsize =max (reqsize,crypto_skcipher_reqsize (&cryptd_tfm->base)); + reqsize +=sizeof (struct skcipher_request );crypto_skcipher_set_reqsize (tfm, reqsize);
drivers/acpi/acpica/dsopcode.c +4 -0
@@ -417,6 +417,10 @@ acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state,ACPI_FORMAT_UINT64 (obj_desc->region.address), obj_desc->region.length)); + status =acpi_ut_add_address_range (obj_desc->region.space_id, + obj_desc->region.address, + obj_desc->region.length, node); +/* Now the address and length are valid for this opregion */ obj_desc->region.flags |=AOPOBJ_DATA_VALID ;
drivers/block/floppy.c +2 -1
@@ -4151,10 +4151,11 @@ static int __floppy_read_block_0(struct block_device *bdev, int drive) bio.bi_end_io = floppy_rb0_cb;bio_set_op_attrs (&bio,REQ_OP_READ ,0 ); +init_completion (&cbdata.complete); +submit_bio (&bio);process_fd_request (); -init_completion (&cbdata.complete);wait_for_completion (&cbdata.complete);__free_page (page);
drivers/cpufreq/imx6q-cpufreq.c +6 -1
@@ -159,8 +159,13 @@ static int imx6q_set_target(struct cpufreq_policy *policy, unsigned int index)/* Ensure the arm clock divider is what we expect */ ret =clk_set_rate (clks[ARM ].clk, new_freq *1000 );if (ret) { +int ret1; +dev_err (cpu_dev,"failed to set clock rate: %d\n" , ret); -regulator_set_voltage_tol (arm_reg, volt_old,0 ); + ret1 =regulator_set_voltage_tol (arm_reg, volt_old,0 ); +if (ret1) +dev_warn (cpu_dev, +"failed to restore vddarm voltage: %d\n" , ret1);return ret; }
drivers/firmware/efi/arm-init.c +4 -0
@@ -265,6 +265,10 @@ void __init efi_init(void) (params.mmap & ~PAGE_MASK)));init_screen_info (); + +/* ARM does not permit early mappings to persist across paging_init() */ +if (IS_ENABLED (CONFIG_ARM )) +efi_memmap_unmap (); }static int __init register_gop_device (void )
drivers/firmware/efi/arm-runtime.c +1 -1
@@ -110,7 +110,7 @@ static int __init arm_enable_runtime_services(void) {u64 mapsize; -if (!efi_enabled (EFI_BOOT ) || !efi_enabled (EFI_MEMMAP )) { +if (!efi_enabled (EFI_BOOT )) {pr_info ("EFI services will not be available.\n" );return 0 ; }
drivers/firmware/efi/libstub/Makefile +2 -1
@@ -16,7 +16,8 @@ cflags-$(CONFIG_X86) += -m$(BITS) -D__KERNEL__ -O2 \ cflags-$(CONFIG_ARM64) := $(subst -pg,,$(KBUILD_CFLAGS)) -fpie \ $(DISABLE_STACKLEAK_PLUGIN) cflags-$(CONFIG_ARM) := $(subst -pg,,$(KBUILD_CFLAGS)) \ - -fno-builtin -fpic -mno-single-pic-base + -fno-builtin -fpic \ + $(call cc-option,-mno-single-pic-base) cflags-$(CONFIG_EFI_ARMSTUB) += -I$(srctree)/scripts/dtc/libfdt
drivers/firmware/efi/memmap.c +3 -0
@@ -118,6 +118,9 @@ int __init efi_memmap_init_early(struct efi_memory_map_data *data)void __init efi_memmap_unmap (void ) { +if (!efi_enabled (EFI_MEMMAP )) +return ; +if (!efi.memmap.late) {unsigned long size;
drivers/gpio/gpiolib.c +3 -2
@@ -1285,7 +1285,7 @@ int gpiochip_add_data_with_key(struct gpio_chip *chip, void *data, gdev->descs =kcalloc (chip->ngpio,sizeof (gdev->descs[0 ]),GFP_KERNEL );if (!gdev->descs) { status = -ENOMEM ; - goto err_free_gdev; + goto err_free_ida; }if (chip->ngpio ==0 ) {
@@ -1413,8 +1413,9 @@ int gpiochip_add_data_with_key(struct gpio_chip *chip, void *data,kfree_const (gdev->label); err_free_descs:kfree (gdev->descs); -err_free_gdev: +err_free_ida:ida_simple_remove (&gpio_ida, gdev->id); +err_free_gdev:/* failures here can mean systems won't boot... */ pr_err("%s: GPIOs %d..%d (%s) failed to register, %d\n", __func__, gdev->base, gdev->base + gdev->ngpio - 1,
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c +5 -2
@@ -496,8 +496,11 @@ void amdgpu_amdkfd_set_compute_idle(struct kgd_dev *kgd, bool idle) {struct amdgpu_device *adev = (struct amdgpu_device *)kgd; -amdgpu_dpm_switch_power_profile (adev, -PP_SMC_POWER_PROFILE_COMPUTE , !idle); +if (adev->powerplay.pp_funcs && + adev->powerplay.pp_funcs->switch_power_profile) +amdgpu_dpm_switch_power_profile (adev, +PP_SMC_POWER_PROFILE_COMPUTE , + !idle); }bool amdgpu_amdkfd_is_kfd_vmid (struct amdgpu_device *adev,u32 vmid)
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +1 -0
@@ -45,6 +45,7 @@ MODULE_FIRMWARE("amdgpu/tahiti_mc.bin");MODULE_FIRMWARE ("amdgpu/pitcairn_mc.bin" );MODULE_FIRMWARE ("amdgpu/verde_mc.bin" );MODULE_FIRMWARE ("amdgpu/oland_mc.bin" ); +MODULE_FIRMWARE ("amdgpu/hainan_mc.bin" );MODULE_FIRMWARE ("amdgpu/si58_mc.bin" );#define MC_SEQ_MISC0__MT__MASK 0xf0000000
drivers/gpu/drm/amd/amdgpu/vega10_ih.c +1 -1
@@ -129,7 +129,7 @@ static int vega10_ih_irq_init(struct amdgpu_device *adev)else wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs *4 );WREG32_SOC15 (OSSSYS ,0 , mmIH_RB_WPTR_ADDR_LO,lower_32_bits (wptr_off)); -WREG32_SOC15 (OSSSYS ,0 , mmIH_RB_WPTR_ADDR_HI,upper_32_bits (wptr_off) &0xFF ); +WREG32_SOC15 (OSSSYS ,0 , mmIH_RB_WPTR_ADDR_HI,upper_32_bits (wptr_off) &0xFFFF );/* set rptr, wptr to 0 */ WREG32_SOC15 (OSSSYS ,0 , mmIH_RB_RPTR,0 );
drivers/gpu/drm/ast/ast_drv.c +21 -0
@@ -60,8 +60,29 @@ static const struct pci_device_id pciidlist[] = {MODULE_DEVICE_TABLE (pci, pciidlist); +static void ast_kick_out_firmware_fb (struct pci_dev *pdev) +{ +struct apertures_struct *ap; +bool primary = false; + + ap =alloc_apertures (1 ); +if (!ap) +return ; + + ap->ranges[0 ].base =pci_resource_start (pdev,0 ); + ap->ranges[0 ].size =pci_resource_len (pdev,0 ); + +#ifdef CONFIG_X86 + primary = pdev->resource[PCI_ROM_RESOURCE ].flags &IORESOURCE_ROM_SHADOW ; +#endif +drm_fb_helper_remove_conflicting_framebuffers (ap,"astdrmfb" , primary); +kfree (ap); +} +static int ast_pci_probe (struct pci_dev *pdev,const struct pci_device_id *ent) { +ast_kick_out_firmware_fb (pdev); +return drm_get_pci_dev (pdev, ent, &driver); }
drivers/gpu/drm/ast/ast_mode.c +2 -1
@@ -568,6 +568,7 @@ static int ast_crtc_do_set_base(struct drm_crtc *crtc, }ast_bo_unreserve (bo); +ast_set_offset_reg (crtc);ast_set_start_address_crt1 (crtc, (u32 )gpu_addr);return 0 ;
@@ -1254,7 +1255,7 @@ static int ast_cursor_move(struct drm_crtc *crtc,ast_set_index_reg (ast,AST_IO_CRTC_PORT ,0xc7 , ((y >>8 ) &0x07 ));/* dummy write to fire HWC */ -ast_set_index_reg_mask (ast,AST_IO_CRTC_PORT ,0xCB ,0xFF ,0x00 ); +ast_show_cursor (crtc);return 0 ; }
drivers/gpu/drm/drm_fb_helper.c +3 -0
@@ -200,6 +200,9 @@ int drm_fb_helper_single_add_all_connectors(struct drm_fb_helper *fb_helper)mutex_lock (&fb_helper->lock);drm_connector_list_iter_begin (dev, &conn_iter);drm_for_each_connector_iter (connector, &conn_iter) { +if (connector->connector_type ==DRM_MODE_CONNECTOR_WRITEBACK ) +continue ; + ret =__drm_fb_helper_add_one_connector (fb_helper, connector);if (ret) goto fail;
drivers/gpu/drm/i915/intel_pm.c +40 -1
72 lines not on this page · raw message
drivers/gpu/drm/vc4/vc4_kms.c +6 -0
@@ -216,6 +216,12 @@ static int vc4_atomic_commit(struct drm_device *dev,return 0 ; } +/* We know for sure we don't want an async update here. Set +* state->legacy_cursor_update to false to prevent +* drm_atomic_helper_setup_commit() from auto-completing +* commit->flip_done. +*/ + state->legacy_cursor_update = false; ret =drm_atomic_helper_setup_commit (state, nonblock);if (ret)return ret;
drivers/hid/hid-steam.c +90 -64
271 lines not on this page · raw message
drivers/infiniband/hw/hfi1/user_sdma.c +39 -48
172 lines not on this page · raw message
drivers/infiniband/hw/hfi1/user_sdma.h +0 -3
@@ -205,8 +205,6 @@ struct user_sdma_request {/* Writeable fields shared with interrupt */ u64 seqcomp____cacheline_aligned_in_smp ;u64 seqsubmitted; -/* status of the last txreq completed */ -int status;/* Send side fields */ struct list_head txps____cacheline_aligned_in_smp ;
@@ -228,7 +226,6 @@ struct user_sdma_request {u16 tididx;/* progress index moving along the iovs array */ u8 iov_idx; -u8 done;u8 has_error;struct user_sdma_iovec iovs[MAX_VECTORS_PER_REQ ];
drivers/input/mouse/synaptics.c +1 -3
@@ -99,9 +99,7 @@ static int synaptics_mode_cmd(struct psmouse *psmouse, u8 mode)int synaptics_detect (struct psmouse *psmouse,bool set_properties) {struct ps2dev *ps2dev = &psmouse->ps2dev; -u8 param[4 ]; - - param[0 ] =0 ; +u8 param[4 ] = {0 };ps2_command (ps2dev, param,PSMOUSE_CMD_SETRES );ps2_command (ps2dev, param,PSMOUSE_CMD_SETRES );
drivers/media/i2c/ov5640.c +164 -99
428 lines not on this page · raw message
drivers/mmc/host/sdhci-pci-core.c +83 -3
117 lines not on this page · raw message
drivers/net/can/dev.c +35 -13
63 lines not on this page · raw message
drivers/net/can/flexcan.c +60 -48
245 lines not on this page · raw message
drivers/net/can/rx-offload.c +49 -2
63 lines not on this page · raw message
drivers/net/can/spi/hi311x.c +1 -1
@@ -760,7 +760,7 @@ static int hi3110_open(struct net_device *net) {struct hi3110_priv *priv =netdev_priv (net);struct spi_device *spi = priv->spi; -unsigned long flags =IRQF_ONESHOT |IRQF_TRIGGER_RISING ; +unsigned long flags =IRQF_ONESHOT |IRQF_TRIGGER_HIGH ;int ret; ret =open_candev (net);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +2 -1
@@ -5997,7 +5997,8 @@ static int brcmf_construct_chaninfo(struct brcmf_cfg80211_info *cfg,* for subsequent chanspecs. */ channel->flags =IEEE80211_CHAN_NO_HT40 | -IEEE80211_CHAN_NO_80MHZ ; +IEEE80211_CHAN_NO_80MHZ | +IEEE80211_CHAN_NO_160MHZ ; ch.bw =BRCMU_CHAN_BW_20 ; cfg->d11inf.encchspec (&ch); chaninfo = ch.chspec;
drivers/net/wireless/intel/iwlwifi/fw/acpi.h +3 -1
@@ -6,6 +6,7 @@* GPL LICENSE SUMMARY * * Copyright(c) 2017 Intel Deutschland GmbH +* Copyright(c) 2018 Intel Corporation * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as
@@ -29,6 +30,7 @@* BSD LICENSE * * Copyright(c) 2017 Intel Deutschland GmbH +* Copyright(c) 2018 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without
@@ -84,7 +86,7 @@#define ACPI_WRDS_WIFI_DATA_SIZE (ACPI_SAR_TABLE_SIZE + 2)#define ACPI_EWRD_WIFI_DATA_SIZE ((ACPI_SAR_PROFILE_NUM - 1) * \ ACPI_SAR_TABLE_SIZE + 3) -#define ACPI_WGDS_WIFI_DATA_SIZE 18 +#define ACPI_WGDS_WIFI_DATA_SIZE 19#define ACPI_WRDD_WIFI_DATA_SIZE 2#define ACPI_SPLC_WIFI_DATA_SIZE 2
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +29 -9
@@ -880,7 +880,7 @@ static int iwl_mvm_sar_geo_init(struct iwl_mvm *mvm)IWL_DEBUG_RADIO (mvm,"Sending GEO_TX_POWER_LIMIT\n" );BUILD_BUG_ON (ACPI_NUM_GEO_PROFILES *ACPI_WGDS_NUM_BANDS * -ACPI_WGDS_TABLE_SIZE !=ACPI_WGDS_WIFI_DATA_SIZE ); +ACPI_WGDS_TABLE_SIZE +1 !=ACPI_WGDS_WIFI_DATA_SIZE );BUILD_BUG_ON (ACPI_NUM_GEO_PROFILES >IWL_NUM_GEO_PROFILES );
@@ -915,6 +915,11 @@ static int iwl_mvm_sar_get_ewrd_table(struct iwl_mvm *mvm)return -ENOENT ; } +static int iwl_mvm_sar_get_wgds_table (struct iwl_mvm *mvm) +{ +return -ENOENT ; +} +static int iwl_mvm_sar_geo_init (struct iwl_mvm *mvm) {return 0 ;
@@ -941,8 +946,11 @@ static int iwl_mvm_sar_init(struct iwl_mvm *mvm)IWL_DEBUG_RADIO (mvm,"WRDS SAR BIOS table invalid or unavailable. (%d)\n" , ret); -/* if not available, don't fail and don't bother with EWRD */ -return 0 ; +/* +* If not available, don't fail and don't bother with EWRD. +* Return 1 to tell that we can't use WGDS either. +*/ +return 1 ; } ret =iwl_mvm_sar_get_ewrd_table (mvm);
@@ -955,9 +963,13 @@ static int iwl_mvm_sar_init(struct iwl_mvm *mvm)/* choose profile 1 (WRDS) as default for both chains */ ret =iwl_mvm_sar_select_profile (mvm,1 ,1 ); -/* if we don't have profile 0 from BIOS, just skip it */ +/* +* If we don't have profile 0 from BIOS, just skip it. This +* means that SAR Geo will not be enabled either, even if we +* have other valid profiles. +*/ if (ret == -ENOENT ) -return 0 ; +return 1 ;return ret; }
@@ -1155,11 +1167,19 @@ int iwl_mvm_up(struct iwl_mvm *mvm)iwl_mvm_unref (mvm,IWL_MVM_REF_UCODE_DOWN ); ret =iwl_mvm_sar_init (mvm); -if (ret) - goto error; +if (ret ==0 ) { + ret =iwl_mvm_sar_geo_init (mvm); + }else if (ret >0 && !iwl_mvm_sar_get_wgds_table (mvm)) { +/* +* If basic SAR is not available, we check for WGDS, +* which should *not* be available either. If it is +* available, issue an error, because we can't use SAR +* Geo without basic SAR. +*/ +IWL_ERR (mvm,"BIOS contains WGDS but no WRDS\n" ); + } - ret =iwl_mvm_sar_geo_init (mvm); -if (ret) +if (ret <0 ) goto error;iwl_mvm_leds_sync (mvm);
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +6 -6
@@ -306,8 +306,12 @@ struct ieee80211_regdomain *iwl_mvm_get_regdomain(struct wiphy *wiphy, goto out; } -if (changed) - *changed = (resp->status ==MCC_RESP_NEW_CHAN_PROFILE ); +if (changed) { +u32 status =le32_to_cpu (resp->status); + + *changed = (status ==MCC_RESP_NEW_CHAN_PROFILE || + status ==MCC_RESP_ILLEGAL ); + } regd = iwl_parse_nvm_mcc_info(mvm->trans->dev, mvm->cfg, __le32_to_cpu(resp->n_channels),
@@ -4416,10 +4420,6 @@ static void iwl_mvm_mac_sta_statistics(struct ieee80211_hw *hw, sinfo->filled |=BIT_ULL (NL80211_STA_INFO_SIGNAL_AVG ); } -if (!fw_has_capa (&mvm->fw->ucode_capa, -IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS )) -return ; -/* if beacon filtering isn't on mac80211 does it anyway */ if (!(vif->driver_flags &IEEE80211_VIF_BEACON_FILTER ))return ;
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c +2 -3
@@ -545,9 +545,8 @@ iwl_mvm_update_mcc(struct iwl_mvm *mvm, const char *alpha2, }IWL_DEBUG_LAR (mvm, -"MCC response status: 0x%x. new MCC: 0x%x ('%c%c') change: %d n_chans: %d\n" , - status, mcc, mcc >>8 , mcc &0xff , - !!(status ==MCC_RESP_NEW_CHAN_PROFILE ), n_channels); +"MCC response status: 0x%x. new MCC: 0x%x ('%c%c') n_chans: %d\n" , + status, mcc, mcc >>8 , mcc &0xff , n_channels); exit:iwl_free_resp (&cmd);
drivers/opp/ti-opp-supply.c +4 -1
@@ -288,7 +288,10 @@ static int ti_opp_supply_set_opp(struct dev_pm_set_opp_data *data)int ret; vdd_uv =_get_optimal_vdd_voltage (dev, &opp_data, - new_supply_vbb->u_volt); + new_supply_vdd->u_volt); + +if (new_supply_vdd->u_volt_min < vdd_uv) + new_supply_vdd->u_volt_min = vdd_uv;/* Scaling up? Scale voltage before frequency */ if (freq > old_freq) {
drivers/pinctrl/meson/pinctrl-meson-gxbb.c +1 -1
@@ -830,7 +830,7 @@ static struct meson_bank meson_gxbb_periphs_banks[] = {static struct meson_bank meson_gxbb_aobus_banks[] = {/* name first last irq pullen pull dir out in */ -BANK ("AO" ,GPIOAO_0 ,GPIOAO_13 ,0 ,13 ,0 ,0 ,0 ,16 ,0 ,0 ,0 ,16 ,1 ,0 ), +BANK ("AO" ,GPIOAO_0 ,GPIOAO_13 ,0 ,13 ,0 ,16 ,0 ,0 ,0 ,0 ,0 ,16 ,1 ,0 ), };static struct meson_pinctrl_data meson_gxbb_periphs_pinctrl_data = {
drivers/pinctrl/meson/pinctrl-meson-gxl.c +1 -1
@@ -807,7 +807,7 @@ static struct meson_bank meson_gxl_periphs_banks[] = {static struct meson_bank meson_gxl_aobus_banks[] = {/* name first last irq pullen pull dir out in */ -BANK ("AO" ,GPIOAO_0 ,GPIOAO_9 ,0 ,9 ,0 ,0 ,0 ,16 ,0 ,0 ,0 ,16 ,1 ,0 ), +BANK ("AO" ,GPIOAO_0 ,GPIOAO_9 ,0 ,9 ,0 ,16 ,0 ,0 ,0 ,0 ,0 ,16 ,1 ,0 ), };static struct meson_pinctrl_data meson_gxl_periphs_pinctrl_data = {
drivers/pinctrl/meson/pinctrl-meson.c +1 -1
@@ -192,7 +192,7 @@ static int meson_pinconf_set(struct pinctrl_dev *pcdev, unsigned int pin,dev_dbg (pc->dev,"pin %u: disable bias\n" , pin);meson_calc_reg_and_bit (bank, pin,REG_PULL , ®, &bit); - ret =regmap_update_bits (pc->reg_pull, reg, + ret =regmap_update_bits (pc->reg_pullen, reg,BIT (bit),0 );if (ret)return ret;
drivers/pinctrl/meson/pinctrl-meson8.c +1 -1
@@ -1053,7 +1053,7 @@ static struct meson_bank meson8_cbus_banks[] = {static struct meson_bank meson8_aobus_banks[] = {/* name first last irq pullen pull dir out in */ -BANK ("AO" ,GPIOAO_0 ,GPIO_TEST_N ,0 ,13 ,0 ,0 ,0 ,16 ,0 ,0 ,0 ,16 ,1 ,0 ), +BANK ("AO" ,GPIOAO_0 ,GPIO_TEST_N ,0 ,13 ,0 ,16 ,0 ,0 ,0 ,0 ,0 ,16 ,1 ,0 ), };static struct meson_pinctrl_data meson8_cbus_pinctrl_data = {
drivers/pinctrl/meson/pinctrl-meson8b.c +1 -1
@@ -906,7 +906,7 @@ static struct meson_bank meson8b_cbus_banks[] = {static struct meson_bank meson8b_aobus_banks[] = {/* name first lastc irq pullen pull dir out in */ -BANK ("AO" ,GPIOAO_0 ,GPIO_TEST_N ,0 ,13 ,0 ,0 ,0 ,16 ,0 ,0 ,0 ,16 ,1 ,0 ), +BANK ("AO" ,GPIOAO_0 ,GPIO_TEST_N ,0 ,13 ,0 ,16 ,0 ,0 ,0 ,0 ,0 ,16 ,1 ,0 ), };static struct meson_pinctrl_data meson8b_cbus_pinctrl_data = {
drivers/rtc/rtc-cmos.c +12 -4
@@ -257,6 +257,7 @@ static int cmos_read_alarm(struct device *dev, struct rtc_wkalrm *t)struct cmos_rtc *cmos =dev_get_drvdata (dev);unsigned char rtc_control; +/* This not only a rtc_op, but also called directly */ if (!is_valid_irq (cmos->irq))return -EIO ;
@@ -452,6 +453,7 @@ static int cmos_set_alarm(struct device *dev, struct rtc_wkalrm *t)unsigned char mon, mday, hrs, min, sec, rtc_control;int ret; +/* This not only a rtc_op, but also called directly */ if (!is_valid_irq (cmos->irq))return -EIO ;
@@ -516,9 +518,6 @@ static int cmos_alarm_irq_enable(struct device *dev, unsigned int enabled)struct cmos_rtc *cmos =dev_get_drvdata (dev);unsigned long flags; -if (!is_valid_irq (cmos->irq)) -return -EINVAL ; -spin_lock_irqsave (&rtc_lock, flags);if (enabled)
@@ -579,6 +578,12 @@ static const struct rtc_class_ops cmos_rtc_ops = { .alarm_irq_enable = cmos_alarm_irq_enable, }; +static const struct rtc_class_ops cmos_rtc_ops_no_alarm = { + .read_time = cmos_read_time, + .set_time = cmos_set_time, + .proc = cmos_procfs, +}; +/*----------------------------------------------------------------*/ /*
@@ -855,9 +860,12 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)dev_dbg (dev,"IRQ %d is already in use\n" , rtc_irq); goto cleanup1; } + + cmos_rtc.rtc->ops = &cmos_rtc_ops; + }else { + cmos_rtc.rtc->ops = &cmos_rtc_ops_no_alarm; } - cmos_rtc.rtc->ops = &cmos_rtc_ops; cmos_rtc.rtc->nvram_old_abi = true; retval =rtc_register_device (cmos_rtc.rtc);if (retval)
drivers/rtc/rtc-pcf2127.c +3 -0
@@ -303,6 +303,9 @@ static int pcf2127_i2c_gather_write(void *context,memcpy (buf +1 , val, val_size); ret =i2c_master_send (client, buf, val_size +1 ); + +kfree (buf); +if (ret != val_size +1 )return ret <0 ? ret : -EIO ;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c +0 -2
@@ -904,11 +904,9 @@ static void start_delivery_v1_hw(struct hisi_sas_dq *dq) {struct hisi_hba *hisi_hba = dq->hisi_hba;struct hisi_sas_slot *s, *s1, *s2 =NULL ; -struct list_head *dq_list;int dlvry_queue = dq->id;int wp; - dq_list = &dq->list;list_for_each_entry_safe (s, s1, &dq->list, delivery) {if (!s->ready)break ;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c +0 -2
@@ -1666,11 +1666,9 @@ static void start_delivery_v2_hw(struct hisi_sas_dq *dq) {struct hisi_hba *hisi_hba = dq->hisi_hba;struct hisi_sas_slot *s, *s1, *s2 =NULL ; -struct list_head *dq_list;int dlvry_queue = dq->id;int wp; - dq_list = &dq->list;list_for_each_entry_safe (s, s1, &dq->list, delivery) {if (!s->ready)break ;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +0 -2
@@ -883,11 +883,9 @@ static void start_delivery_v3_hw(struct hisi_sas_dq *dq) {struct hisi_hba *hisi_hba = dq->hisi_hba;struct hisi_sas_slot *s, *s1, *s2 =NULL ; -struct list_head *dq_list;int dlvry_queue = dq->id;int wp; - dq_list = &dq->list;list_for_each_entry_safe (s, s1, &dq->list, delivery) {if (!s->ready)break ;
drivers/scsi/lpfc/lpfc_debugfs.c +2 -0
@@ -700,6 +700,8 @@ lpfc_debugfs_nodelist_data(struct lpfc_vport *vport, char *buf, int size) rport =lpfc_ndlp_get_nrport (ndlp);if (rport) nrport = rport->remoteport; +else + nrport =NULL ;spin_unlock (&phba->hbalock);if (!nrport)continue ;
drivers/tty/n_tty.c +17 -3
@@ -152,17 +152,28 @@ static inline unsigned char *echo_buf_addr(struct n_tty_data *ldata, size_t i)return &ldata->echo_buf[i & (N_TTY_BUF_SIZE -1 )]; } +/* If we are not echoing the data, perhaps this is a secret so erase it */ +static void zero_buffer (struct tty_struct *tty,u8 *buffer,int size) +{ +bool icanon = !!L_ICANON (tty); +bool no_echo = !L_ECHO (tty); + +if (icanon && no_echo) +memset (buffer,0x00 , size); +} +static int tty_copy_to_user (struct tty_struct *tty,void __user *to,size_t tail,size_t n) {struct n_tty_data *ldata = tty->disc_data;size_t size =N_TTY_BUF_SIZE - tail; -const void *from =read_buf_addr (ldata, tail); +void *from =read_buf_addr (ldata, tail);int uncopied;if (n > size) {tty_audit_add_data (tty, from, size); uncopied =copy_to_user (to, from, size); +zero_buffer (tty, from, size - uncopied);if (uncopied)return uncopied; to += size;
@@ -171,7 +182,9 @@ static int tty_copy_to_user(struct tty_struct *tty, void __user *to, }tty_audit_add_data (tty, from, n); -return copy_to_user (to, from, n); + uncopied =copy_to_user (to, from, n); +zero_buffer (tty, from, n - uncopied); +return uncopied; }/**
@@ -1960,11 +1973,12 @@ static int copy_from_read_buf(struct tty_struct *tty, n =min (head - ldata->read_tail,N_TTY_BUF_SIZE - tail); n =min (*nr, n);if (n) { -const unsigned char *from =read_buf_addr (ldata, tail); +unsigned char *from =read_buf_addr (ldata, tail); retval =copy_to_user (*b, from, n); n -= retval; is_eof = n ==1 && *from ==EOF_CHAR (tty);tty_audit_add_data (tty, from, n); +zero_buffer (tty, from, n);smp_store_release (&ldata->read_tail, ldata->read_tail + n);/* Turn single EOF into zero-length read */ if (L_EXTPROC(tty) && ldata->icanon && is_eof &&
drivers/tty/tty_buffer.c +5 -1
@@ -468,11 +468,15 @@ receive_buf(struct tty_port *port, struct tty_buffer *head, int count) {unsigned char *p =char_buf_ptr (head, head->read);char *f =NULL ; +int n;if (~head->flags &TTYB_NORMAL ) f =flag_buf_ptr (head, head->read); -return port->client_ops->receive_buf (port, p, f, count); + n = port->client_ops->receive_buf (port, p, f, count); +if (n >0 ) +memset (p,0 , n); +return n; }/**
drivers/usb/core/hub.c +3 -1
@@ -2847,7 +2847,9 @@ static int hub_port_reset(struct usb_hub *hub, int port1, USB_PORT_FEAT_C_BH_PORT_RESET);usb_clear_port_feature (hub->hdev, port1,USB_PORT_FEAT_C_PORT_LINK_STATE ); -usb_clear_port_feature (hub->hdev, port1, + +if (udev) +usb_clear_port_feature (hub->hdev, port1,USB_PORT_FEAT_C_CONNECTION );/*
drivers/usb/dwc3/core.c +1 -0
@@ -1499,6 +1499,7 @@ static int dwc3_probe(struct platform_device *pdev) err5:dwc3_event_buffers_cleanup (dwc); +dwc3_ulpi_exit (dwc); err4:dwc3_free_scratch_buffers (dwc);
drivers/usb/dwc3/dwc3-pci.c +3 -1
@@ -283,8 +283,10 @@ static int dwc3_pci_probe(struct pci_dev *pci, const struct pci_device_id *id)static void dwc3_pci_remove (struct pci_dev *pci) {struct dwc3_pci *dwc =pci_get_drvdata (pci); +struct pci_dev *pdev = dwc->pci; -gpiod_remove_lookup_table (&platform_bytcr_gpios); +if (pdev->device ==PCI_DEVICE_ID_INTEL_BYT ) +gpiod_remove_lookup_table (&platform_bytcr_gpios);#ifdef CONFIG_PM cancel_work_sync (&dwc->wakeup_work);#endif
drivers/usb/dwc3/gadget.c +4 -4
@@ -1072,7 +1072,7 @@ static void dwc3_prepare_one_trb_sg(struct dwc3_ep *dep,/* Now prepare one extra TRB to align transfer size */ trb = &dep->trb_pool[dep->trb_enqueue];__dwc3_prepare_one_trb (dep, trb, dwc->bounce_addr, - maxp - rem, false,0 , + maxp - rem, false,1 , req->request.stream_id, req->request.short_not_ok, req->request.no_interrupt);
@@ -1116,7 +1116,7 @@ static void dwc3_prepare_one_trb_linear(struct dwc3_ep *dep,/* Now prepare one extra TRB to align transfer size */ trb = &dep->trb_pool[dep->trb_enqueue];__dwc3_prepare_one_trb (dep, trb, dwc->bounce_addr, maxp - rem, - false,0 , req->request.stream_id, + false,1 , req->request.stream_id, req->request.short_not_ok, req->request.no_interrupt); } else if (req->request.zero && req->request.length &&
@@ -1132,7 +1132,7 @@ static void dwc3_prepare_one_trb_linear(struct dwc3_ep *dep,/* Now prepare one extra TRB to handle ZLP */ trb = &dep->trb_pool[dep->trb_enqueue];__dwc3_prepare_one_trb (dep, trb, dwc->bounce_addr,0 , - false,0 , req->request.stream_id, + false,1 , req->request.stream_id, req->request.short_not_ok, req->request.no_interrupt); }else {
@@ -2250,7 +2250,7 @@ static int dwc3_gadget_ep_reclaim_completed_trb(struct dwc3_ep *dep,* with one TRB pending in the ring. We need to manually clear HWO bit * from that TRB. */ -if ((req->zero || req->unaligned) && (trb->ctrl &DWC3_TRB_CTRL_HWO )) { +if ((req->zero || req->unaligned) && !(trb->ctrl &DWC3_TRB_CTRL_CHN )) { trb->ctrl &= ~DWC3_TRB_CTRL_HWO ;return 1 ; }
drivers/usb/host/xhci-histb.c +4 -2
@@ -325,14 +325,16 @@ static int xhci_histb_remove(struct platform_device *dev)struct xhci_hcd_histb *histb =platform_get_drvdata (dev);struct usb_hcd *hcd = histb->hcd;struct xhci_hcd *xhci =hcd_to_xhci (hcd); +struct usb_hcd *shared_hcd = xhci->shared_hcd; xhci->xhc_state |=XHCI_STATE_REMOVING ; -usb_remove_hcd (xhci->shared_hcd); +usb_remove_hcd (shared_hcd); + xhci->shared_hcd =NULL ;device_wakeup_disable (&dev->dev);usb_remove_hcd (hcd); -usb_put_hcd (xhci->shared_hcd); +usb_put_hcd (shared_hcd);xhci_histb_host_disable (histb);usb_put_hcd (hcd);
drivers/usb/host/xhci-hub.c +49 -17
125 lines not on this page · raw message
drivers/usb/host/xhci-mtk.c +4 -2
@@ -590,12 +590,14 @@ static int xhci_mtk_remove(struct platform_device *dev)struct xhci_hcd_mtk *mtk =platform_get_drvdata (dev);struct usb_hcd *hcd = mtk->hcd;struct xhci_hcd *xhci =hcd_to_xhci (hcd); +struct usb_hcd *shared_hcd = xhci->shared_hcd; -usb_remove_hcd (xhci->shared_hcd); +usb_remove_hcd (shared_hcd); + xhci->shared_hcd =NULL ;device_init_wakeup (&dev->dev, false);usb_remove_hcd (hcd); -usb_put_hcd (xhci->shared_hcd); +usb_put_hcd (shared_hcd);usb_put_hcd (hcd);xhci_mtk_sch_exit (mtk);xhci_mtk_clks_disable (mtk);
drivers/usb/host/xhci-pci.c +6 -0
@@ -231,6 +231,11 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)if (pdev->vendor ==PCI_VENDOR_ID_TI && pdev->device ==0x8241 ) xhci->quirks |=XHCI_LIMIT_ENDPOINT_INTERVAL_7 ; +if ((pdev->vendor ==PCI_VENDOR_ID_BROADCOM || + pdev->vendor ==PCI_VENDOR_ID_CAVIUM ) && + pdev->device ==0x9026 ) + xhci->quirks |=XHCI_RESET_PLL_ON_DISCONNECT ; +if (xhci->quirks &XHCI_RESET_ON_RESUME )xhci_dbg_trace (xhci, trace_xhci_dbg_quirks,"QUIRK: Resetting on resume" );
@@ -356,6 +361,7 @@ static void xhci_pci_remove(struct pci_dev *dev)if (xhci->shared_hcd) {usb_remove_hcd (xhci->shared_hcd);usb_put_hcd (xhci->shared_hcd); + xhci->shared_hcd =NULL ; }/* Workaround for spurious wakeups at shutdown with HSW */
drivers/usb/host/xhci-plat.c +4 -2
@@ -359,14 +359,16 @@ static int xhci_plat_remove(struct platform_device *dev)struct xhci_hcd *xhci =hcd_to_xhci (hcd);struct clk *clk = xhci->clk;struct clk *reg_clk = xhci->reg_clk; +struct usb_hcd *shared_hcd = xhci->shared_hcd; xhci->xhc_state |=XHCI_STATE_REMOVING ; -usb_remove_hcd (xhci->shared_hcd); +usb_remove_hcd (shared_hcd); + xhci->shared_hcd =NULL ;usb_phy_shutdown (hcd->usb_phy);usb_remove_hcd (hcd); -usb_put_hcd (xhci->shared_hcd); +usb_put_hcd (shared_hcd);clk_disable_unprepare (clk);clk_disable_unprepare (reg_clk);
drivers/usb/host/xhci-ring.c +43 -2
76 lines not on this page · raw message
drivers/usb/host/xhci-tegra.c +1 -0
@@ -1240,6 +1240,7 @@ static int tegra_xusb_remove(struct platform_device *pdev)usb_remove_hcd (xhci->shared_hcd);usb_put_hcd (xhci->shared_hcd); + xhci->shared_hcd =NULL ;usb_remove_hcd (tegra->hcd);usb_put_hcd (tegra->hcd);
drivers/usb/host/xhci.c +0 -2
@@ -719,8 +719,6 @@ static void xhci_stop(struct usb_hcd *hcd)/* Only halt host and free memory after both hcds are removed */ if (!usb_hcd_is_primary_hcd (hcd)) { -/* usb core will free this hcd shortly, unset pointer */ - xhci->shared_hcd =NULL ;mutex_unlock (&xhci->mutex);return ; }
drivers/usb/host/xhci.h +2 -1
@@ -1678,7 +1678,7 @@ struct xhci_bus_state {* It can take up to 20 ms to transition from RExit to U0 on the * Intel Lynx Point LP xHCI host. */ -#define XHCI_MAX_REXIT_TIMEOUT (20 * 1000) +#define XHCI_MAX_REXIT_TIMEOUT_MS 20static inline unsigned int hcd_index (struct usb_hcd *hcd) {
@@ -1846,6 +1846,7 @@ struct xhci_hcd {#define XHCI_SUSPEND_DELAY BIT_ULL(30)#define XHCI_INTEL_USB_ROLE_SW BIT_ULL(31)#define XHCI_ZERO_64B_REGS BIT_ULL(32) +#define XHCI_RESET_PLL_ON_DISCONNECT BIT_ULL(34)unsigned int num_active_eps;unsigned int limit_active_eps;
fs/9p/vfs_dir.c +0 -11
@@ -76,15 +76,6 @@ static inline int dt_type(struct p9_wstat *mistat)return rettype; } -static void p9stat_init (struct p9_wstat *stbuf) -{ - stbuf->name =NULL ; - stbuf->uid =NULL ; - stbuf->gid =NULL ; - stbuf->muid =NULL ; - stbuf->extension =NULL ; -} -/** * v9fs_alloc_rdir_buf - Allocate buffer used for read and readdir * @filp: opened file structure
@@ -145,12 +136,10 @@ static int v9fs_dir_readdir(struct file *file, struct dir_context *ctx) rdir->tail = n; }while (rdir->head < rdir->tail) { -p9stat_init (&st); err =p9stat_read (fid->clnt, rdir->buf + rdir->head, rdir->tail - rdir->head, &st);if (err) {p9_debug (P9_DEBUG_VFS ,"returned %d\n" , err); -p9stat_free (&st);return -EIO ; } reclen = st.size+2 ;
fs/bfs/inode.c +6 -3
@@ -350,7 +350,8 @@ static int bfs_fill_super(struct super_block *s, void *data, int silent) s->s_magic =BFS_MAGIC ; -if (le32_to_cpu (bfs_sb->s_start) >le32_to_cpu (bfs_sb->s_end)) { +if (le32_to_cpu (bfs_sb->s_start) >le32_to_cpu (bfs_sb->s_end) || +le32_to_cpu (bfs_sb->s_start) <BFS_BSIZE ) {printf ("Superblock is corrupted\n" ); goto out1; }
@@ -359,9 +360,11 @@ static int bfs_fill_super(struct super_block *s, void *data, int silent)sizeof (struct bfs_inode ) +BFS_ROOT_INO -1 ; imap_len = (info->si_lasti /8 ) +1 ; - info->si_imap =kzalloc (imap_len,GFP_KERNEL ); -if (!info->si_imap) + info->si_imap =kzalloc (imap_len,GFP_KERNEL | __GFP_NOWARN); +if (!info->si_imap) { +printf ("Cannot allocate %u bytes\n" , imap_len); goto out1; + }for (i =0 ; i <BFS_ROOT_INO ; i++)set_bit (i, info->si_imap);
fs/dax.c +6 -1
@@ -217,6 +217,9 @@ static inline void *unlock_slot(struct address_space *mapping, void **slot)return (void *)entry; } +static void put_unlocked_mapping_entry (struct address_space *mapping, +pgoff_t index,void *entry); +/* * Lookup entry in radix tree, wait for it to become unlocked if it is * exceptional entry and return it. The caller must call
@@ -256,8 +259,10 @@ static void *__get_unlocked_mapping_entry(struct address_space *mapping, revalidate =wait_fn ();finish_wait (wq, &ewait.wait);xa_lock_irq (&mapping->i_pages); -if (revalidate) +if (revalidate) { +put_unlocked_mapping_entry (mapping, index, entry);return ERR_PTR (-EAGAIN ); + } } }
fs/gfs2/bmap.c +17 -23
@@ -826,7 +826,7 @@ static int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length, ret =gfs2_meta_inode_buffer (ip, &dibh);if (ret) goto unlock; - iomap->private = dibh; + mp->mp_bh[0 ] = dibh;if (gfs2_is_stuffed (ip)) {if (flags &IOMAP_WRITE ) {
@@ -863,9 +863,6 @@ static int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length, len = lblock_stop - lblock +1 ; iomap->length = len << inode->i_blkbits; -get_bh (dibh); - mp->mp_bh[0 ] = dibh; - height = ip->i_height;while ((lblock +1 ) * sdp->sd_sb.sb_bsize > sdp->sd_heightsize[height]) height++;
@@ -898,8 +895,6 @@ static int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length, iomap->bdev = inode->i_sb->s_bdev; unlock:up_read (&ip->i_rw_mutex); -if (ret && dibh) -brelse (dibh);return ret; do_alloc:
@@ -980,9 +975,9 @@ static void gfs2_iomap_journaled_page_done(struct inode *inode, loff_t pos,static int gfs2_iomap_begin_write (struct inode *inode,loff_t pos,loff_t length,unsigned flags, -struct iomap *iomap) +struct iomap *iomap, +struct metapath *mp) { -struct metapath mp = { .mp_aheight =1 , };struct gfs2_inode *ip =GFS2_I (inode);struct gfs2_sbd *sdp =GFS2_SB (inode);unsigned int data_blocks =0 , ind_blocks =0 , rblocks;
@@ -996,9 +991,9 @@ static int gfs2_iomap_begin_write(struct inode *inode, loff_t pos, unstuff =gfs2_is_stuffed (ip) && pos + length >gfs2_max_stuffed_size (ip); - ret =gfs2_iomap_get (inode, pos, length, flags, iomap, &mp); + ret =gfs2_iomap_get (inode, pos, length, flags, iomap, mp);if (ret) - goto out_release; + goto out_unlock; alloc_required = unstuff || iomap->type ==IOMAP_HOLE ;
@@ -1013,7 +1008,7 @@ static int gfs2_iomap_begin_write(struct inode *inode, loff_t pos, ret =gfs2_quota_lock_check (ip, &ap);if (ret) - goto out_release; + goto out_unlock; ret =gfs2_inplace_reserve (ip, &ap);if (ret)
@@ -1038,17 +1033,15 @@ static int gfs2_iomap_begin_write(struct inode *inode, loff_t pos, ret =gfs2_unstuff_dinode (ip,NULL );if (ret) goto out_trans_end; -release_metapath (&mp); -brelse (iomap->private); - iomap->private =NULL ; +release_metapath (mp); ret =gfs2_iomap_get (inode, iomap->offset, iomap->length, - flags, iomap, &mp); + flags, iomap, mp);if (ret) goto out_trans_end; }if (iomap->type ==IOMAP_HOLE ) { - ret =gfs2_iomap_alloc (inode, iomap, flags, &mp); + ret =gfs2_iomap_alloc (inode, iomap, flags, mp);if (ret) {gfs2_trans_end (sdp);gfs2_inplace_release (ip);
@@ -1056,7 +1049,6 @@ static int gfs2_iomap_begin_write(struct inode *inode, loff_t pos, goto out_qunlock; } } -release_metapath (&mp);if (!gfs2_is_stuffed (ip) &&gfs2_is_jdata (ip)) iomap->page_done = gfs2_iomap_journaled_page_done;return 0 ;
@@ -1069,10 +1061,7 @@ static int gfs2_iomap_begin_write(struct inode *inode, loff_t pos, out_qunlock:if (alloc_required)gfs2_quota_unlock (ip); -out_release: -if (iomap->private) -brelse (iomap->private); -release_metapath (&mp); +out_unlock:gfs2_write_unlock (inode);return ret; }
@@ -1088,10 +1077,10 @@ static int gfs2_iomap_begin(struct inode *inode, loff_t pos, loff_t length,trace_gfs2_iomap_start (ip, pos, length, flags);if ((flags &IOMAP_WRITE ) && !(flags &IOMAP_DIRECT )) { - ret =gfs2_iomap_begin_write (inode, pos, length, flags, iomap); + ret =gfs2_iomap_begin_write (inode, pos, length, flags, iomap, &mp); }else { ret =gfs2_iomap_get (inode, pos, length, flags, iomap, &mp); -release_metapath (&mp); +/* * Silently fall back to buffered I/O for stuffed files or if * we've hot a hole (see gfs2_file_direct_write).
@@ -1100,6 +1089,11 @@ static int gfs2_iomap_begin(struct inode *inode, loff_t pos, loff_t length, iomap->type != IOMAP_MAPPED) ret = -ENOTBLK ; } +if (!ret) { +get_bh (mp.mp_bh[0 ]); + iomap->private = mp.mp_bh[0 ]; + } +release_metapath (&mp);trace_gfs2_iomap_end (ip, iomap, ret);return ret; }
fs/gfs2/ops_fstype.c +1 -1
@@ -72,13 +72,13 @@ static struct gfs2_sbd *init_sbd(struct super_block *sb)if (!sdp)return NULL ; - sb->s_fs_info = sdp; sdp->sd_vfs = sb; sdp->sd_lkstats = alloc_percpu(struct gfs2_pcpu_lkstats);if (!sdp->sd_lkstats) {kfree (sdp);return NULL ; } + sb->s_fs_info = sdp;set_bit (SDF_NOJOURNALID , &sdp->sd_flags);gfs2_tune_init (&sdp->sd_tune);
fs/nfs/callback_proc.c +2 -2
@@ -66,7 +66,7 @@ __be32 nfs4_callback_getattr(void *argp, void *resp, out_iput:rcu_read_unlock ();trace_nfs4_cb_getattr (cps->clp, &args->fh, inode, -ntohl (res->status)); -iput (inode); +nfs_iput_and_deactive (inode); out:dprintk ("%s: exit with status = %d\n" , __func__,ntohl (res->status));return res->status;
@@ -108,7 +108,7 @@ __be32 nfs4_callback_recall(void *argp, void *resp, }trace_nfs4_cb_recall (cps->clp, &args->fh, inode, &args->stateid, -ntohl (res)); -iput (inode); +nfs_iput_and_deactive (inode); out:dprintk ("%s: exit with status = %d\n" , __func__,ntohl (res));return res;
fs/nfs/delegation.c +9 -2
@@ -849,16 +849,23 @@ nfs_delegation_find_inode_server(struct nfs_server *server, const struct nfs_fh *fhandle) {struct nfs_delegation *delegation; -struct inode *res =NULL ; +struct inode *freeme, *res =NULL ;list_for_each_entry_rcu (delegation, &server->delegations, super_list) {spin_lock (&delegation->lock);if (delegation->inode !=NULL &&nfs_compare_fh (fhandle, &NFS_I (delegation->inode)->fh) ==0 ) {
Lines of this file are not shown. View the raw message.
kernel/sched/fair.c +48 -14
62 lines not on this page · raw message
mm/z3fold.c +62 -39
101 lines not on this page · raw message
tools/power/cpupower/lib/cpupower_intern.h +1 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.