1. 09 Jan, 2012 4 commits
  2. 09 Dec, 2011 1 commit
    • Magnus Damm's avatar
      sh: pfc: ioremap() support · b0e10211
      Magnus Damm authored
      Add support for non-entity mapped PFC registers through
      the use of struct resource and ioremap()/iounmap().
      
      The PFC main data structure gets updated with a pointer
      to a struct resources array that point out all register
      windows used by the PFC instance. The register definitions
      are kept as physical addresses but the PFC code will do
      transparent conversion into virtual addresses whenever
      register windows are specified using with struct resource.
      
      To introduce as little performance penalty as possible the
      virtual address of each data register is cached in memory.
      The virtual address of each configuration register is however
      calculated during run time. This because the configuration
      is considered slow path so focus is instead put on keeping
      memory foot print as small as possible.
      
      The PFC register access  code is in this patch updated from
      __raw_readN() / __raw_writeN() into ioreadN() / iowriteN().
      
      This patch is needed to support the PFC block in r8a7779.
      Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      b0e10211
  3. 29 Nov, 2011 3 commits
  4. 28 Nov, 2011 11 commits
  5. 27 Nov, 2011 5 commits
  6. 26 Nov, 2011 5 commits
  7. 25 Nov, 2011 2 commits
    • Lars-Peter Clausen's avatar
      hwmon: Remove redundant spi driver bus initialization · b52fabca
      Lars-Peter Clausen authored
      In ancient times it was necessary to manually initialize the bus field of an
      spi_driver to spi_bus_type. These days this is done in spi_register_driver(),
      so we can drop the manual assignment.
      
      The patch was generated using the following coccinelle semantic patch:
      // <smpl>
      @@
      identifier _driver;
      @@
      struct spi_driver _driver = {
      	.driver = {
      -		.bus = &spi_bus_type,
      	},
      };
      // </smpl>
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: lm-sensors@lm-sensors.org
      Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
      b52fabca
    • Tejun Heo's avatar
      ext4: fix racy use-after-free in ext4_end_io_dio() · 4c81f045
      Tejun Heo authored
      ext4_end_io_dio() queues io_end->work and then clears iocb->private;
      however, io_end->work calls aio_complete() which frees the iocb
      object.  If that slab object gets reallocated, then ext4_end_io_dio()
      can end up clearing someone else's iocb->private, this use-after-free
      can cause a leak of a struct ext4_io_end_t structure.
      
      Detected and tested with slab poisoning.
      
      [ Note: Can also reproduce using 12 fio's against 12 file systems with the
        following configuration file:
      
        [global]
        direct=1
        ioengine=libaio
        iodepth=1
        bs=4k
        ba=4k
        size=128m
      
        [create]
        filename=${TESTDIR}
        rw=write
      
        -- tytso ]
      
      Google-Bug-Id: 5354697
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      Reported-by: default avatarKent Overstreet <koverstreet@google.com>
      Tested-by: default avatarKent Overstreet <koverstreet@google.com>
      Cc: stable@kernel.org
      4c81f045
  8. 24 Nov, 2011 9 commits