Skip to content
Snippets Groups Projects
  1. May 05, 2009
    • Tao Ma's avatar
      ocfs2: Don't printk the error when listing too many xattrs. · a46fa684
      Tao Ma authored
      
      Currently the kernel defines XATTR_LIST_MAX as 65536
      in include/linux/limits.h.  This is the largest buffer that is used for
      listing xattrs.
      
      But with ocfs2 xattr tree, we actually have no limit for the number.  If
      filesystem has more names than can fit in the buffer, the kernel
      logs will be pollluted with something like this when listing:
      
      (27738,0):ocfs2_iterate_xattr_buckets:3158 ERROR: status = -34
      (27738,0):ocfs2_xattr_tree_list_index_block:3264 ERROR: status = -34
      
      So don't print "ERROR" message as this is not an ocfs2 error.
      
      Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
      Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
      a46fa684
  2. May 03, 2009
  3. May 02, 2009
    • Robert Moore's avatar
      acpica: validate package element more carefully in acpi_rs_get_pci_routing_table_length · 53951bd5
      Robert Moore authored
      
      acpi_rs_get_pci_routing_table_length is not performing sufficient
      validation on the package returned from _PRT.  It assumes a package of
      packages and fails/faults if this is not the case.
      
      We should validate each subpackage when extracted from the parent
      package, and not accept objects of the wrong type, since that will just
      cause the scanning to fail (likely with a kernel oops).
      
      This can only happen with a serious BIOS bug, and is accompanied by a
      warning something like this:
      
        ACPI Warning (nspredef-0949): \_SB_.PCI0.PEG4._PRT: Return Package type mismatch at index 0 - found Integer, expected Package [20090320]
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      53951bd5
    • Hirokazu Takata's avatar
      m32r: use __stringify() macro in assembler.h · 9cd67243
      Hirokazu Takata authored
      
      Replace #x with __stringify(x).
      Also, #ifndef __STR is removed and undefine __STR macro at the beginning.
      
      The __STR() macro is still remained, because the assembler.h might be
      included from assembly codes as well as C codes.
      
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      9cd67243
    • Hirokazu Takata's avatar
      m32r: build fix for __stringify macro · 9c88b06d
      Hirokazu Takata authored
      
      This patch fixes the following build error of 2.6.30-rc3-git2:
      
            AS      arch/m32r/kernel/head.o
          In file included from /include/linux/init.h:7,
                           from /arch/m32r/kernel/head.S:11:
          /include/linux/stringify.h:9: error: syntax error in macro parameter list
          /include/linux/stringify.h:10: error: syntax error in macro parameter list
      
      This build error was caused at __HEAD macro in arch/m32r/kernel/head.S,
      which uses __stringify() macro.
      
      Remove -traditional option from EXTRA_AFLAGS for the m32r,
      because the __stringify() macro depends on the gcc's variadic macro
      extension function, due to commit:
      
          Make __stringify support variable argument macros too
          commit: 8f7c2c37
      
      Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
      9c88b06d
    • Jiri Kosina's avatar
      HID: fix oops in hid_check_keys_pressed() · e5288eb5
      Jiri Kosina authored
      
      If the device is not claimed by hid-input (i.e devices driver by userspace
      hiddev/hidraw-based drivers, or completely detached from HID
      and driver by libusb), we must not check the hid->inptus, as it
      is not guaranteed to be initialized, as this is performed only for devices
      handled by hid-input.
      
      Reported-by: default avatarGuillaume Chazarain <guichaz@gmail.com>
      Tested-by: default avatarGuillaume Chazarain <guichaz@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      e5288eb5
Loading