1. 11 Nov, 2009 4 commits
    • Linus Torvalds's avatar
      Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · 16fe4101
      Linus Torvalds authored
      * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: partial revert to fix double brelse WARNING()
        ext4: Fix return value of ext4_split_unwritten_extents() to fix direct I/O
        ext4: code clean up for dio fallocate handling
        ext4: skip conversion of uninit extents after direct IO if there isn't any
        ext4: fix ext4_ext_direct_IO()'s return value after converting uninit extents
        ext4: discard preallocation when restarting a transaction during truncate
      16fe4101
    • Linus Torvalds's avatar
      7bbf8ef6
    • Linus Torvalds's avatar
      Merge branch 'fixes-s3c-2632-rc6' of git://git.fluff.org/bjdooks/linux · 1ed23743
      Linus Torvalds authored
      * 'fixes-s3c-2632-rc6' of git://git.fluff.org/bjdooks/linux:
        ARM: S3C64XX: DMA: Free node for non-circular queues
        ARM: S3C64XX: DMA: Callback with correct buffer pointer
        ARM: S3C64XX: DMA: Make src and dst transfer size same
        ARM: S3C64XX: DMA: Unify callback functions for success/failure
        ARM: S3C64XX: DMA: Protect buffer pointers while manipulation
        ARM: S3C64XX: Tidy definition and comments in s3c_dma_has_circular()
        ARM: S3C64XX: Remove duplicate s3c_dma_has_circular() definition for S3C64xx.
        ARM: SMDK6410: Allocate more GPIO space for WM1190-EV1
        ARM: SMDK6410: Configure GPIO pull up for WM835x IRQ line
      1ed23743
    • Linus Torvalds's avatar
      Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · a544de2e
      Linus Torvalds authored
      * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (27 commits)
        V4L/DVB (13314): saa7134: set ts_force_val for the Hauppauge WinTV HVR-1150
        V4L/DVB (13313): saa7134: add support for FORCE_TS_VALID mode for mpeg ts input
        V4L/DVB (13311): uvcvideo: Fix compilation warning with 2.6.32 due to type mismatch with abs()
        V4L/DVB (13309): uvcvideo: Ignore the FIX_BANDWIDTH for compressed video
        V4L/DVB (13287): ce6230 - saa7164-cmd: Fix wrong sizeof
        V4L/DVB (13286): pxa-camera: Fix missing sched.h
        V4L/DVB (13264): gspca_mr97310a: Change vstart for CIF sensor type 1 cams
        V4L/DVB (13257): gspca - m5602-s5k4aa: Add vflip for Fujitsu Amilo Xi 2528
        V4L/DVB (13256): gspca - m5602-s5k4aa: Add another MSI GX700 vflip quirk
        V4L/DVB (13255): gspca - m5602-s5k4aa: Add vflip quirk for the Bruneinit laptop
        V4L/DVB (13240): firedtv: fix regression: tuning fails due to bogus error return
        V4L/DVB (13237): firedtv: length field corrupt in ca2host if length>127
        V4L/DVB (13230): s2255drv: Don't conditionalize video buffer completion on waiting processes
        V4L/DVB (13202): smsusb: add autodetection support for three additional Hauppauge USB IDs
        V4L/DVB (13190): em28xx: fix panic that can occur when starting audio streaming
        V4L/DVB (13170): bttv: Fix reversed polarity error when switching video standard
        V4L/DVB (13169): bttv: Fix potential out-of-order field processing
        V4L/DVB (13167): pt1: Fix a compile error on arm
        V4L/DVB (13132): fix use-after-free Oops, resulting from a driver-core API change
        V4L/DVB (13131): pxa_camera: fix camera pixel format configuration
        ...
      a544de2e
  2. 10 Nov, 2009 1 commit
  3. 09 Nov, 2009 27 commits
  4. 08 Nov, 2009 8 commits
    • Theodore Ts'o's avatar
      ext4: partial revert to fix double brelse WARNING() · 1e424a34
      Theodore Ts'o authored
      This is a partial revert of commit 6487a9d3 (only the changes made to
      fs/ext4/namei.c), since it is causing the following brelse()
      double-free warning when running fsstress on a file system with 1k
      blocksize and we run into a block allocation failure while converting
      a single-block directory to a multi-block hash-tree indexed directory.
      
      WARNING: at fs/buffer.c:1197 __brelse+0x2e/0x33()
      Hardware name: 
      VFS: brelse: Trying to free free buffer
      Modules linked in:
      Pid: 2226, comm: jbd2/sdd-8 Not tainted 2.6.32-rc6-00577-g0003f55 #101
      Call Trace:
       [<c01587fb>] warn_slowpath_common+0x65/0x95
       [<c0158869>] warn_slowpath_fmt+0x29/0x2c
       [<c021168e>] __brelse+0x2e/0x33
       [<c0288a9f>] jbd2_journal_refile_buffer+0x67/0x6c
       [<c028a9ed>] jbd2_journal_commit_transaction+0x319/0x14d8
       [<c0164d73>] ? try_to_del_timer_sync+0x58/0x60
       [<c0175bcc>] ? sched_clock_cpu+0x12a/0x13e
       [<c017f6b4>] ? trace_hardirqs_off+0xb/0xd
       [<c0175c1f>] ? cpu_clock+0x3f/0x5b
       [<c017f6ec>] ? lock_release_holdtime+0x36/0x137
       [<c0664ad0>] ? _spin_unlock_irqrestore+0x44/0x51
       [<c0180af3>] ? trace_hardirqs_on_caller+0x103/0x124
       [<c0180b1f>] ? trace_hardirqs_on+0xb/0xd
       [<c0164d73>] ? try_to_del_timer_sync+0x58/0x60
       [<c0290d1c>] kjournald2+0x11a/0x310
       [<c017118e>] ? autoremove_wake_function+0x0/0x38
       [<c0290c02>] ? kjournald2+0x0/0x310
       [<c0170ee6>] kthread+0x66/0x6b
       [<c0170e80>] ? kthread+0x0/0x6b
       [<c01251b3>] kernel_thread_helper+0x7/0x10
      ---[ end trace 5579351b86af61e3 ]---
      
      Commit 6487a9d3 was an attempt some buffer head leaks in an ENOSPC
      error path, but in some cases it actually results in an excess ENOSPC,
      as shown above.  Fixing this means cleaning up who is responsible for
      releasing the buffer heads from the callee to the caller of
      add_dirent_to_buf().
      
      Since that's a relatively complex change, and we're late in the rcX
      development cycle, I'm reverting this now, and holding back a more
      complete fix until after 2.6.32 ships.  We've lived with this
      buffer_head leak on ENOSPC in ext3 and ext4 for a very long time; a
      few more months won't kill us.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      Cc: Curt Wohlgemuth <curtw@google.com>
      1e424a34
    • Ryusuke Konishi's avatar
      nilfs2: fix missing cleanup of gc cache on error cases · c083234f
      Ryusuke Konishi authored
      This fixes an -rc1 regression brought by the commit:
      1cf58fa8 ("nilfs2: shorten freeze
      period due to GC in write operation v3").
      
      Although the patch moved out a function call of
      nilfs_ioctl_move_blocks() to nilfs_ioctl_clean_segments() from
      nilfs_ioctl_prepare_clean_segments(), it didn't move corresponding
      cleanup job needed for the error case.
      
      This will move the missing cleanup job to the destination function.
      Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Acked-by: default avatarJiro SEKIBA <jir@unicus.jp>
      c083234f
    • Ryusuke Konishi's avatar
      nilfs2: fix kernel oops in error case of nilfs_ioctl_move_blocks · 5399dd1f
      Ryusuke Konishi authored
      This fixes a kernel oops reported by Markus Trippelsdorf in the email
      titled "[NILFS users] kernel Oops while running nilfs_cleanerd".
      
      The oops was caused by a bug of error path in
      nilfs_ioctl_move_blocks() function, which was inlined in
      nilfs_ioctl_clean_segments().
      
      nilfs_ioctl_move_blocks checks duplication of blocks which will be
      moved in garbage collection.  But, the check should have be done
      within nilfs_ioctl_move_inode_block() to prevent list corruption among
      buffers storing the target blocks.
      
      To fix the kernel oops, this moves forward the duplication check
      before the list insertion.
      
      I also tested this for stable trees [2.6.30, 2.6.31].
      Reported-by: default avatarMarkus Trippelsdorf <markus@trippelsdorf.de>
      Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Cc: stable <stable@kernel.org>
      5399dd1f
    • Sebastian Siewior's avatar
      net/fsl_pq_mdio: add module license GPL · 26062897
      Sebastian Siewior authored
      or it will taint the kernel and fail to load becuase
      of_address_to_resource() is GPL only.
      Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      26062897
    • Wolfgang Grandegger's avatar
      can: fix WARN_ON dump in net/core/rtnetlink.c:rtmsg_ifinfo() · 53a0ef86
      Wolfgang Grandegger authored
      On older kernels, e.g. 2.6.27, a WARN_ON dump in rtmsg_ifinfo()
      is thrown when the CAN device is registered due to insufficient
      skb space, as reported by various users. This patch adds the
      rtnl_link_ops "get_size" to fix the problem. I think this patch
      is required for more recent kernels as well, even if no WARN_ON
      dumps are triggered. Maybe we also need "get_xstats_size" for
      the CAN xstats.
      Signed-off-by: default avatarWolfgang Grandegger <wg@grandegger.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      53a0ef86
    • Eric Dumazet's avatar
      can: should not use __dev_get_by_index() without locks · 6755aeba
      Eric Dumazet authored
      bcm_proc_getifname() is called with RTNL and dev_base_lock
      not held. It calls __dev_get_by_index() without locks, and
      this is illegal (might crash)
      
      Close the race by holding dev_base_lock and copying dev->name
      in the protected section.
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarOliver Hartkopp <oliver@hartkopp.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6755aeba
    • Roel Kluin's avatar
      sparc64: replace parentheses in pmul() · 88b938e6
      Roel Kluin authored
      `>>' has a higher precedence than `?' so src2 evaluated to
      either 16 or 0 dependent on the bits set in rs2.
      Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      88b938e6
    • Takashi Iwai's avatar
      Merge branch 'fix/hda' into for-linus · dede17b8
      Takashi Iwai authored
      dede17b8