1. 15 2月, 2014 1 次提交
    • B
      mtd: nand: fix off-by-one read retry mode counting · 28fa65e6
      Brian Norris 提交于
      A flash may support N read retry voltage threshold modes, numbered 0
      through N-1 (where mode 0 represents the initial state). However,
      nand_do_read_ops() tries to use mode 0 through N.
      
      This off-by-one error shows up, for instance, when using nanddump, and
      we have cycled through available modes:
      
          nand: setting READ RETRY mode 0
          nand: setting READ RETRY mode 1
          nand: setting READ RETRY mode 2
          nand: setting READ RETRY mode 3
          nand: setting READ RETRY mode 4
          nand: setting READ RETRY mode 5
          nand: setting READ RETRY mode 6
          nand: setting READ RETRY mode 7
          nand: setting READ RETRY mode 8
          libmtd: error!: cannot read 8192 bytes from mtd0 (eraseblock 20, offset 0)
                  error 22 (Invalid argument)
          nanddump: error!: mtd_read
      
      Tested on Micron MT29F64G08CBCBBH1, with 8 retry modes.
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Acked-by: NHuang Shijie <b32955@freescale.com>
      28fa65e6
  2. 10 2月, 2014 1 次提交
    • A
      fix a kmap leak in virtio_console · c9efe511
      Al Viro 提交于
      While we are at it, don't do kmap() under kmap_atomic(), *especially*
      for a page we'd allocated with GFP_KERNEL.  It's spelled "page_address",
      and had that been more than that, we'd have a real trouble - kmap_high()
      can block, and doing that while holding kmap_atomic() is a Bad Idea(tm).
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      c9efe511
  3. 08 2月, 2014 1 次提交
  4. 07 2月, 2014 1 次提交
  5. 06 2月, 2014 4 次提交
  6. 05 2月, 2014 18 次提交
  7. 04 2月, 2014 14 次提交