1. 18 6月, 2019 11 次提交
  2. 13 6月, 2019 1 次提交
  3. 11 6月, 2019 13 次提交
  4. 05 6月, 2019 1 次提交
    • B
      Revert "consolemap: Fix a memory leaking bug in drivers/tty/vt/consolemap.c" · 15b3cd8e
      Ben Hutchings 提交于
      This reverts commit 84ecc2f6.
      
      con_insert_unipair() is working with a sparse 3-dimensional array:
      
      - p->uni_pgdir[] is the top layer
      - p1 points to a middle layer
      - p2 points to a bottom layer
      
      If it needs to allocate a new middle layer, and then fails to allocate
      a new bottom layer, it would previously free only p2, and now it frees
      both p1 and p2.  But since the new middle layer was already registered
      in the top layer, it was not leaked.
      
      However, if it looks up an *existing* middle layer and then fails to
      allocate a bottom layer, it now frees both p1 and p2 but does *not*
      free any other bottom layers under p1.  So it *introduces* a memory
      leak.
      
      The error path also cleared the wrong index in p->uni_pgdir[],
      introducing a use-after-free.
      Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
      Fixes: 84ecc2f6 ("consolemap: Fix a memory leaking bug in drivers/tty/vt/consolemap.c")
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      15b3cd8e
  5. 24 5月, 2019 13 次提交
  6. 21 5月, 2019 1 次提交
    • J
      tty: max310x: Fix external crystal register setup · 5d24f455
      Joe Burmeister 提交于
      The datasheet states:
      
        Bit 4: ClockEnSet the ClockEn bit high to enable an external clocking
      (crystal or clock generator at XIN). Set the ClockEn bit to 0 to disable
      clocking
        Bit 1: CrystalEnSet the CrystalEn bit high to enable the crystal
      oscillator. When using an external clock source at XIN, CrystalEn must
      be set low.
      
      The bit 4, MAX310X_CLKSRC_EXTCLK_BIT, should be set and was not.
      
      This was required to make the MAX3107 with an external crystal on our
      board able to send or receive data.
      Signed-off-by: NJoe Burmeister <joe.burmeister@devtank.co.uk>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5d24f455