1. 30 Mar, 2018 1 commit
  2. 29 Mar, 2018 4 commits
    • Linus Walleij's avatar
      mtd: jedec_probe: Fix crash in jedec_read_mfr() · 87a73eb5
      Linus Walleij authored
      It turns out that the loop where we read manufacturer
      jedec_read_mfd() can under some circumstances get a
      CFI_MFR_CONTINUATION repeatedly, making the loop go
      over all banks and eventually hit the end of the
      map and crash because of an access violation:
      
      Unable to handle kernel paging request at virtual address c4980000
      pgd = (ptrval)
      [c4980000] *pgd=03808811, *pte=00000000, *ppte=00000000
      Internal error: Oops: 7 [#1] PREEMPT ARM
      CPU: 0 PID: 1 Comm: swapper Not tainted 4.16.0-rc1+ #150
      Hardware name: Gemini (Device Tree)
      PC is at jedec_probe_chip+0x6ec/0xcd0
      LR is at 0x4
      pc : [<c03a2bf4>]    lr : [<00000004>]    psr: 60000013
      sp : c382dd18  ip : 0000ffff  fp : 00000000
      r10: c0626388  r9 : 00020000  r8 : c0626340
      r7 : 00000000  r6 : 00000001  r5 : c3a71afc  r4 : c382dd70
      r3 : 00000001  r2 : c4900000  r1 : 00000002  r0 : 00080000
      Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
      Control: 0000397f  Table: 00004000  DAC: 00000053
      Process swapper (pid: 1, stack limit = 0x(ptrval))
      
      Fix this by breaking the loop with a return 0 if
      the offset exceeds the map size.
      
      Fixes: 5c9c11e1 ("[MTD] [NOR] Add support for flash chips with ID in bank other than 0")
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
      87a73eb5
    • Boris Brezillon's avatar
      mtd: nand: atmel: Fix get_sectorsize() function · 2b1b1b4a
      Boris Brezillon authored
      get_sectorsize() was not using the appropriate macro to extract the
      ECC sector size from the config cache, which led to buggy ECC when
      using 1024 byte sectors.
      
      Fixes: f88fc122 ("mtd: nand: Cleanup/rework the atmel_nand driver")
      Cc: <stable@vger.kernel.org>
      Reported-by: default avatarOlivier Schonken <olivier.schonken@gmail.com>
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
      Reviewed-by: default avatarRichard Weinberger <richard@nod.at>
      Acked-by: default avatarNicolas Ferre <nicolas.ferre@microchip.com>
      Tested-by: default avatarOlivier Schonken <olivier.schonken@gmail.com>
      2b1b1b4a
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-for-v4.16-rc8' of git://people.freedesktop.org/~airlied/linux · 0b412605
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Nothing serious, two amdkfd and two tegra fixes"
      
      * tag 'drm-fixes-for-v4.16-rc8' of git://people.freedesktop.org/~airlied/linux:
        drm/tegra: dc: Using NULL instead of plain integer
        drm/amdkfd: Deallocate SDMA queues correctly
        drm/amdkfd: Fix scratch memory with HWS enabled
        drm/tegra: dc: Use correct format array for Tegra124
      0b412605
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 68b8dffc
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "8 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        MAINTAINERS: demote ARM port to "odd fixes"
        MAINTAINERS: correct rmk's email address
        mm/kmemleak.c: wait for scan completion before disabling free
        mm/memcontrol.c: fix parameter description mismatch
        mm/vmstat.c: fix vmstat_update() preemption BUG
        mm/page_owner: fix recursion bug after changing skip entries
        ipc/shm.c: add split function to shm_vm_ops
        mm, slab: memcg_link the SLAB's kmem_cache
      68b8dffc
  3. 28 Mar, 2018 14 commits
  4. 27 Mar, 2018 4 commits
  5. 25 Mar, 2018 11 commits
  6. 24 Mar, 2018 5 commits
  7. 23 Mar, 2018 1 commit