1. 08 9月, 2010 2 次提交
    • D
      h8300: IRQ flags should be stored in an unsigned long · 3ab61eb9
      David Howells 提交于
      Fix h8300's asm/atomic.h to store the IRQ flags in an unsigned long to deal
      with warnings of the following type:
      
        arch/h8300/include/asm/atomic.h: In function 'atomic_add_return':
        arch/h8300/include/asm/atomic.h:22: warning: comparison of distinct pointer types lacks a cast
        arch/h8300/include/asm/atomic.h:24: warning: comparison of distinct pointer types lacks a cast
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3ab61eb9
    • V
      VFS: Sanity check mount flags passed to change_mnt_propagation() · 7a2e8a8f
      Valerie Aurora 提交于
      Sanity check the flags passed to change_mnt_propagation().  Exactly
      one flag should be set.  Return EINVAL otherwise.
      
      Userspace can pass in arbitrary combinations of MS_* flags to mount().
      do_change_type() is called if any of MS_SHARED, MS_PRIVATE, MS_SLAVE,
      or MS_UNBINDABLE is set.  do_change_type() clears MS_REC and then
      calls change_mnt_propagation() with the rest of the user-supplied
      flags.  change_mnt_propagation() clearly assumes only one flag is set
      but do_change_type() does not check that this is true.  For example,
      mount() with flags MS_SHARED | MS_RDONLY does not actually make the
      mount shared or read-only but does clear MNT_UNBINDABLE.
      Signed-off-by: NValerie Aurora <vaurora@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7a2e8a8f
  2. 29 8月, 2010 25 次提交
  3. 28 8月, 2010 11 次提交
  4. 27 8月, 2010 2 次提交