1. Aug 26, 2021
  2. Aug 20, 2021
  3. Aug 18, 2021
  4. Aug 11, 2021
  5. Aug 04, 2021
    • Sergey Shtylyov's avatar
      i2c: highlander: add IRQ check · f16a3bb6
      Sergey Shtylyov authored
      The driver is written as if platform_get_irq() returns 0 on errors (while
      actually it returns a negative error code), blithely passing these error
      codes to request_irq() (which takes *unsigned* IRQ #) -- which fails with
      -EINVAL. Add the necessary error check to the pre-existing *if* statement
      forcing the driver into the polling mode...
      
      Fixes: 4ad48e6a
      
       ("i2c: Renesas Highlander FPGA SMBus support")
      Signed-off-by: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      f16a3bb6
  6. Jul 28, 2021
    • Heiner Kallweit's avatar
      i2c: i801: Fix handling SMBHSTCNT_PEC_EN · a6b8bb6a
      Heiner Kallweit authored
      
      
      Bit SMBHSTCNT_PEC_EN is used only if software calculates the CRC and
      uses register SMBPEC. This is not supported by the driver, it supports
      hw-calculation of CRC only (using bit SMBAUXSTS_CRCE). The chip spec
      states the following, therefore never set bit SMBHSTCNT_PEC_EN.
      
      Chapter SMBus CRC Generation and Checking
      If the AAC bit is set in the Auxiliary Control register, the PCH
      automatically calculates and drives CRC at the end of the transmitted
      packet for write cycles, and will check the CRC for read cycles. It will
      not transmit the contents of the PEC register for CRC. The PEC bit must
      not be set in the Host Control register. If this bit is set, unspecified
      behavior will result.
      
      This patch is based solely on the specification and compile-tested only,
      because I have no PEC-capable devices.
      
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Tested-by: default avatarJean Delvare <jdelvare@suse.de>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      a6b8bb6a
  7. Jul 26, 2021
  8. Jul 25, 2021
    • Linus Torvalds's avatar
      Merge tag '5.14-rc2-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · d8079fac
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Five cifs/smb3 fixes, including a DFS failover fix, two fallocate
        fixes, and two trivial coverity cleanups"
      
      * tag '5.14-rc2-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: fix fallocate when trying to allocate a hole.
        CIFS: Clarify SMB1 code for POSIX delete file
        CIFS: Clarify SMB1 code for POSIX Create
        cifs: support share failover when remounting
        cifs: only write 64kb at a time when fallocating a small region of a file
      d8079fac
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.14-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 6498f615
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - properly set the memory size, which fixes 32-bit systems
      
       - allow initrd to load anywhere in memory, rather that restricting it
         to the first 256MiB
      
       - fix the 'mem=' parameter on 64-bit systems to properly account for
         the maximum supported memory now that the kernel is outside the
         linear map
      
       - avoid installing mappings into the last 4KiB of memory, which
         conflicts with error values
      
       - avoid the stack from being freed while it is being walked
      
       - a handful of fixes to the new copy to/from user routines
      
      * tag 'riscv-for-linus-5.14-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: __asm_copy_to-from_user: Fix: Typos in comments
        riscv: __asm_copy_to-from_user: Remove unnecessary size check
        riscv: __asm_copy_to-from_user: Fix: fail on RV32
        riscv: __asm_copy_to-from_user: Fix: overrun copy
        riscv: stacktrace: pin the task's stack in get_wchan
        riscv: Make sure the kernel mapping does not overlap with IS_ERR_VALUE
        riscv: Make sure the linear mapping does not use the kernel mapping
        riscv: Fix memory_limit for 64-bit kernel
        RISC-V: load initrd wherever it fits into memory
        riscv: Fix 32-bit RISC-V boot failure
      6498f615
    • Linus Torvalds's avatar
      ACPI: fix NULL pointer dereference · fc68f42a
      Linus Torvalds authored
      Commit 71f64283 ("ACPI: utils: Fix reference counting in
      for_each_acpi_dev_match()") started doing "acpi_dev_put()" on a pointer
      that was possibly NULL.  That fails miserably, because that helper
      inline function is not set up to handle that case.
      
      Just make acpi_dev_put() silently accept a NULL pointer, rather than
      calling down to put_device() with an invalid offset off that NULL
      pointer.
      
      Link: https://lore.kernel.org/lkml/a607c149-6bf6-0fd0-0e31-100378504da2@kernel.dk/
      
      
      Reported-and-tested-by: default avatarJens Axboe <axboe@kernel.dk>
      Tested-by: default avatarDaniel Scally <djrscally@gmail.com>
      Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fc68f42a
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 7ffca2bb
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Four fixes, all in drivers, all of which can lead to user visible
        problems in certain situations"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: target: Fix NULL dereference on XCOPY completion
        scsi: mpt3sas: Transition IOC to Ready state during shutdown
        scsi: target: Fix protect handling in WRITE SAME(32)
        scsi: iscsi: Fix iface sysfs attr detection
      7ffca2bb
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.14-2021-07-24' of git://git.kernel.dk/linux-block · 0ee818c3
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Fix a memory leak due to a race condition in io_init_wq_offload
         (Yang)
      
       - Poll error handling fixes (Pavel)
      
       - Fix early fdput() regression (me)
      
       - Don't reissue iopoll requests off release path (me)
      
       - Add a safety check for io-wq queue off wrong path (me)
      
      * tag 'io_uring-5.14-2021-07-24' of git://git.kernel.dk/linux-block:
        io_uring: explicitly catch any illegal async queue attempt
        io_uring: never attempt iopoll reissue from release path
        io_uring: fix early fdput() of file
        io_uring: fix memleak in io_init_wq_offload()
        io_uring: remove double poll entry on arm failure
        io_uring: explicitly count entries for poll reqs
      0ee818c3