Linux 4.9.96
Greg KH
maintainerI'm announcing the release of the 4.9.96 kernel.
All users of the 4.9 kernel series must upgrade.
The updated 4.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/boot/dts/at91sam9g25.dtsi | 2 arch/arm/boot/dts/exynos5250.dtsi | 8 arch/arm/boot/dts/sama5d4.dtsi | 2 arch/mips/include/asm/uaccess.h | 11 + arch/mips/lib/memset.S | 11 - arch/powerpc/include/asm/barrier.h | 3 arch/powerpc/include/asm/opal.h | 3 arch/powerpc/include/asm/synch.h | 4 arch/powerpc/kernel/eeh_pe.c | 3 arch/powerpc/lib/feature-fixups.c | 2 arch/powerpc/platforms/powernv/opal-nvram.c | 11 + arch/s390/hypfs/inode.c | 2 arch/um/os-Linux/file.c | 1 arch/um/os-Linux/signal.c | 3 arch/x86/um/stub_segv.c | 3 block/blk-mq.c | 4 drivers/acpi/nfit/core.c | 5 drivers/acpi/video_detect.c | 9 + drivers/base/regmap/regmap.c | 2 drivers/char/random.c | 29 ++- drivers/clk/bcm/clk-bcm2835.c | 8 drivers/clk/mvebu/armada-38x.c | 15 - drivers/clk/renesas/clk-sh73a0.c | 6 drivers/dma/at_xdmac.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 drivers/gpu/drm/amd/amdgpu/si_dpm.c | 4 drivers/gpu/drm/radeon/si_dpm.c | 4 drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 23 +- drivers/hid/hid-core.c | 10 - drivers/hid/hid-input.c | 3 drivers/hid/hid-multitouch.c | 5 drivers/hid/hid-rmi.c | 4 drivers/hid/hidraw.c | 5 drivers/hid/i2c-hid/i2c-hid.c | 13 - drivers/hid/wacom_sys.c | 2 drivers/infiniband/core/ucma.c | 3 drivers/infiniband/sw/rxe/rxe_verbs.c | 5 drivers/infiniband/ulp/srp/ib_srp.c | 18 +- drivers/iommu/intel-svm.c | 1 drivers/irqchip/irq-gic-common.c | 9 - drivers/mmc/host/jz4740_mmc.c | 2 drivers/mtd/ubi/block.c | 2 drivers/mtd/ubi/build.c | 11 + drivers/mtd/ubi/fastmap-wl.c | 1 drivers/net/xen-netfront.c | 7 drivers/nvdimm/namespace_devs.c | 4 drivers/pci/hotplug/acpiphp_glue.c | 23 +- drivers/pwm/pwm-rcar.c | 8 drivers/spi/spi.c | 10 - drivers/thermal/imx_thermal.c | 6 drivers/thunderbolt/nhi.c | 1 drivers/tty/n_tty.c | 6 drivers/tty/tty_io.c | 9 + drivers/usb/core/generic.c | 9 - drivers/usb/dwc3/dwc3-pci.c | 2 drivers/usb/gadget/function/f_midi.c | 3 drivers/usb/gadget/u_f.h | 2 drivers/usb/gadget/udc/core.c | 3 drivers/usb/musb/musb_gadget_ep0.c | 14 + drivers/vfio/pci/vfio_pci_config.c | 29 +++ drivers/watchdog/f71808e_wdt.c | 2 fs/autofs4/root.c | 2 fs/cifs/cifsglob.h | 1 fs/cifs/inode.c | 33 ++++ fs/ext4/balloc.c | 3 fs/ext4/ialloc.c | 47 ----- fs/ext4/inode.c | 11 - fs/ext4/super.c | 6 fs/fs-writeback.c | 7 fs/jbd2/journal.c | 5 fs/jffs2/super.c | 2 fs/namespace.c | 3 fs/notify/fanotify/fanotify.c | 34 +--- fs/orangefs/super.c | 5 fs/reiserfs/journal.c | 2 fs/ubifs/super.c | 14 + fs/udf/unicode.c | 6 include/dt-bindings/clock/mt2701-clk.h | 3 include/linux/backing-dev-defs.h | 5 include/linux/backing-dev.h | 30 +-- include/linux/hid.h | 6 include/linux/tty.h | 1 include/sound/pcm_oss.h | 1 include/uapi/linux/random.h | 3 ipc/shm.c | 23 ++ kernel/resource.c | 3 mm/filemap.c | 9 - mm/page-writeback.c | 18 +- mm/slab.c | 3 net/sunrpc/rpc_pipe.c | 1 sound/core/oss/pcm_oss.c | 186 ++++++++++++++++++----- sound/core/pcm.c | 8 sound/core/rawmidi_compat.c | 18 +- sound/pci/hda/hda_intel.c | 3 sound/soc/codecs/ssm2602.c | 19 +- sound/usb/line6/midi.c | 2 99 files changed, 648 insertions(+), 300 deletions(-)
Aaron Ma (3):
HID: i2c-hid: fix size check and type usage
HID: Fix hid_report_len usage
HID: core: Fix size as type u32
Al Viro (5):
jffs2_kill_sb(): deal with failed allocations hypfs_kill_super(): deal with failed allocations orangefs_kill_sb(): deal with allocation failures
rpc_pipefs: fix double-dput()
Don't leak MNT_INTERNAL away from internal mounts
Alex Deucher (2):
drm/amdgpu: Add an ATPX quirk for hybrid laptop drm/amdgpu: Fix PCIe lane width calculation
Alex Smith (1):
mmc: jz4740: Fix race condition in IRQ mask update
Alex Williamson (1):
vfio/pci: Virtualize Maximum Read Request Size
Amir Goldstein (1):
fanotify: fix logic of events on child
Andrew Morton (1):
fs/reiserfs/journal.c: add missing resierfs_warning() arg
Aniruddha Banerjee (1):
irqchip/gic: Take lock when updating irq type
Arnd Bergmann (1):
clk: fix false-positive Wmaybe-uninitialized warning
Bart Van Assche (3):
RDMA/rxe: Fix an out-of-bounds read IB/srp: Fix srp_abort()
IB/srp: Fix completion vector assignment algorithm
Bas Nieuwenhuizen (1):
drm/amdgpu: Fix always_valid bos multiple LRU insertions.
Boris Brezillon (1):
clk: bcm2835: De-assert/assert PLL reset signal when appropriate
Dan Carpenter (1):
regmap: Fix reversed bounds check in regmap_raw_write()
Dan Williams (2):
libnvdimm, namespace: use a safe lookup for dimm device name nfit, address-range-scrub: fix scrub in-progress reporting
David Wang (1):
ALSA: hda - New VIA controller suppor no-snoop path
Eric Biggers (1):
ipc/shm: fix use-after-free of shm file via remap_file_pages()
Eryu Guan (1):
ext4: protect i_disksize update by i_data_sem in direct write path
Fabián Inostroza (1):
ALSA: line6: Use correct endpoint type for midi output
Felipe Balbi (1):
usb: gadget: udc: core: update usb_ep_queue() documentation
Greg Kroah-Hartman (1):
Linux 4.9.96
Greg Thelen (1):
writeback: safer lock nesting
Hans de Goede (1):
ACPI / video: Add quirk to force acpi-video backlight on Samsung 670Z5E
Heinrich Schuchardt (1):
usb: musb: gadget: misplaced out of bounds check
Ian Kent (1):
autofs: mount point create should honour passed in mode
Igor Pylypiv (1):
watchdog: f71808e_wdt: Fix WD_EN register read
James Kelly (1):
ASoC: ssm2602: Replace reg_default_raw with reg_default
Jan Kara (1):
udf: Fix leak of UTF-16 surrogates into encoded strings
Jason A. Donenfeld (1):
um: Compile with modern headers
Jason Andryuk (1):
xen-netfront: Fix hang on device removal
Krzysztof Mazur (1):
um: Use POSIX ucontext_t instead of struct ucontext
Lu Baolu (1):
iommu/vt-d: Fix a potential memory leak
Marc Zyngier (1):
drm/rockchip: Clear all interrupts before requesting the IRQ
Marek Szyprowski (1):
ARM: dts: exynos: Fix IOMMU support for GScaler devices on Exynos5250
Matt Redfearn (4):
MIPS: uaccess: Add micromips clobbers to bzero invocation
MIPS: memset.S: EVA & fault support for small_memset
MIPS: memset.S: Fix return of __clear_user from Lpartial_fixup
MIPS: memset.S: Fix clobber of v1 in last_fixup
Matthew Wilcox (1):
mm/filemap.c: fix NULL pointer in page_cache_tree_insert()
Maxime Chevallier (1):
spi: Fix scatterlist elements size in spi_map_buf
Maxime Jayat (1):
dmaengine: at_xdmac: fix rare residue corruption
Michael Ellerman (1):
powerpc/lib: Fix off-by-one in alternate feature patching
Michael Neuling (1):
powerpc/eeh: Fix enabling bridge MMIO windows
Mika Westerberg (2):
ACPI / hotplug / PCI: Check presence of slot itself in get_slot_status()
thunderbolt: Resume control channel after hibernation image is created
Mikhail Lappo (1):
thermal: imx: Fix race condition in imx_thermal_probe()
Nicholas Piggin (4):
powerpc/powernv: Handle unknown OPAL errors in opal_nvram_write() powerpc/64: Fix smp_wmb barrier definition use use lwsync consistently powerpc/powernv: define a standard delay for OPAL_BUSY type retry loops powerpc/powernv: Fix OPAL NVRAM driver OPAL_BUSY loops
Nicolas Ferre (1):
ARM: dts: at91: at91sam9g25: fix mux-mask pinctrl property
Paul Parsons (1):
drm/radeon: Fix PCIe lane width calculation
Ralph Sennhauser (1):
clk: mvebu: armada-38x: add support for 1866MHz variants
Richard Genoud (1):
clk: mvebu: armada-38x: add support for missing clocks
Richard Weinberger (3):
ubifs: Check ubifs_wbuf_sync() return code
ubi: fastmap: Don't flush fastmap work on detach
ubi: Reject MLC NAND
Rodrigo Rivas Costa (1):
HID: hidraw: Fix crash on HIDIOCGFEATURE with a destroyed device
Roland Dreier (1):
RDMA/ucma: Don't allow setting RDMA_OPTION_IB_PATH without an RDMA device
Romain Izard (1):
ubi: Fix error for write access
Ryo Kodama (1):
pwm: rcar: Fix a condition to prevent mismatch value setting to duty
Santiago Esteban (1):
ARM: dts: at91: sama5d4: fix pinctrl compatible string
Sean Wang (1):
dt-bindings: clock: mediatek: add binding for fixed-factor clock axisel_d4
Steve French (1):
smb3: Fix root directory when server returns inode number of zero
Takashi Iwai (8):
resource: fix integer overflow at reallocation
ALSA: pcm: Fix UAF at PCM release via PCM timer access
ALSA: pcm: Use ERESTARTSYS instead of EINTR in OSS emulation
ALSA: pcm: Avoid potential races between OSS ioctls and read/write
ALSA: pcm: Return -EBUSY for OSS ioctls changing busy streams
ALSA: pcm: Fix mutex unbalance in OSS emulation ioctls
ALSA: pcm: Fix endless loop for XRUN recovery in OSS emulation
ALSA: rawmidi: Fix missing input substream checks in compat ioctls
Tejun Heo (1):
tty: make n_tty_read() always abort if hangup is in progress
Theodore Ts'o (8):
random: use a tighter cap in credit_entropy_bits_safe()
jbd2: if the journal is aborted then don't allow update of the log tail
ext4: don't update checksum of new initialized bitmaps
ext4: fail ext4_iget for root directory if unallocated
ext4: don't allow r/w mounts if metadata blocks overlap the superblock
random: fix crng_ready() test
random: crng_reseed() should lock the crng instance that it is modifying
random: add new ioctl RNDRESEEDCRNG
Thinh Nguyen (1):
usb: dwc3: pci: Properly cleanup resource
Vlastimil Babka (1):
mm, slab: reschedule cache_reap() on the same CPU
Wanpeng Li (1):
block/mq: fix potential deadlock during cpu hotplug
Yavuz, Tuba (1):
USB: gadget: f_midi: fixing a possible double-free in f_midi
Zhengjun Xing (1):
USB:fix USB3 devices behind USB3 hubs not resuming at hibernate thaw
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 95 +SUBLEVEL = 96 EXTRAVERSION = NAME = Roaring Lionus
arch/arm/boot/dts/at91sam9g25.dtsi +1 -1
@@ -21,7 +21,7 @@ atmel,mux-mask = < /* A B C */ 0xffffffff 0xffe0399f 0xc000001c /* pioA */ - 0x0007ffff 0x8000fe3f 0x00000000 /* pioB */ + 0x0007ffff 0x00047e3f 0x00000000 /* pioB */ 0x80000000 0x07c0ffff 0xb83fffff /* pioC */ 0x003fffff 0x003f8000 0x00000000 /* pioD */ >;
arch/arm/boot/dts/exynos5250.dtsi +4 -4
@@ -640,7 +640,7 @@ power-domains = <&pd_gsc>; clocks = <&clock CLK_GSCL0>; clock-names = "gscl"; - iommu = <&sysmmu_gsc0>; + iommus = <&sysmmu_gsc0>; }; gsc_1: gsc@13e10000 {
@@ -650,7 +650,7 @@ power-domains = <&pd_gsc>; clocks = <&clock CLK_GSCL1>; clock-names = "gscl"; - iommu = <&sysmmu_gsc1>; + iommus = <&sysmmu_gsc1>; }; gsc_2: gsc@13e20000 {
@@ -660,7 +660,7 @@ power-domains = <&pd_gsc>; clocks = <&clock CLK_GSCL2>; clock-names = "gscl"; - iommu = <&sysmmu_gsc2>; + iommus = <&sysmmu_gsc2>; }; gsc_3: gsc@13e30000 {
@@ -670,7 +670,7 @@ power-domains = <&pd_gsc>; clocks = <&clock CLK_GSCL3>; clock-names = "gscl"; - iommu = <&sysmmu_gsc3>; + iommus = <&sysmmu_gsc3>; }; hdmi: hdmi@14530000 {
arch/arm/boot/dts/sama5d4.dtsi +1 -1
@@ -1362,7 +1362,7 @@ pinctrl@fc06a000 { #address-cells = <1>; #size-cells = <1>; - compatible = "atmel,at91sam9x5-pinctrl", "atmel,at91rm9200-pinctrl", "simple-bus"; + compatible = "atmel,sama5d3-pinctrl", "atmel,at91sam9x5-pinctrl", "simple-bus"; ranges = <0xfc068000 0xfc068000 0x100 0xfc06a000 0xfc06a000 0x4000>; /* WARNING: revisit as pin spec has changed */
arch/mips/include/asm/uaccess.h +9 -2
@@ -1257,6 +1257,13 @@ __clear_user(void __user *addr, __kernel_size_t size) {__kernel_size_t res; +#ifdef CONFIG_CPU_MICROMIPS +/* micromips memset / bzero also clobbers t7 & t8 */ +#define bzero_clobbers "$4", "$5", "$6", __UA_t0, __UA_t1, "$15", "$24", "$31" +#else +#define bzero_clobbers "$4", "$5", "$6", __UA_t0, __UA_t1, "$31" +#endif /* CONFIG_CPU_MICROMIPS */ +if (eva_kernel_access ()) { __asm__ __volatile__( "move\t$4, %1\n\t"
@@ -1266,7 +1273,7 @@ __clear_user(void __user *addr, __kernel_size_t size) "move\t%0, $6" : "=r" (res) : "r" (addr), "r" (size) - : "$4", "$5", "$6", __UA_t0, __UA_t1, "$31"); + : bzero_clobbers); }else {might_fault (); __asm__ __volatile__(
@@ -1277,7 +1284,7 @@ __clear_user(void __user *addr, __kernel_size_t size) "move\t%0, $6" : "=r" (res) : "r" (addr), "r" (size) - : "$4", "$5", "$6", __UA_t0, __UA_t1, "$31"); + : bzero_clobbers); }return res;
arch/mips/lib/memset.S +8 -3
@@ -218,7 +218,7 @@ 1: PTR_ADDIU a0, 1 /* fill bytewise */ R10KCBARRIER(0(ra)) bne t1, a0, 1b - sb a1, -1(a0) + EX(sb, a1, -1(a0), .Lsmall_fixup\@) 2: jr ra /* done */ move a2, zero
@@ -251,13 +251,18 @@ PTR_L t0, TI_TASK($28) andi a2, STORMASK LONG_L t0, THREAD_BUADDR(t0) - LONG_ADDU a2, t1 + LONG_ADDU a2, a0 jr ra LONG_SUBU a2, t0 .Llast_fixup\@: jr ra - andi v1, a2, STORMASK + nop + +.Lsmall_fixup\@: + PTR_SUBU a2, t1, a0 + jr ra + PTR_ADDIU a2, 1 .endm
arch/powerpc/include/asm/barrier.h +2 -1
@@ -34,7 +34,8 @@#define rmb () __asm__ __volatile__ ("sync" : : : "memory")#define wmb () __asm__ __volatile__ ("sync" : : : "memory") -#ifdef __SUBARCH_HAS_LWSYNC +/* The sub-arch has lwsync */ +#if defined(__powerpc64__) || defined(CONFIG_PPC_E500MC )# define SMPWMB LWSYNC#else # define SMPWMB eieio
arch/powerpc/include/asm/opal.h +3 -0
@@ -21,6 +21,9 @@/* We calculate number of sg entries based on PAGE_SIZE */ #define SG_ENTRIES_PER_NODE ((PAGE_SIZE - 16) / sizeof(struct opal_sg_entry)) +/* Default time to sleep or delay between OPAL_BUSY/OPAL_BUSY_EVENT loops */ +#define OPAL_BUSY_DELAY_MS 10 +/* /sys/firmware/opal */ extern struct kobject *opal_kobj;
arch/powerpc/include/asm/synch.h +0 -4
@@ -5,10 +5,6 @@#include <linux/stringify.h> #include <asm/feature-fixups.h> -#if defined(__powerpc64__) || defined(CONFIG_PPC_E500MC ) -#define __SUBARCH_HAS_LWSYNC -#endif -#ifndef __ASSEMBLY__extern unsigned int __start___lwsync_fixup, __stop___lwsync_fixup; extern void do_lwsync_fixups(unsigned long value, void *fixup_start,
arch/powerpc/kernel/eeh_pe.c +2 -1
@@ -795,7 +795,8 @@ static void eeh_restore_bridge_bars(struct eeh_dev *edev) eeh_ops->write_config (pdn,15 *4 ,4 , edev->config_space[15 ]);/* PCI Command: 0x4 */ - eeh_ops->write_config (pdn,PCI_COMMAND ,4 , edev->config_space[1 ]); + eeh_ops->write_config (pdn,PCI_COMMAND ,4 , edev->config_space[1 ] | +PCI_COMMAND_MEMORY |PCI_COMMAND_MASTER );/* Check the PCIe link is ready */ eeh_bridge_check_link (edev);
arch/powerpc/lib/feature-fixups.c +1 -1
@@ -55,7 +55,7 @@ static int patch_alt_instruction(unsigned int *src, unsigned int *dest,unsigned int *target = (unsigned int *)branch_target (src);/* Branch within the section doesn't need translating */ -if (target < alt_start || target >= alt_end) { +if (target < alt_start || target > alt_end) { instr =translate_branch (dest, src);if (!instr)return 1 ;
arch/powerpc/platforms/powernv/opal-nvram.c +10 -1
@@ -11,6 +11,7 @@#define DEBUG +#include <linux/delay.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/of.h>
@@ -56,9 +57,17 @@ static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index)while (rc ==OPAL_BUSY || rc ==OPAL_BUSY_EVENT ) { rc =opal_write_nvram (__pa (buf), count, off); -if (rc ==OPAL_BUSY_EVENT ) +if (rc ==OPAL_BUSY_EVENT ) { +msleep (OPAL_BUSY_DELAY_MS );opal_poll_events (NULL ); + }else if (rc ==OPAL_BUSY ) { +msleep (OPAL_BUSY_DELAY_MS ); + } } + +if (rc) +return -EIO ; + *index += count;return count; }
arch/s390/hypfs/inode.c +1 -1
@@ -318,7 +318,7 @@ static void hypfs_kill_super(struct super_block *sb)if (sb->s_root)hypfs_delete_tree (sb->s_root); -if (sb_info->update_file) +if (sb_info && sb_info->update_file)hypfs_remove (sb_info->update_file);kfree (sb->s_fs_info); sb->s_fs_info =NULL ;
arch/um/os-Linux/file.c +1 -0
@@ -12,6 +12,7 @@#include <sys/mount.h> #include <sys/socket.h> #include <sys/stat.h> +#include <sys/sysmacros.h> #include <sys/un.h> #include <sys/types.h> #include <os.h>
arch/um/os-Linux/signal.c +2 -1
@@ -16,6 +16,7 @@#include <os.h> #include <sysdep/mcontext.h> #include <um_malloc.h> +#include <sys/ucontext.h> void (*sig_info[NSIG ])(int ,struct siginfo *,struct uml_pt_regs *) = { [SIGTRAP ] = relay_signal,
@@ -159,7 +160,7 @@ static void (*handlers[_NSIG])(int sig, struct siginfo *si, mcontext_t *mc) = {static void hard_handler (int sig,siginfo_t *si,void *p) { -struct ucontext *uc = p; +ucontext_t *uc = p;mcontext_t *mc = &uc->uc_mcontext;unsigned long pending =1UL << sig;
arch/x86/um/stub_segv.c +2 -1
@@ -6,11 +6,12 @@#include <sysdep/stub.h> #include <sysdep/faultinfo.h> #include <sysdep/mcontext.h> +#include <sys/ucontext.h> void __attribute__ ((__section__ (".__syscall_stub" )))stub_segv_handler (int sig,siginfo_t *info,void *p) { -struct ucontext *uc = p; +ucontext_t *uc = p;GET_FAULTINFO_FROM_MC (*((struct faultinfo *)STUB_DATA ), &uc->uc_mcontext);
block/blk-mq.c +2 -2
@@ -2019,15 +2019,15 @@ struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set,blk_mq_init_cpu_queues (q, set->nr_hw_queues); -mutex_lock (&all_q_mutex);get_online_cpus (); +mutex_lock (&all_q_mutex);list_add_tail (&q->all_q_node, &all_q_list);blk_mq_add_queue_tag_set (set, q);blk_mq_map_swqueue (q, cpu_online_mask); -put_online_cpus ();mutex_unlock (&all_q_mutex); +put_online_cpus ();return q;
drivers/acpi/nfit/core.c +4 -1
@@ -967,8 +967,11 @@ static ssize_t scrub_show(struct device *dev,if (nd_desc) {struct acpi_nfit_desc *acpi_desc =to_acpi_desc (nd_desc); +mutex_lock (&acpi_desc->init_mutex); rc =sprintf (buf,"%d%s" , acpi_desc->scrub_count, - (work_busy (&acpi_desc->work)) ?"+\n" :"\n" ); +work_busy (&acpi_desc->work) + && !acpi_desc->cancel ?"+\n" :"\n" ); +mutex_unlock (&acpi_desc->init_mutex); }device_unlock (dev);return rc;
drivers/acpi/video_detect.c +9 -0
@@ -213,6 +213,15 @@ static const struct dmi_system_id video_detect_dmi_table[] = { "3570R/370R/470R/450R/510R/4450RV"), }, }, + { +/* https://bugzilla.redhat.com/show_bug.cgi?id=1557060 */ + .callback = video_detect_force_video, + .ident = "SAMSUNG 670Z5E", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"SAMSUNG ELECTRONICS CO., LTD." ), + DMI_MATCH(DMI_PRODUCT_NAME, "670Z5E"), + }, + }, {/* https://bugzilla.redhat.com/show_bug.cgi?id=1094948 */ .callback = video_detect_force_video,
drivers/base/regmap/regmap.c +1 -1
@@ -1736,7 +1736,7 @@ int regmap_raw_write(struct regmap *map, unsigned int reg,return -EINVAL ;if (val_len % map->format.val_bytes)return -EINVAL ; -if (map->max_raw_write && map->max_raw_write > val_len) +if (map->max_raw_write && map->max_raw_write < val_len)return -E2BIG ; map->lock (map->lock_arg);
drivers/char/random.c +20 -9
@@ -434,8 +434,9 @@ struct crng_state primary_crng = {* its value (from 0->1->2). */ static int crng_init =0 ; -#define crng_ready () (likely(crng_init > 0)) +#define crng_ready () (likely(crng_init > 1))static int crng_init_cnt =0 ; +static unsigned long crng_global_init_time =0 ;#define CRNG_INIT_CNT_THRESH (2*CHACHA20_KEY_SIZE)static void _extract_crng (struct crng_state *crng,__u8 out[CHACHA20_BLOCK_SIZE ]);
@@ -741,7 +742,7 @@ static void credit_entropy_bits(struct entropy_store *r, int nbits)static int credit_entropy_bits_safe (struct entropy_store *r,int nbits) { -const int nbits_max = (int )(~0U >> (ENTROPY_SHIFT +1 )); +const int nbits_max = r->poolinfo->poolwords *32 ;if (nbits <0 )return -EINVAL ;
@@ -800,7 +801,7 @@ static int crng_fast_load(const char *cp, size_t len)if (!spin_trylock_irqsave (&primary_crng.lock, flags))return 0 ; -if (crng_ready ()) { +if (crng_init !=0 ) {spin_unlock_irqrestore (&primary_crng.lock, flags);return 0 ; }
@@ -836,7 +837,7 @@ static void crng_reseed(struct crng_state *crng, struct entropy_store *r)_crng_backtrack_protect (&primary_crng, buf.block,CHACHA20_KEY_SIZE ); } -spin_lock_irqsave (&primary_crng.lock, flags); +spin_lock_irqsave (&crng->lock, flags);for (i =0 ; i <8 ; i++) {unsigned long rv; if (!arch_get_random_seed_long(&rv) &&
@@ -852,7 +853,7 @@ static void crng_reseed(struct crng_state *crng, struct entropy_store *r)wake_up_interruptible (&crng_init_wait);pr_notice ("random: crng init done\n" ); } -spin_unlock_irqrestore (&primary_crng.lock, flags); +spin_unlock_irqrestore (&crng->lock, flags); }static inline void maybe_reseed_primary_crng (void )
@@ -872,8 +873,9 @@ static void _extract_crng(struct crng_state *crng, {unsigned long v, flags; -if (crng_init >1 && -time_after (jiffies, crng->init_time +CRNG_RESEED_INTERVAL )) +if (crng_ready () && + (time_after (crng_global_init_time, crng->init_time) || +time_after (jiffies, crng->init_time +CRNG_RESEED_INTERVAL )))crng_reseed (crng, crng == &primary_crng ? &input_pool :NULL );spin_lock_irqsave (&crng->lock, flags);if (arch_get_random_long (&v))
@@ -1153,7 +1155,7 @@ void add_interrupt_randomness(int irq, int irq_flags)fast_mix (fast_pool);add_interrupt_bench (cycles); -if (!crng_ready ()) { +if (unlikely (crng_init ==0 )) {if ((fast_pool->count >=64 ) &&crng_fast_load ((char *) fast_pool->pool,sizeof (fast_pool->pool))) {
@@ -1668,6 +1670,7 @@ static int rand_initialize(void)init_std_data (&input_pool);init_std_data (&blocking_pool);crng_initialize (&primary_crng); + crng_global_init_time = jiffies;#ifdef CONFIG_NUMA pool =kcalloc (nr_node_ids,sizeof (*pool),GFP_KERNEL |__GFP_NOFAIL);
@@ -1854,6 +1857,14 @@ static long random_ioctl(struct file *f, unsigned int cmd, unsigned long arg) input_pool.entropy_count =0 ; blocking_pool.entropy_count =0 ;return 0 ; +case RNDRESEEDCRNG : +if (!capable (CAP_SYS_ADMIN )) +return -EPERM ; +if (crng_init <2 ) +return -ENODATA ; +crng_reseed (&primary_crng,NULL ); + crng_global_init_time = jiffies -1 ; +return 0 ;default :return -EINVAL ; }
@@ -2148,7 +2159,7 @@ void add_hwgenerator_randomness(const char *buffer, size_t count, {struct entropy_store *poolp = &input_pool; -if (!crng_ready ()) { +if (unlikely (crng_init ==0 )) {crng_fast_load (buffer, count);return ; }
drivers/clk/bcm/clk-bcm2835.c +5 -3
@@ -545,9 +545,7 @@ static void bcm2835_pll_off(struct clk_hw *hw)const struct bcm2835_pll_data *data = pll->data;spin_lock (&cprman->regs_lock); -cprman_write (cprman, data->cm_ctrl_reg, -cprman_read (cprman, data->cm_ctrl_reg) | -CM_PLL_ANARST ); +cprman_write (cprman, data->cm_ctrl_reg,CM_PLL_ANARST );cprman_write (cprman, data->a2w_ctrl_reg,cprman_read (cprman, data->a2w_ctrl_reg) |A2W_PLL_CTRL_PWRDN );
@@ -583,6 +581,10 @@ static int bcm2835_pll_on(struct clk_hw *hw)cpu_relax (); } +cprman_write (cprman, data->a2w_ctrl_reg, +cprman_read (cprman, data->a2w_ctrl_reg) | +A2W_PLL_CTRL_PRST_DISABLE ); +return 0 ; }
drivers/clk/mvebu/armada-38x.c +8 -7
@@ -46,10 +46,11 @@ static u32 __init armada_38x_get_tclk_freq(void __iomem *sar) }static const u32 armada_38x_cpu_frequencies[]__initconst = { -0 ,0 ,0 ,0 , -1066 *1000 *1000 ,0 ,0 ,0 , +666 *1000 *1000 ,0 ,800 *1000 *1000 ,0 , +1066 *1000 *1000 ,0 ,1200 *1000 *1000 ,0 ,1332 *1000 *1000 ,0 ,0 ,0 , -1600 *1000 *1000 , +1600 *1000 *1000 ,0 ,0 ,0 , +1866 *1000 *1000 ,0 ,0 ,2000 *1000 *1000 , };static u32 __init armada_38x_get_cpu_freq (void __iomem *sar)
@@ -75,11 +76,11 @@ static const struct coreclk_ratio armada_38x_coreclk_ratios[] __initconst = { };static const int armada_38x_cpu_l2_ratios[32 ][2 ]__initconst = { - {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, - {1 ,2 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, + {1 ,2 }, {0 ,1 }, {1 ,2 }, {0 ,1 }, + {1 ,2 }, {0 ,1 }, {1 ,2 }, {0 ,1 }, {1 ,2 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {1 ,2 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, - {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, + {1 ,2 }, {0 ,1 }, {0 ,1 }, {1 ,2 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 }, {0 ,1 },
@@ -90,7 +91,7 @@ static const int armada_38x_cpu_ddr_ratios[32][2] __initconst = { {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, - {0, 1}, {0, 1}, {0, 1}, {0, 1}, + {1, 2}, {0, 1}, {0, 1}, {7, 15}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1},
drivers/clk/renesas/clk-sh73a0.c +3 -3
@@ -46,7 +46,7 @@ struct div4_clk {unsigned int shift; }; -static struct div4_clk div4_clks[] = { +static const struct div4_clk div4_clks[] = { {"zg" ,"pll0" ,CPG_FRQCRA ,16 }, {"m3" ,"pll1" ,CPG_FRQCRA ,12 }, {"b" ,"pll1" ,CPG_FRQCRA ,8 },
@@ -79,7 +79,7 @@ sh73a0_cpg_register_clock(struct device_node *np, struct sh73a0_cpg *cpg, {const struct clk_div_table *table =NULL ;unsigned int shift, reg, width; -const char *parent_name; +const char *parent_name =NULL ;unsigned int mult =1 ;unsigned int div =1 ;
@@ -135,7 +135,7 @@ sh73a0_cpg_register_clock(struct device_node *np, struct sh73a0_cpg *cpg, shift =24 ; width =5 ; }else { -struct div4_clk *c; +const struct div4_clk *c;for (c = div4_clks; c->name; c++) {if (!strcmp (name, c->name)) {
drivers/dma/at_xdmac.c +2 -2
@@ -1473,10 +1473,10 @@ at_xdmac_tx_status(struct dma_chan *chan, dma_cookie_t cookie,for (retry =0 ; retry <AT_XDMAC_RESIDUE_MAX_RETRIES ; retry++) { check_nda =at_xdmac_chan_read (atchan,AT_XDMAC_CNDA ) &0xfffffffc ;rmb (); - initd = !!(at_xdmac_chan_read (atchan,AT_XDMAC_CC ) &AT_XDMAC_CC_INITD ); -rmb (); cur_ubc =at_xdmac_chan_read (atchan,AT_XDMAC_CUBC );rmb (); + initd = !!(at_xdmac_chan_read (atchan,AT_XDMAC_CC ) &AT_XDMAC_CC_INITD ); +rmb (); cur_nda =at_xdmac_chan_read (atchan,AT_XDMAC_CNDA ) &0xfffffffc ;rmb ();
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +1 -0
@@ -569,6 +569,7 @@ static const struct amdgpu_px_quirk amdgpu_px_quirk_list[] = { { 0x1002, 0x6900, 0x1002, 0x0124, AMDGPU_PX_QUIRK_FORCE_ATPX }, { 0x1002, 0x6900, 0x1028, 0x0812, AMDGPU_PX_QUIRK_FORCE_ATPX }, { 0x1002, 0x6900, 0x1028, 0x0813, AMDGPU_PX_QUIRK_FORCE_ATPX }, + { 0x1002, 0x67DF, 0x1028, 0x0774, AMDGPU_PX_QUIRK_FORCE_ATPX }, { 0, 0, 0, 0, 0 }, };
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +4 -2
@@ -201,8 +201,10 @@ void amdgpu_bo_list_get_list(struct amdgpu_bo_list *list,for (i =0 ; i < list->num_entries; i++) {unsigned priority = list->array[i].priority; -list_add_tail (&list->array[i].tv.head, - &bucket[priority]); +if (!list->array[i].robj->parent) +list_add_tail (&list->array[i].tv.head, + &bucket[priority]); + list->array[i].user_pages =NULL ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +1 -1
@@ -519,7 +519,7 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p,INIT_LIST_HEAD (&duplicates);amdgpu_vm_get_pd_bo (&fpriv->vm, &p->validated, &p->vm_pd); -if (p->uf_entry.robj) +if (p->uf_entry.robj && !p->uf_entry.robj->parent)list_add (&p->uf_entry.tv.head, &p->validated);if (need_mmap_lock)
drivers/gpu/drm/amd/amdgpu/si_dpm.c +2 -2
@@ -6449,9 +6449,9 @@ static void si_set_pcie_lane_width_in_smc(struct amdgpu_device *adev, {u32 lane_width;u32 new_lane_width = - (amdgpu_new_state->caps &ATOM_PPLIB_PCIE_LINK_WIDTH_MASK ) >>ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT ; + ((amdgpu_new_state->caps &ATOM_PPLIB_PCIE_LINK_WIDTH_MASK ) >>ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT ) +1 ;u32 current_lane_width = - (amdgpu_current_state->caps &ATOM_PPLIB_PCIE_LINK_WIDTH_MASK ) >>ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT ; + ((amdgpu_current_state->caps &ATOM_PPLIB_PCIE_LINK_WIDTH_MASK ) >>ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT ) +1 ;if (new_lane_width != current_lane_width) {amdgpu_set_pcie_lanes (adev, new_lane_width);
drivers/gpu/drm/radeon/si_dpm.c +2 -2
@@ -5969,9 +5969,9 @@ static void si_set_pcie_lane_width_in_smc(struct radeon_device *rdev, {u32 lane_width;u32 new_lane_width = - (radeon_new_state->caps &ATOM_PPLIB_PCIE_LINK_WIDTH_MASK ) >>ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT ; + ((radeon_new_state->caps &ATOM_PPLIB_PCIE_LINK_WIDTH_MASK ) >>ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT ) +1 ;u32 current_lane_width = - (radeon_current_state->caps &ATOM_PPLIB_PCIE_LINK_WIDTH_MASK ) >>ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT ; + ((radeon_current_state->caps &ATOM_PPLIB_PCIE_LINK_WIDTH_MASK ) >>ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT ) +1 ;if (new_lane_width != current_lane_width) {radeon_set_pcie_lanes (rdev, new_lane_width);
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +12 -11
@@ -1386,6 +1386,9 @@ static int vop_initial(struct vop *vop)usleep_range (10 ,20 );reset_control_deassert (ahb_rst); +VOP_INTR_SET_TYPE (vop, clear,INTR_MASK ,1 ); +VOP_INTR_SET_TYPE (vop, enable,INTR_MASK ,0 ); +memcpy (vop->regsbak, vop->regs, vop->len);for (i =0 ; i < vop_data->table_size; i++)
@@ -1541,17 +1544,9 @@ static int vop_bind(struct device *dev, struct device *master, void *data)mutex_init (&vop->vsync_mutex); - ret =devm_request_irq (dev, vop->irq, vop_isr, -IRQF_SHARED ,dev_name (dev), vop); -if (ret) -return ret; - -/* IRQ is initially disabled; it gets enabled in power_on */ -disable_irq (vop->irq); - ret =vop_create_crtc (vop);if (ret) - goto err_enable_irq; +return ret;pm_runtime_enable (&pdev->dev);
@@ -1561,13 +1556,19 @@ static int vop_bind(struct device *dev, struct device *master, void *data) goto err_disable_pm_runtime; } + ret =devm_request_irq (dev, vop->irq, vop_isr, +IRQF_SHARED ,dev_name (dev), vop); +if (ret) + goto err_disable_pm_runtime; + +/* IRQ is initially disabled; it gets enabled in power_on */ +disable_irq (vop->irq); +return 0 ; err_disable_pm_runtime:pm_runtime_disable (&pdev->dev);vop_destroy_crtc (vop); -err_enable_irq: -enable_irq (vop->irq);/* To balance out the disable_irq above */ return ret; }
drivers/hid/hid-core.c +5 -5
@@ -1370,7 +1370,7 @@ u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags)* of implement() working on 8 byte chunks */ -int len =hid_report_len (report) +7 ; +u32 len =hid_report_len (report) +7 ;return kmalloc (len, flags); }
@@ -1435,7 +1435,7 @@ void __hid_request(struct hid_device *hid, struct hid_report *report, {char *buf;int ret; -int len; +u32 len; buf =hid_alloc_report_buf (report,GFP_KERNEL );if (!buf)
@@ -1461,14 +1461,14 @@ void __hid_request(struct hid_device *hid, struct hid_report *report, }EXPORT_SYMBOL_GPL (__hid_request); -int hid_report_raw_event (struct hid_device *hid,int type,u8 *data,int size, +int hid_report_raw_event (struct hid_device *hid,int type,u8 *data,u32 size,int interrupt) {struct hid_report_enum *report_enum = hid->report_enum + type;struct hid_report *report;struct hid_driver *hdrv;unsigned int a; -int rsize, csize = size; +u32 rsize, csize = size;u8 *cdata = data;int ret =0 ;
@@ -1526,7 +1526,7 @@ EXPORT_SYMBOL_GPL(hid_report_raw_event);* * This is data entry for lower layers. */ -int hid_input_report (struct hid_device *hid,int type,u8 *data,int size,int interrupt) +int hid_input_report (struct hid_device *hid,int type,u8 *data,u32 size,int interrupt) {struct hid_report_enum *report_enum;struct hid_driver *hdrv;
drivers/hid/hid-input.c +2 -1
@@ -1279,7 +1279,8 @@ static void hidinput_led_worker(struct work_struct *work) led_work);struct hid_field *field;struct hid_report *report; -int len, ret; +int ret; +u32 len;__u8 *buf; field =hidinput_get_led_field (hid);
drivers/hid/hid-multitouch.c +3 -2
@@ -315,7 +315,8 @@ static struct attribute_group mt_attribute_group = {static void mt_get_feature (struct hid_device *hdev,struct hid_report *report) {struct mt_device *td =hid_get_drvdata (hdev); -int ret, size =hid_report_len (report); +int ret; +u32 size =hid_report_len (report);u8 *buf;/*
@@ -919,7 +920,7 @@ static void mt_set_input_mode(struct hid_device *hdev)struct hid_report_enum *re;struct mt_class *cls = &td->mtclass;char *buf; -int report_len; +u32 report_len;if (td->inputmode <0 )return ;
drivers/hid/hid-rmi.c +2 -2
@@ -110,8 +110,8 @@ struct rmi_data {u8 *writeReport;u8 *readReport; -int input_report_size; -int output_report_size; +u32 input_report_size; +u32 output_report_size;unsigned long flags;
drivers/hid/hidraw.c +5 -0
@@ -192,6 +192,11 @@ static ssize_t hidraw_get_report(struct file *file, char __user *buffer, size_tint ret =0 , len;unsigned char report_number; +if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { + ret = -ENODEV ; + goto out; + } + dev = hidraw_table[minor]->hid;if (!dev->ll_driver->raw_request) {
drivers/hid/i2c-hid/i2c-hid.c +7 -6
@@ -142,10 +142,10 @@ struct i2c_hid {* register of the HID * descriptor. */ unsigned int bufsize;/* i2c buffer size */ -char *inbuf;/* Input buffer */ -char *rawbuf;/* Raw Input buffer */ -char *cmdbuf;/* Command buffer */ -char *argsbuf;/* Command arguments buffer */ +u8 *inbuf;/* Input buffer */ +u8 *rawbuf;/* Raw Input buffer */ +u8 *cmdbuf;/* Command buffer */ +u8 *argsbuf;/* Command arguments buffer */ unsigned long flags;/* device flags */ unsigned long quirks;/* Various quirks */
@@ -451,7 +451,8 @@ static int i2c_hid_hwreset(struct i2c_client *client)static void i2c_hid_get_input (struct i2c_hid *ihid) { -int ret, ret_size; +int ret; +u32 ret_size;int size =le16_to_cpu (ihid->hdesc.wMaxInputLength);if (size > ihid->bufsize)
@@ -476,7 +477,7 @@ static void i2c_hid_get_input(struct i2c_hid *ihid)return ; } -if (ret_size > size) { +if ((ret_size > size) || (ret_size <=2 )) {dev_err (&ihid->client->dev,"%s: incomplete report (%d/%d)\n" , __func__, size, ret_size);return ;
drivers/hid/wacom_sys.c +1 -1
@@ -351,7 +351,7 @@ static int wacom_set_device_mode(struct hid_device *hdev,u8 *rep_data;struct hid_report *r;struct hid_report_enum *re; -int length; +u32 length;int error = -ENOMEM , limit =0 ;if (wacom_wac->mode_report <0 )
drivers/infiniband/core/ucma.c +3 -0
@@ -1231,6 +1231,9 @@ static int ucma_set_ib_path(struct ucma_context *ctx,if (!optlen)return -EINVAL ; +if (!ctx->cm_id->device) +return -EINVAL ; +memset (&sa_path,0 ,sizeof (sa_path));ib_sa_unpack_path (path_data->path_rec, &sa_path);
drivers/infiniband/sw/rxe/rxe_verbs.c +2 -3
@@ -747,9 +747,8 @@ static int init_send_wqe(struct rxe_qp *qp, struct ib_send_wr *ibwr,memcpy (wqe->dma.sge, ibwr->sg_list, num_sge *sizeof (struct ib_sge )); - wqe->iova = (mask &WR_ATOMIC_MASK ) ? -atomic_wr (ibwr)->remote_addr : -rdma_wr (ibwr)->remote_addr; + wqe->iova = mask &WR_ATOMIC_MASK ?atomic_wr (ibwr)->remote_addr : + mask &WR_READ_OR_WRITE_MASK ?rdma_wr (ibwr)->remote_addr :0 ; wqe->mask = mask; wqe->dma.length = length; wqe->dma.resid = length;
drivers/infiniband/ulp/srp/ib_srp.c +9 -9
@@ -2626,9 +2626,11 @@ static int srp_abort(struct scsi_cmnd *scmnd) ret =FAST_IO_FAIL ; else ret =FAILED ; -srp_free_req (ch, req, scmnd,0 ); - scmnd->result =DID_ABORT <<16 ; - scmnd->scsi_done (scmnd); +if (ret ==SUCCESS ) { +srp_free_req (ch, req, scmnd,0 ); + scmnd->result =DID_ABORT <<16 ; + scmnd->scsi_done (scmnd); + }return ret; }
@@ -3395,12 +3397,10 @@ static ssize_t srp_create_target(struct device *dev, num_online_nodes());const int ch_end = ((node_idx +1 ) * target->ch_count /num_online_nodes ()); -const int cv_start = (node_idx * ibdev->num_comp_vectors / -num_online_nodes () + target->comp_vector) - % ibdev->num_comp_vectors; -const int cv_end = ((node_idx +1 ) * ibdev->num_comp_vectors / -num_online_nodes () + target->comp_vector) - % ibdev->num_comp_vectors; +const int cv_start = node_idx * ibdev->num_comp_vectors / +num_online_nodes (); +const int cv_end = (node_idx +1 ) * ibdev->num_comp_vectors / +num_online_nodes ();int cpu_idx =0 ;for_each_online_cpu (cpu) {
drivers/iommu/intel-svm.c +1 -0
@@ -389,6 +389,7 @@ int intel_svm_bind_mm(struct device *dev, int *pasid, int flags, struct svm_dev_ pasid_max - 1, GFP_KERNEL);if (ret <0 ) {kfree (svm); +kfree (sdev); goto out; } svm->pasid = ret;
drivers/irqchip/irq-gic-common.c +8 -1
@@ -21,6 +21,8 @@#include "irq-gic-common.h" +static DEFINE_RAW_SPINLOCK (irq_controller_lock); +static const struct gic_kvm_info *gic_kvm_info;const struct gic_kvm_info *gic_get_kvm_info (void )
@@ -52,11 +54,13 @@ int gic_configure_irq(unsigned int irq, unsigned int type,u32 confoff = (irq /16 ) *4 ;u32 val, oldval;int ret =0 ; +unsigned long flags;/* * Read current configuration register, and insert the config * for "irq", depending on "type". */ +raw_spin_lock_irqsave (&irq_controller_lock, flags); val = oldval =readl_relaxed (base +GIC_DIST_CONFIG + confoff);if (type &IRQ_TYPE_LEVEL_MASK ) val &= ~confmask;
@@ -64,8 +68,10 @@ int gic_configure_irq(unsigned int irq, unsigned int type, val |= confmask;/* If the current configuration is the same, then we are done */ -if (val == oldval) +if (val == oldval) { +raw_spin_unlock_irqrestore (&irq_controller_lock, flags);return 0 ; + }/* * Write back the new configuration, and possibly re-enable
@@ -83,6 +89,7 @@ int gic_configure_irq(unsigned int irq, unsigned int type,pr_warn ("GIC: PPI%d is secure or misconfigured\n" , irq -16 ); } +raw_spin_unlock_irqrestore (&irq_controller_lock, flags);if (sync_access)sync_access ();
drivers/mmc/host/jz4740_mmc.c +1 -1
@@ -368,9 +368,9 @@ static void jz4740_mmc_set_irq_enabled(struct jz4740_mmc_host *host, host->irq_mask &= ~irq; else host->irq_mask |= irq; -spin_unlock_irqrestore (&host->lock, flags);writew (host->irq_mask, host->base +JZ_REG_MMC_IMASK ); +spin_unlock_irqrestore (&host->lock, flags); } static void jz4740_mmc_clock_enable(struct jz4740_mmc_host *host,
drivers/mtd/ubi/block.c +1 -1
@@ -244,7 +244,7 @@ static int ubiblock_open(struct block_device *bdev, fmode_t mode)* in any case. */ if (mode &FMODE_WRITE ) { - ret = -EPERM ; + ret = -EROFS ; goto out_unlock; }
drivers/mtd/ubi/build.c +11 -0
@@ -894,6 +894,17 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,return -EINVAL ; } +/* +* Both UBI and UBIFS have been designed for SLC NAND and NOR flashes. +* MLC NAND is different and needs special care, otherwise UBI or UBIFS +* will die soon and you will lose all your data. +*/ +if (mtd->type ==MTD_MLCNANDFLASH ) { +pr_err ("ubi: refuse attaching mtd%d - MLC NAND is not supported\n" , + mtd->index); +return -EINVAL ; + } +if (ubi_num ==UBI_DEV_NUM_AUTO ) {/* Search for an empty slot in the @ubi_devices array */ for (ubi_num =0 ; ubi_num <UBI_MAX_DEVICES ; ubi_num++)
drivers/mtd/ubi/fastmap-wl.c +0 -1
@@ -362,7 +362,6 @@ static void ubi_fastmap_close(struct ubi_device *ubi) {int i; -flush_work (&ubi->fm_work);return_unused_pool_pebs (ubi, &ubi->fm_pool);return_unused_pool_pebs (ubi, &ubi->fm_wl_pool);
drivers/net/xen-netfront.c +6 -1
@@ -2038,7 +2038,10 @@ static void netback_changed(struct xenbus_device *dev,case XenbusStateInitialised:case XenbusStateReconfiguring:case XenbusStateReconfigured: +break ; +case XenbusStateUnknown: +wake_up_all (&module_unload_q);break ;case XenbusStateInitWait:
@@ -2169,7 +2172,9 @@ static int xennet_remove(struct xenbus_device *dev)xenbus_switch_state (dev, XenbusStateClosing);wait_event (module_unload_q,xenbus_read_driver_state (dev->otherend) == - XenbusStateClosing); + XenbusStateClosing || +xenbus_read_driver_state (dev->otherend) == + XenbusStateUnknown);xenbus_switch_state (dev, XenbusStateClosed); wait_event(module_unload_q,
drivers/nvdimm/namespace_devs.c +2 -2
@@ -1747,7 +1747,7 @@ struct device *create_namespace_pmem(struct nd_region *nd_region, }if (i < nd_region->ndr_mappings) { -struct nvdimm_drvdata *ndd =to_ndd (&nd_region->mapping[i]); +struct nvdimm *nvdimm = nd_region->mapping[i].nvdimm;/* * Give up if we don't find an instance of a uuid at each
@@ -1755,7 +1755,7 @@ struct device *create_namespace_pmem(struct nd_region *nd_region,* find a dimm with two instances of the same uuid. */ dev_err (&nd_region->dev,"%s missing label for %pUb\n" , -dev_name (ndd->dev), nd_label->uuid); +nvdimm_name (nvdimm), nd_label->uuid); rc = -EINVAL ; goto err; }
drivers/pci/hotplug/acpiphp_glue.c +16 -7
@@ -587,6 +587,7 @@ static unsigned int get_slot_status(struct acpiphp_slot *slot) {unsigned long long sta =0 ;struct acpiphp_func *func; +u32 dvid;list_for_each_entry (func, &slot->funcs, sibling) {if (func->flags &FUNC_HAS_STA ) {
@@ -597,19 +598,27 @@ static unsigned int get_slot_status(struct acpiphp_slot *slot)if (ACPI_SUCCESS (status) && sta)break ; }else { -u32 dvid; - -pci_bus_read_config_dword (slot->bus, -PCI_DEVFN (slot->device, - func->function), -PCI_VENDOR_ID , &dvid); -if (dvid !=0xffffffff ) { +if (pci_bus_read_dev_vendor_id (slot->bus, +PCI_DEVFN (slot->device, func->function), + &dvid,0 )) { sta =ACPI_STA_ALL ;break ; } } } +if (!sta) { +/* +* Check for the slot itself since it may be that the +* ACPI slot is a device below PCIe upstream port so in +* that case it may not even be reachable yet. +*/ +if (pci_bus_read_dev_vendor_id (slot->bus, +PCI_DEVFN (slot->device,0 ), &dvid,0 )) { + sta =ACPI_STA_ALL ; + } + } +return (unsigned int )sta; }
drivers/pwm/pwm-rcar.c +6 -2
@@ -156,8 +156,12 @@ static int rcar_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,if (div <0 )return div; -/* Let the core driver set pwm->period if disabled and duty_ns == 0 */ -if (!pwm_is_enabled (pwm) && !duty_ns) +/* +* Let the core driver set pwm->period if disabled and duty_ns == 0. +* But, this driver should prevent to set the new duty_ns if current +* duty_cycle is not set +*/ +if (!pwm_is_enabled (pwm) && !duty_ns && !pwm->state.duty_cycle)return 0 ;rcar_pwm_update (rp,RCAR_PWMCR_SYNC ,RCAR_PWMCR_SYNC ,RCAR_PWMCR );
drivers/spi/spi.c +8 -2
@@ -743,8 +743,14 @@ static int spi_map_buf(struct spi_master *master, struct device *dev,for (i =0 ; i < sgs; i++) {if (vmalloced_buf || kmap_buf) { - min =min_t (size_t, - len, desc_len -offset_in_page (buf)); +/* +* Next scatterlist entry size is the minimum between +* the desc_len and the remaining buffer length that +* fits in a page. +*/ + min =min_t (size_t, desc_len, +min_t (size_t, len, +PAGE_SIZE -offset_in_page (buf)));if (vmalloced_buf) vm_page =vmalloc_to_page (buf);else
drivers/thermal/imx_thermal.c +3 -3
@@ -587,6 +587,9 @@ static int imx_thermal_probe(struct platform_device *pdev)regmap_write (map,TEMPSENSE0 +REG_CLR ,TEMPSENSE0_POWER_DOWN );regmap_write (map,TEMPSENSE0 +REG_SET ,TEMPSENSE0_MEASURE_TEMP ); + data->irq_enabled = true; + data->mode =THERMAL_DEVICE_ENABLED ; + ret =devm_request_threaded_irq (&pdev->dev, data->irq, imx_thermal_alarm_irq, imx_thermal_alarm_irq_thread,0 ,"imx_thermal" , data);
@@ -598,9 +601,6 @@ static int imx_thermal_probe(struct platform_device *pdev)return ret; } - data->irq_enabled = true; - data->mode =THERMAL_DEVICE_ENABLED ; -return 0 ; }
drivers/thunderbolt/nhi.c +1 -0
@@ -628,6 +628,7 @@ static const struct dev_pm_ops nhi_pm_ops = {* we just disable hotplug, the * pci-tunnels stay alive. */ + .thaw_noirq = nhi_resume_noirq, .restore_noirq = nhi_resume_noirq, };
drivers/tty/n_tty.c +6 -0
@@ -2182,6 +2182,12 @@ static ssize_t n_tty_read(struct tty_struct *tty, struct file *file, }if (tty_hung_up_p (file))break ; +/* +* Abort readers for ttys which never actually +* get hung up. See __tty_hangup(). +*/ +if (test_bit (TTY_HUPPING , &tty->flags)) +break ;if (!timeout)break ;if (file->f_flags &O_NONBLOCK ) {
drivers/tty/tty_io.c +9 -0
@@ -709,6 +709,14 @@ static void __tty_hangup(struct tty_struct *tty, int exit_session)return ; } +/* +* Some console devices aren't actually hung up for technical and +* historical reasons, which can lead to indefinite interruptible +* sleep in n_tty_read(). The following explicitly tells +* n_tty_read() to abort readers. +*/ +set_bit (TTY_HUPPING , &tty->flags); +/* inuse_filps is protected by the single tty lock, this really needs to change if we want to flush the workqueue with the lock held */
@@ -763,6 +771,7 @@ static void __tty_hangup(struct tty_struct *tty, int exit_session)* from the ldisc side, which is now guaranteed. */ set_bit (TTY_HUPPED , &tty->flags); +clear_bit (TTY_HUPPING , &tty->flags);tty_unlock (tty);if (f)
drivers/usb/core/generic.c +7 -2
@@ -208,8 +208,13 @@ static int generic_suspend(struct usb_device *udev, pm_message_t msg)if (!udev->parent) rc =hcd_bus_suspend (udev, msg); -/* Non-root devices don't need to do anything for FREEZE or PRETHAW */ -else if (msg.event ==PM_EVENT_FREEZE || msg.event ==PM_EVENT_PRETHAW ) +/* +* Non-root USB2 devices don't need to do anything for FREEZE +* or PRETHAW. USB3 devices don't support global suspend and +* needs to be selectively suspended. +*/ +else if ((msg.event ==PM_EVENT_FREEZE || msg.event ==PM_EVENT_PRETHAW ) + && (udev->speed <USB_SPEED_SUPER )) rc =0 ;else rc =usb_port_suspend (udev, msg);
drivers/usb/dwc3/dwc3-pci.c +1 -1
@@ -173,7 +173,7 @@ static int dwc3_pci_probe(struct pci_dev *pci, ret =platform_device_add_resources (dwc3, res,ARRAY_SIZE (res));if (ret) {dev_err (dev,"couldn't add resources to dwc3 device\n" ); -return ret; + goto err; } dwc3->dev.parent = dev;
drivers/usb/gadget/function/f_midi.c +2 -1
@@ -389,7 +389,8 @@ static int f_midi_set_alt(struct usb_function *f, unsigned intf, unsigned alt)if (err) {ERROR (midi,"%s: couldn't enqueue request: %d\n" , midi->out_ep->name, err); -free_ep_req (midi->out_ep, req); +if (req->buf !=NULL ) +free_ep_req (midi->out_ep, req);return err; } }
drivers/usb/gadget/u_f.h +2 -0
@@ -64,7 +64,9 @@ struct usb_request *alloc_ep_req(struct usb_ep *ep, size_t len);/* Frees a usb_request previously allocated by alloc_ep_req() */ static inline void free_ep_req (struct usb_ep *ep,struct usb_request *req) { +WARN_ON (req->buf ==NULL );kfree (req->buf); + req->buf =NULL ;usb_ep_free_request (ep, req); }
drivers/usb/gadget/udc/core.c +3 -0
@@ -248,6 +248,9 @@ EXPORT_SYMBOL_GPL(usb_ep_free_request);* arranges to poll once per interval, and the gadget driver usually will * have queued some data to transfer at that time. * +* Note that @req's ->complete() callback must never be called from +* within usb_ep_queue() as that can create deadlock situations. +* * Returns zero, or a negative error code. Endpoints that are not enabled * report errors; errors will also be * reported when the usb peripheral is disconnected.
drivers/usb/musb/musb_gadget_ep0.c +9 -5
@@ -114,15 +114,19 @@ static int service_tx_status_request( } is_in = epnum &USB_DIR_IN ; -if (is_in) { - epnum &=0x0f ; + epnum &=0x0f ; +if (epnum >=MUSB_C_NUM_EPS ) { + handled = -EINVAL ; +break ; + } + +if (is_in) ep = &musb->endpoints[epnum].ep_in; - }else { +else ep = &musb->endpoints[epnum].ep_out; - } regs = musb->endpoints[epnum].regs; -if (epnum >=MUSB_C_NUM_EPS || !ep->desc) { +if (!ep->desc) { handled = -EINVAL ;break ; }
drivers/vfio/pci/vfio_pci_config.c +26 -3
@@ -810,6 +810,7 @@ static int vfio_exp_config_write(struct vfio_pci_device *vdev, int pos, {__le16 *ctrl = (__le16 *)(vdev->vconfig + pos - offset +PCI_EXP_DEVCTL ); +int readrq =le16_to_cpu (*ctrl) &PCI_EXP_DEVCTL_READRQ ; count =vfio_default_config_write (vdev, pos, count, perm, offset, val);if (count <0 )
@@ -835,6 +836,27 @@ static int vfio_exp_config_write(struct vfio_pci_device *vdev, int pos,pci_try_reset_function (vdev->pdev); } +/* +* MPS is virtualized to the user, writes do not change the physical +* register since determining a proper MPS value requires a system wide +* device view. The MRRS is largely independent of MPS, but since the +* user does not have that system-wide view, they might set a safe, but +* inefficiently low value. Here we allow writes through to hardware, +* but we set the floor to the physical device MPS setting, so that +* we can at least use full TLPs, as defined by the MPS value. +* +* NB, if any devices actually depend on an artificially low MRRS +* setting, this will need to be revisited, perhaps with a quirk +* though pcie_set_readrq(). +*/ +if (readrq != (le16_to_cpu (*ctrl) &PCI_EXP_DEVCTL_READRQ )) { + readrq =128 << + ((le16_to_cpu (*ctrl) &PCI_EXP_DEVCTL_READRQ ) >>12 ); + readrq =max (readrq,pcie_get_mps (vdev->pdev)); + +pcie_set_readrq (vdev->pdev, readrq); + } +return count; }
@@ -853,11 +875,12 @@ static int __init init_pci_cap_exp_perm(struct perm_bits *perm)* Allow writes to device control fields, except devctl_phantom, * which could confuse IOMMU, MPS, which can break communication * with other physical devices, and the ARI bit in devctl2, which -* is set at probe time. FLR gets virtualized via our writefn. +* is set at probe time. FLR and MRRS get virtualized via our +* writefn. */ p_setw (perm,PCI_EXP_DEVCTL , -PCI_EXP_DEVCTL_BCR_FLR |PCI_EXP_DEVCTL_PAYLOAD , - ~PCI_EXP_DEVCTL_PHANTOM ); +PCI_EXP_DEVCTL_BCR_FLR |PCI_EXP_DEVCTL_PAYLOAD | +PCI_EXP_DEVCTL_READRQ , ~PCI_EXP_DEVCTL_PHANTOM );p_setw (perm,PCI_EXP_DEVCTL2 ,NO_VIRT , ~PCI_EXP_DEVCTL2_ARI );return 0 ; }
drivers/watchdog/f71808e_wdt.c +1 -1
@@ -496,7 +496,7 @@ static bool watchdog_is_running(void) is_running = (superio_inb (watchdog.sioaddr,SIO_REG_ENABLE ) &BIT (0 )) && (superio_inb (watchdog.sioaddr,F71808FG_REG_WDT_CONF ) - &F71808FG_FLAG_WD_EN ); + &BIT (F71808FG_FLAG_WD_EN ));superio_exit (watchdog.sioaddr);
fs/autofs4/root.c +1 -1
@@ -746,7 +746,7 @@ static int autofs4_dir_mkdir(struct inode *dir,autofs4_del_active (dentry); - inode =autofs4_get_inode (dir->i_sb,S_IFDIR |0555 ); + inode =autofs4_get_inode (dir->i_sb,S_IFDIR | mode);if (!inode)return -ENOMEM ;d_add (dentry, inode);
fs/cifs/cifsglob.h +1 -0
@@ -1412,6 +1412,7 @@ struct dfs_info3_param {#define CIFS_FATTR_NEED_REVAL 0x4#define CIFS_FATTR_INO_COLLISION 0x8#define CIFS_FATTR_UNKNOWN_NLINK 0x10 +#define CIFS_FATTR_FAKE_ROOT_INO 0x20struct cifs_fattr {u32 cf_flags;
fs/cifs/inode.c +33 -0
@@ -701,6 +701,18 @@ cifs_get_file_info(struct file *filp)return rc; } +/* Simple function to return a 64 bit hash of string. Rarely called */ +static __u64 simple_hashstr (const char *str) +{ +const __u64 hash_mult =1125899906842597L ;/* a big enough prime */ +__u64 hash =0 ; + +while (*str) + hash = (hash + (__u64) *str++) * hash_mult; + +return hash; +} + int cifs_get_inode_info(struct inode **inode, const char *full_path, FILE_ALL_INFO *data, struct super_block *sb, int xid,
@@ -810,6 +822,14 @@ cifs_get_inode_info(struct inode **inode, const char *full_path, tmprc); fattr.cf_uniqueid =iunique (sb,ROOT_I );cifs_autodisable_serverino (cifs_sb); + }else if ((fattr.cf_uniqueid ==0 ) && +strlen (full_path) ==0 ) { +/* some servers ret bad root ino ie 0 */ +cifs_dbg (FYI ,"Invalid (0) inodenum\n" ); + fattr.cf_flags |= +CIFS_FATTR_FAKE_ROOT_INO ; + fattr.cf_uniqueid = +simple_hashstr (tcon->treeName); } } }else
@@ -826,6 +846,16 @@ cifs_get_inode_info(struct inode **inode, const char *full_path, &fattr.cf_uniqueid, data);if (tmprc) fattr.cf_uniqueid =CIFS_I (*inode)->uniqueid; +else if ((fattr.cf_uniqueid ==0 ) && +strlen (full_path) ==0 ) { +/* +* Reuse existing root inode num since +* inum zero for root causes ls of . and .. to +* not be returned +*/ +cifs_dbg (FYI ,"Srv ret 0 inode num for root\n" ); + fattr.cf_uniqueid =CIFS_I (*inode)->uniqueid; + } }else fattr.cf_uniqueid =CIFS_I (*inode)->uniqueid; }
@@ -887,6 +917,9 @@ cifs_get_inode_info(struct inode **inode, const char *full_path, } cgii_exit: +if ((*inode) && ((*inode)->i_ino ==0 )) +cifs_dbg (FYI ,"inode number of zero returned\n" ); +kfree (buf);cifs_put_tlink (tlink);return rc;
fs/ext4/balloc.c +1 -2
@@ -242,8 +242,6 @@ static int ext4_init_block_bitmap(struct super_block *sb,*/ ext4_mark_bitmap_end (num_clusters_in_group (sb, block_group), sb->s_blocksize *8 , bh->b_data); -ext4_block_bitmap_csum_set (sb, block_group, gdp, bh); -ext4_group_desc_csum_set (sb, block_group, gdp);return 0 ; }
@@ -447,6 +445,7 @@ ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group) err =ext4_init_block_bitmap (sb, bh, block_group, desc);set_bitmap_uptodate (bh);set_buffer_uptodate (bh); +set_buffer_verified (bh);ext4_unlock_group (sb, block_group);unlock_buffer (bh);if (err) {
fs/ext4/ialloc.c +3 -44
64 lines not on this page · raw message
fs/ext4/inode.c +8 -3
@@ -3396,7 +3396,6 @@ static ssize_t ext4_direct_IO_write(struct kiocb *iocb, struct iov_iter *iter) {struct file *file = iocb->ki_filp;struct inode *inode = file->f_mapping->host; -struct ext4_inode_info *ei =EXT4_I (inode);ssize_t ret;loff_t offset = iocb->ki_pos;size_t count =iov_iter_count (iter);
@@ -3420,7 +3419,7 @@ static ssize_t ext4_direct_IO_write(struct kiocb *iocb, struct iov_iter *iter) goto out; } orphan =1 ; - ei->i_disksize = inode->i_size; +ext4_update_i_disksize (inode, inode->i_size);ext4_journal_stop (handle); }
@@ -3548,7 +3547,7 @@ static ssize_t ext4_direct_IO_write(struct kiocb *iocb, struct iov_iter *iter)if (ret >0 ) {loff_t end = offset + ret;if (end > inode->i_size) { - ei->i_disksize = end; +ext4_update_i_disksize (inode, end);i_size_write (inode, end);/* * We're going to return a positive `ret'
@@ -4494,6 +4493,12 @@ struct inode *ext4_iget(struct super_block *sb, unsigned long ino) goto bad_inode; raw_inode =ext4_raw_inode (&iloc); +if ((ino ==EXT4_ROOT_INO ) && (raw_inode->i_links_count ==0 )) { +EXT4_ERROR_INODE (inode,"root inode unallocated" ); + ret = -EFSCORRUPTED ; + goto bad_inode; + } +if (EXT4_INODE_SIZE (inode->i_sb) >EXT4_GOOD_OLD_INODE_SIZE ) { ei->i_extra_isize =le16_to_cpu (raw_inode->i_extra_isize); if (EXT4_GOOD_OLD_INODE_SIZE + ei->i_extra_isize >
fs/ext4/super.c +6 -0
@@ -2260,6 +2260,8 @@ static int ext4_check_descriptors(struct super_block *sb,ext4_msg (sb,KERN_ERR ,"ext4_check_descriptors: " "Block bitmap for group %u overlaps " "superblock" , i); +if (!(sb->s_flags &MS_RDONLY )) +return 0 ; }if (block_bitmap < first_block || block_bitmap > last_block) { ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
@@ -2272,6 +2274,8 @@ static int ext4_check_descriptors(struct super_block *sb,ext4_msg (sb,KERN_ERR ,"ext4_check_descriptors: " "Inode bitmap for group %u overlaps " "superblock" , i); +if (!(sb->s_flags &MS_RDONLY )) +return 0 ; }if (inode_bitmap < first_block || inode_bitmap > last_block) { ext4_msg(sb, KERN_ERR, "ext4_check_descriptors: "
@@ -2284,6 +2288,8 @@ static int ext4_check_descriptors(struct super_block *sb,ext4_msg (sb,KERN_ERR ,"ext4_check_descriptors: " "Inode table for group %u overlaps " "superblock" , i); +if (!(sb->s_flags &MS_RDONLY )) +return 0 ; }if (inode_table < first_block || inode_table + sbi->s_itb_per_group -1 > last_block) {
fs/fs-writeback.c +4 -3
@@ -745,11 +745,12 @@ int inode_congested(struct inode *inode, int cong_bits)*/ if (inode &&inode_to_wb_is_valid (inode)) {struct bdi_writeback *wb; -bool locked, congested; +struct wb_lock_cookie lock_cookie = {}; +bool congested; - wb =unlocked_inode_to_wb_begin (inode, &locked); + wb =unlocked_inode_to_wb_begin (inode, &lock_cookie); congested =wb_congested (wb, cong_bits); -unlocked_inode_to_wb_end (inode, locked); +unlocked_inode_to_wb_end (inode, &lock_cookie);return congested; }
fs/jbd2/journal.c +4 -1
@@ -951,7 +951,7 @@ int __jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block) }/* -* This is a variaon of __jbd2_update_log_tail which checks for validity of +* This is a variation of __jbd2_update_log_tail which checks for validity of * provided log tail and locks j_checkpoint_mutex. So it is safe against races * with other threads updating log tail. */
@@ -1394,6 +1394,9 @@ int jbd2_journal_update_sb_log_tail(journal_t *journal, tid_t tail_tid,journal_superblock_t *sb = journal->j_superblock;int ret; +if (is_journal_aborted (journal)) +return -EIO ; +BUG_ON (!mutex_is_locked (&journal->j_checkpoint_mutex));jbd_debug (1 ,"JBD2: updating superblock (start %lu, seq %u)\n" , tail_block, tail_tid);
fs/jffs2/super.c +1 -1
@@ -342,7 +342,7 @@ static void jffs2_put_super (struct super_block *sb)static void jffs2_kill_sb (struct super_block *sb) {struct jffs2_sb_info *c =JFFS2_SB_INFO (sb); -if (!(sb->s_flags &MS_RDONLY )) +if (c && !(sb->s_flags &MS_RDONLY ))jffs2_stop_garbage_collect_thread (c);kill_mtd_super (sb);kfree (c);
fs/namespace.c +2 -1
@@ -1033,7 +1033,8 @@ static struct mount *clone_mnt(struct mount *old, struct dentry *root, goto out_free; } - mnt->mnt.mnt_flags = old->mnt.mnt_flags & ~(MNT_WRITE_HOLD |MNT_MARKED ); + mnt->mnt.mnt_flags = old->mnt.mnt_flags; + mnt->mnt.mnt_flags &= ~(MNT_WRITE_HOLD |MNT_MARKED |MNT_INTERNAL );/* Don't allow unprivileged users to change mount flags */ if (flag &CL_UNPRIVILEGED ) { mnt->mnt.mnt_flags |=MNT_LOCK_ATIME ;
fs/notify/fanotify/fanotify.c +15 -19
@@ -92,7 +92,7 @@ static bool fanotify_should_send_event(struct fsnotify_mark *inode_mark,u32 event_mask, void *data, int data_type) { - __u32 marks_mask, marks_ignored_mask; + __u32 marks_mask = 0, marks_ignored_mask = 0;struct path *path = data; pr_debug("%s: inode_mark=%p vfsmnt_mark=%p mask=%x data=%p"
@@ -108,24 +108,20 @@ static bool fanotify_should_send_event(struct fsnotify_mark *inode_mark, !d_can_lookup(path->dentry))return false; -if (inode_mark && vfsmnt_mark) { - marks_mask = (vfsmnt_mark->mask | inode_mark->mask); - marks_ignored_mask = (vfsmnt_mark->ignored_mask | inode_mark->ignored_mask); - }else if (inode_mark) { -/* -* if the event is for a child and this inode doesn't care about -* events on the child, don't send it! -*/ -if ((event_mask &FS_EVENT_ON_CHILD ) && - !(inode_mark->mask &FS_EVENT_ON_CHILD )) -return false; - marks_mask = inode_mark->mask; - marks_ignored_mask = inode_mark->ignored_mask; - }else if (vfsmnt_mark) { - marks_mask = vfsmnt_mark->mask; - marks_ignored_mask = vfsmnt_mark->ignored_mask; - }else { -BUG (); +/* +* if the event is for a child and this inode doesn't care about +* events on the child, don't send it! +*/ +if (inode_mark && + (!(event_mask &FS_EVENT_ON_CHILD ) || + (inode_mark->mask &FS_EVENT_ON_CHILD ))) { + marks_mask |= inode_mark->mask; + marks_ignored_mask |= inode_mark->ignored_mask; + } + +if (vfsmnt_mark) { + marks_mask |= vfsmnt_mark->mask; + marks_ignored_mask |= vfsmnt_mark->ignored_mask; } if (d_is_dir(path->dentry) &&
fs/orangefs/super.c +5 -0
@@ -559,6 +559,11 @@ void orangefs_kill_sb(struct super_block *sb)/* provided sb cleanup */ kill_anon_super (sb); +if (!ORANGEFS_SB (sb)) { +mutex_lock (&orangefs_request_mutex); +mutex_unlock (&orangefs_request_mutex); +return ; + }/* * issue the unmount to userspace to tell it to remove the * dynamic mount info it has for this superblock
fs/reiserfs/journal.c +1 -1
@@ -2640,7 +2640,7 @@ static int journal_init_dev(struct super_block *super,if (IS_ERR (journal->j_dev_bd)) { result =PTR_ERR (journal->j_dev_bd); journal->j_dev_bd =NULL ; -reiserfs_warning (super, +reiserfs_warning (super,"sh-457" ,"journal_init_dev: Cannot open '%s': %i" , jdev_name, result);return result;
fs/ubifs/super.c +10 -4
@@ -1728,8 +1728,11 @@ static void ubifs_remount_ro(struct ubifs_info *c)dbg_save_space_info (c); -for (i =0 ; i < c->jhead_cnt; i++) -ubifs_wbuf_sync (&c->jheads[i].wbuf); +for (i =0 ; i < c->jhead_cnt; i++) { + err =ubifs_wbuf_sync (&c->jheads[i].wbuf); +if (err) +ubifs_ro_mode (c, err); + } c->mst_node->flags &= ~cpu_to_le32 (UBIFS_MST_DIRTY ); c->mst_node->flags |=cpu_to_le32 (UBIFS_MST_NO_ORPHS );
@@ -1795,8 +1798,11 @@ static void ubifs_put_super(struct super_block *sb)int err;/* Synchronize write-buffers */ -for (i =0 ; i < c->jhead_cnt; i++) -ubifs_wbuf_sync (&c->jheads[i].wbuf); +for (i =0 ; i < c->jhead_cnt; i++) { + err =ubifs_wbuf_sync (&c->jheads[i].wbuf); +if (err) +ubifs_ro_mode (c, err); + }/* * We are being cleanly unmounted which means the
fs/udf/unicode.c +6 -0
@@ -28,6 +28,9 @@#include "udf_sb.h" +#define SURROGATE_MASK 0xfffff800 +#define SURROGATE_PAIR 0x0000d800 +static int udf_uni2char_utf8 (wchar_t uni,unsigned char *out,int boundlen)
@@ -37,6 +40,9 @@ static int udf_uni2char_utf8(wchar_t uni,if (boundlen <=0 )return -ENAMETOOLONG ; +if ((uni &SURROGATE_MASK ) ==SURROGATE_PAIR ) +return -EINVAL ; +if (uni <0x80 ) { out[u_len++] = (unsigned char )uni; }else if (uni <0x800 ) {
include/dt-bindings/clock/mt2701-clk.h +2 -1
@@ -176,7 +176,8 @@#define CLK_TOP_AUD_EXT1 156#define CLK_TOP_AUD_EXT2 157#define CLK_TOP_NFI1X_PAD 158 -#define CLK_TOP_NR 159 +#define CLK_TOP_AXISEL_D4 159 +#define CLK_TOP_NR 160/* APMIXEDSYS */
include/linux/backing-dev-defs.h +5 -0
@@ -191,6 +191,11 @@ static inline void set_bdi_congested(struct backing_dev_info *bdi, int sync)set_wb_congested (bdi->wb.congested, sync); } +struct wb_lock_cookie { +bool locked; +unsigned long flags; +}; +#ifdef CONFIG_CGROUP_WRITEBACK /**
include/linux/backing-dev.h +16 -14
@@ -366,7 +366,7 @@ static inline struct bdi_writeback *inode_to_wb(struct inode *inode)/** * unlocked_inode_to_wb_begin - begin unlocked inode wb access transaction * @inode: target inode -* @lockedp: temp bool output param, to be passed to the end function +* @cookie: output param, to be passed to the end function * * The caller wants to access the wb associated with @inode but isn't * holding inode->i_lock, mapping->tree_lock or wb->list_lock. This
@@ -374,12 +374,12 @@ static inline struct bdi_writeback *inode_to_wb(struct inode *inode)* association doesn't change until the transaction is finished with * unlocked_inode_to_wb_end(). * -* The caller must call unlocked_inode_to_wb_end() with *@lockdep -* afterwards and can't sleep during transaction. IRQ may or may not be -* disabled on return. +* The caller must call unlocked_inode_to_wb_end() with *@cookie afterwards and +* can't sleep during the transaction. IRQs may or may not be disabled on +* return. */ static inline struct bdi_writeback * -unlocked_inode_to_wb_begin (struct inode *inode,bool *lockedp) +unlocked_inode_to_wb_begin (struct inode *inode,struct wb_lock_cookie *cookie) {rcu_read_lock ();
@@ -387,10 +387,10 @@ unlocked_inode_to_wb_begin(struct inode *inode, bool *lockedp)* Paired with store_release in inode_switch_wb_work_fn() and * ensures that we see the new wb if we see cleared I_WB_SWITCH. */ - *lockedp =smp_load_acquire (&inode->i_state) &I_WB_SWITCH ; + cookie->locked =smp_load_acquire (&inode->i_state) &I_WB_SWITCH ; -if (unlikely (*lockedp)) -spin_lock_irq (&inode->i_mapping->tree_lock); +if (unlikely (cookie->locked)) +spin_lock_irqsave (&inode->i_mapping->tree_lock, cookie->flags);/* * Protected by either !I_WB_SWITCH + rcu_read_lock() or tree_lock.
@@ -402,12 +402,13 @@ unlocked_inode_to_wb_begin(struct inode *inode, bool *lockedp)/** * unlocked_inode_to_wb_end - end inode wb access transaction * @inode: target inode -* @locked: *@lockedp from unlocked_inode_to_wb_begin() +* @cookie: @cookie from unlocked_inode_to_wb_begin() */ -static inline void unlocked_inode_to_wb_end (struct inode *inode,bool locked) +static inline void unlocked_inode_to_wb_end (struct inode *inode, +struct wb_lock_cookie *cookie) { -if (unlikely (locked)) -spin_unlock_irq (&inode->i_mapping->tree_lock); +if (unlikely (cookie->locked)) +spin_unlock_irqrestore (&inode->i_mapping->tree_lock, cookie->flags);rcu_read_unlock (); }
@@ -454,12 +455,13 @@ static inline struct bdi_writeback *inode_to_wb(struct inode *inode) }static inline struct bdi_writeback * -unlocked_inode_to_wb_begin (struct inode *inode,bool *lockedp) +unlocked_inode_to_wb_begin (struct inode *inode,struct wb_lock_cookie *cookie) {return inode_to_wb (inode); } -static inline void unlocked_inode_to_wb_end (struct inode *inode,bool locked) +static inline void unlocked_inode_to_wb_end (struct inode *inode, +struct wb_lock_cookie *cookie) { }
include/linux/hid.h +3 -3
@@ -801,7 +801,7 @@ extern int hidinput_connect(struct hid_device *hid, unsigned int force);extern void hidinput_disconnect (struct hid_device *);int hid_set_field (struct hid_field *,unsigned ,__s32 ); -int hid_input_report (struct hid_device *,int type,u8 *,int ,int ); +int hid_input_report (struct hid_device *,int type,u8 *,u32 ,int );int hidinput_find_field (struct hid_device *hid,unsigned int type,unsigned int code,struct hid_field **field);struct hid_field *hidinput_get_led_field (struct hid_device *hid);unsigned int hidinput_count_leds (struct hid_device *hid);
@@ -1106,13 +1106,13 @@ static inline void hid_hw_wait(struct hid_device *hdev)* * @report: the report we want to know the length */ -static inline int hid_report_len (struct hid_report *report) +static inline u32 hid_report_len (struct hid_report *report) {/* equivalent to DIV_ROUND_UP(report->size, 8) + !!(report->id > 0) */ return ((report->size -1 ) >>3 ) +1 + (report->id >0 ); } -int hid_report_raw_event (struct hid_device *hid,int type,u8 *data,int size, +int hid_report_raw_event (struct hid_device *hid,int type,u8 *data,u32 size,int interrupt);/* HID quirks API */
include/linux/tty.h +1 -0
@@ -355,6 +355,7 @@ struct tty_file_private {#define TTY_PTY_LOCK 16/* pty private */ #define TTY_NO_WRITE_SPLIT 17/* Preserve write boundaries to driver */ #define TTY_HUPPED 18/* Post driver->hangup() */ +#define TTY_HUPPING 19/* Hangup in progress */ #define TTY_LDISC_HALTED 22/* Line discipline is halted */ /* Values for tty->flow_change */
include/sound/pcm_oss.h +1 -0
@@ -57,6 +57,7 @@ struct snd_pcm_oss_runtime {char *buffer;/* vmallocated period */ size_t buffer_used;/* used length from period buffer */ struct mutex params_lock; +atomic_t rw_ref;/* concurrent read/write accesses */ #ifdef CONFIG_SND_PCM_OSS_PLUGINS struct snd_pcm_plugin *plugin_first;struct snd_pcm_plugin *plugin_last;
include/uapi/linux/random.h +3 -0
@@ -34,6 +34,9 @@/* Clear the entropy pool and associated counters. (Superuser only.) */ #define RNDCLEARPOOL _IO( 'R', 0x06 ) +/* Reseed CRNG. (Superuser only.) */ +#define RNDRESEEDCRNG _IO( 'R', 0x07 ) +struct rand_pool_info {int entropy_count;int buf_size;
ipc/shm.c +20 -3
@@ -198,6 +198,12 @@ static int __shm_open(struct vm_area_struct *vma)if (IS_ERR (shp))return PTR_ERR (shp); +if (shp->shm_file != sfd->file) { +/* ID was reused */ +shm_unlock (shp); +return -EINVAL ; + } + shp->shm_atim =get_seconds (); shp->shm_lprid =task_tgid_vnr (current); shp->shm_nattch++;
@@ -425,8 +431,9 @@ static int shm_mmap(struct file *file, struct vm_area_struct *vma)int ret;/* -* In case of remap_file_pages() emulation, the file can represent -* removed IPC ID: propogate shm_lock() error to caller. +* In case of remap_file_pages() emulation, the file can represent an +* IPC ID that was removed, and possibly even reused by another shm +* segment already. Propagate this case as an error to caller. */ ret =__shm_open (vma);if (ret)
@@ -450,6 +457,7 @@ static int shm_release(struct inode *ino, struct file *file)struct shm_file_data *sfd =shm_file_data (file);put_ipc_ns (sfd->ns); +fput (sfd->file);shm_file_data (file) =NULL ;kfree (sfd);return 0 ;
@@ -1212,7 +1220,16 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, file->f_mapping = shp->shm_file->f_mapping; sfd->id = shp->shm_perm.id; sfd->ns =get_ipc_ns (ns); - sfd->file = shp->shm_file; +/* +* We need to take a reference to the real shm file to prevent the +* pointer from becoming stale in cases where the lifetime of the outer +* file extends beyond that of the shm segment. It's not usually +* possible, but it can happen during remap_file_pages() emulation as +* that unmaps the memory, then does ->mmap() via file reference only. +* We'll deny the ->mmap() if the shm segment was since removed, but to +* detect shm ID reuse we need to compare the file pointers. +*/ + sfd->file =get_file (shp->shm_file); sfd->vm_ops =NULL ; err =security_mmap_file (file, prot, flags);
kernel/resource.c +2 -1
@@ -633,7 +633,8 @@ static int __find_resource(struct resource *root, struct resource *old, alloc.start = constraint->alignf (constraint->alignf_data, &avail, size, constraint->align); alloc.end = alloc.start + size -1 ; -if (resource_contains (&avail, &alloc)) { +if (alloc.start <= alloc.end && +resource_contains (&avail, &alloc)) { new->start = alloc.start; new->end = alloc.end;return 0 ;
mm/filemap.c +4 -5
@@ -616,7 +616,7 @@ int replace_page_cache_page(struct page *old, struct page *new, gfp_t gfp_mask)VM_BUG_ON_PAGE (!PageLocked (new), new);VM_BUG_ON_PAGE (new->mapping, new); - error =radix_tree_preload (gfp_mask & ~__GFP_HIGHMEM); + error =radix_tree_preload (gfp_mask &GFP_RECLAIM_MASK );if (!error) {struct address_space *mapping = old->mapping;void (*freepage)(struct page *);
@@ -672,7 +672,7 @@ static int __add_to_page_cache_locked(struct page *page,return error; } - error =radix_tree_maybe_preload (gfp_mask & ~__GFP_HIGHMEM); + error =radix_tree_maybe_preload (gfp_mask &GFP_RECLAIM_MASK );if (error) {if (!huge)mem_cgroup_cancel_charge (page, memcg, false);
@@ -1247,8 +1247,7 @@ struct page *pagecache_get_page(struct address_space *mapping, pgoff_t offset,if (fgp_flags &FGP_ACCESSED )__SetPageReferenced (page); - err =add_to_page_cache_lru (page, mapping, offset, - gfp_mask &GFP_RECLAIM_MASK ); + err =add_to_page_cache_lru (page, mapping, offset, gfp_mask);if (unlikely (err)) {put_page (page); page =NULL ;
@@ -1996,7 +1995,7 @@ static int page_cache_read(struct file *file, pgoff_t offset, gfp_t gfp_mask)if (!page)return -ENOMEM ; - ret =add_to_page_cache_lru (page, mapping, offset, gfp_mask &GFP_KERNEL ); + ret =add_to_page_cache_lru (page, mapping, offset, gfp_mask);if (ret ==0 ) ret = mapping->a_ops->readpage (file, page);else if (ret == -EEXIST )
mm/page-writeback.c +9 -9
@@ -2506,13 +2506,13 @@ void account_page_redirty(struct page *page)if (mapping &&mapping_cap_account_dirty (mapping)) {struct inode *inode = mapping->host;struct bdi_writeback *wb; -bool locked; +struct wb_lock_cookie cookie = {}; - wb =unlocked_inode_to_wb_begin (inode, &locked); + wb =unlocked_inode_to_wb_begin (inode, &cookie); current->nr_dirtied--;dec_node_page_state (page,NR_DIRTIED );dec_wb_stat (wb,WB_DIRTIED ); -unlocked_inode_to_wb_end (inode, locked); +unlocked_inode_to_wb_end (inode, &cookie); } }EXPORT_SYMBOL (account_page_redirty);
@@ -2618,15 +2618,15 @@ void cancel_dirty_page(struct page *page)if (mapping_cap_account_dirty (mapping)) {struct inode *inode = mapping->host;struct bdi_writeback *wb; -bool locked; +struct wb_lock_cookie cookie = {};lock_page_memcg (page); - wb =unlocked_inode_to_wb_begin (inode, &locked); + wb =unlocked_inode_to_wb_begin (inode, &cookie);if (TestClearPageDirty (page))account_page_cleaned (page, mapping, wb); -unlocked_inode_to_wb_end (inode, locked); +unlocked_inode_to_wb_end (inode, &cookie);unlock_page_memcg (page); }else {ClearPageDirty (page);
@@ -2658,7 +2658,7 @@ int clear_page_dirty_for_io(struct page *page)if (mapping &&mapping_cap_account_dirty (mapping)) {struct inode *inode = mapping->host;struct bdi_writeback *wb; -bool locked; +struct wb_lock_cookie cookie = {};/* * Yes, Virginia, this is indeed insane.
@@ -2695,7 +2695,7 @@ int clear_page_dirty_for_io(struct page *page)* always locked coming in here, so we get the desired * exclusion. */ - wb =unlocked_inode_to_wb_begin (inode, &locked); + wb =unlocked_inode_to_wb_begin (inode, &cookie);if (TestClearPageDirty (page)) {mem_cgroup_dec_page_stat (page,MEM_CGROUP_STAT_DIRTY );dec_node_page_state (page,NR_FILE_DIRTY );
@@ -2703,7 +2703,7 @@ int clear_page_dirty_for_io(struct page *page)dec_wb_stat (wb,WB_RECLAIMABLE ); ret =1 ; } -unlocked_inode_to_wb_end (inode, locked); +unlocked_inode_to_wb_end (inode, &cookie);return ret; }return TestClearPageDirty (page);
mm/slab.c +2 -1
@@ -4096,7 +4096,8 @@ static void cache_reap(struct work_struct *w)next_reap_node (); out:/* Set up the next iteration */ -schedule_delayed_work (work,round_jiffies_relative (REAPTIMEOUT_AC )); +schedule_delayed_work_on (smp_processor_id (), work, +round_jiffies_relative (REAPTIMEOUT_AC )); }#ifdef CONFIG_SLABINFO
net/sunrpc/rpc_pipe.c +1 -0
@@ -1375,6 +1375,7 @@ rpc_gssd_dummy_depopulate(struct dentry *pipe_dentry)struct dentry *clnt_dir = pipe_dentry->d_parent;struct dentry *gssd_dir = clnt_dir->d_parent; +dget (pipe_dentry);__rpc_rmpipe (d_inode (clnt_dir), pipe_dentry);__rpc_depopulate (clnt_dir, gssd_dummy_info_file,0 ,1 );__rpc_depopulate (gssd_dir, gssd_dummy_clnt_dir,0 ,1 );
sound/core/oss/pcm_oss.c +150 -36
409 lines not on this page · raw message
sound/core/pcm.c +7 -1
@@ -28,6 +28,7 @@#include <sound/core.h> #include <sound/minors.h> #include <sound/pcm.h> +#include <sound/timer.h> #include <sound/control.h> #include <sound/info.h>
@@ -1025,8 +1026,13 @@ void snd_pcm_detach_substream(struct snd_pcm_substream *substream)snd_free_pages ((void *)runtime->control,PAGE_ALIGN (sizeof (struct snd_pcm_mmap_control )));kfree (runtime->hw_constraints.rules); -kfree (runtime); +/* Avoid concurrent access to runtime via PCM timer interface */ +if (substream->timer) +spin_lock_irq (&substream->timer->lock); substream->runtime =NULL ; +if (substream->timer) +spin_unlock_irq (&substream->timer->lock); +kfree (runtime);put_pid (substream->pid); substream->pid =NULL ; substream->pstr->substream_opened--;
sound/core/rawmidi_compat.c +12 -6
@@ -36,8 +36,6 @@ static int snd_rawmidi_ioctl_params_compat(struct snd_rawmidi_file *rfile,struct snd_rawmidi_params params;unsigned int val; -if (rfile->output ==NULL ) -return -EINVAL ; if (get_user(params.stream, &src->stream) || get_user(params.buffer_size, &src->buffer_size) || get_user(params.avail_min, &src->avail_min) ||
@@ -46,8 +44,12 @@ static int snd_rawmidi_ioctl_params_compat(struct snd_rawmidi_file *rfile, params.no_active_sensing = val;switch (params.stream) {case SNDRV_RAWMIDI_STREAM_OUTPUT : +if (!rfile->output) +return -EINVAL ;return snd_rawmidi_output_params (rfile->output, ¶ms);case SNDRV_RAWMIDI_STREAM_INPUT : +if (!rfile->input) +return -EINVAL ;return snd_rawmidi_input_params (rfile->input, ¶ms); }return -EINVAL ;
@@ -67,16 +69,18 @@ static int snd_rawmidi_ioctl_status_compat(struct snd_rawmidi_file *rfile,int err;struct snd_rawmidi_status status; -if (rfile->output ==NULL ) -return -EINVAL ;if (get_user (status.stream, &src->stream))return -EFAULT ;switch (status.stream) {case SNDRV_RAWMIDI_STREAM_OUTPUT : +if (!rfile->output) +return -EINVAL ; err =snd_rawmidi_output_status (rfile->output, &status);break ;case SNDRV_RAWMIDI_STREAM_INPUT : +if (!rfile->input) +return -EINVAL ; err =snd_rawmidi_input_status (rfile->input, &status);break ;default :
@@ -112,16 +116,18 @@ static int snd_rawmidi_ioctl_status_x32(struct snd_rawmidi_file *rfile,int err;struct snd_rawmidi_status status; -if (rfile->output ==NULL ) -return -EINVAL ;if (get_user (status.stream, &src->stream))return -EFAULT ;switch (status.stream) {case SNDRV_RAWMIDI_STREAM_OUTPUT : +if (!rfile->output) +return -EINVAL ; err =snd_rawmidi_output_status (rfile->output, &status);break ;case SNDRV_RAWMIDI_STREAM_INPUT : +if (!rfile->input) +return -EINVAL ; err =snd_rawmidi_input_status (rfile->input, &status);break ;default :
sound/pci/hda/hda_intel.c +2 -1
@@ -1514,7 +1514,8 @@ static void azx_check_snoop_available(struct azx *chip)*/ u8 val;pci_read_config_byte (chip->pci,0x42 , &val); -if (!(val &0x80 ) && chip->pci->revision ==0x30 ) +if (!(val &0x80 ) && (chip->pci->revision ==0x30 || + chip->pci->revision ==0x20 )) snoop = false; }
sound/soc/codecs/ssm2602.c +13 -6
@@ -54,10 +54,17 @@ struct ssm2602_priv {* using 2 wire for device control, so we cache them instead. * There is no point in caching the reset register */ -static const u16 ssm2602_reg[SSM2602_CACHEREGNUM ] = { -0x0097 ,0x0097 ,0x0079 ,0x0079 , -0x000a ,0x0008 ,0x009f ,0x000a , -0x0000 ,0x0000 +static const struct reg_default ssm2602_reg[SSM2602_CACHEREGNUM ] = { + { .reg =0x00 , .def =0x0097 }, + { .reg =0x01 , .def =0x0097 }, + { .reg =0x02 , .def =0x0079 }, + { .reg =0x03 , .def =0x0079 }, + { .reg =0x04 , .def =0x000a }, + { .reg =0x05 , .def =0x0008 }, + { .reg =0x06 , .def =0x009f }, + { .reg =0x07 , .def =0x000a }, + { .reg =0x08 , .def =0x0000 }, + { .reg =0x09 , .def =0x0000 } };
@@ -620,8 +627,8 @@ const struct regmap_config ssm2602_regmap_config = { .volatile_reg = ssm2602_register_volatile, .cache_type = REGCACHE_RBTREE, - .reg_defaults_raw = ssm2602_reg, - .num_reg_defaults_raw = ARRAY_SIZE(ssm2602_reg), + .reg_defaults = ssm2602_reg, + .num_reg_defaults = ARRAY_SIZE(ssm2602_reg), };EXPORT_SYMBOL_GPL (ssm2602_regmap_config);
sound/usb/line6/midi.c +1 -1
@@ -125,7 +125,7 @@ static int send_midi_async(struct usb_line6 *line6, unsigned char *data, }usb_fill_int_urb (urb, line6->usbdev, -usb_sndbulkpipe (line6->usbdev, +usb_sndintpipe (line6->usbdev, line6->properties->ep_ctrl_w), transfer_buffer, length, midi_sent, line6, line6->interval);