1. 24 5月, 2011 1 次提交
    • J
      HID: hiddev: fix potential use-after-free · 7f77897e
      Jiri Kosina 提交于
      Commit 6cb4b040 ("HID: hiddev: fix race between hiddev_disconnect
      and hiddev_release") made it possible to access hiddev (for unlocking
      the existance mutex) once hiddev has been kfreed.
      
      Change the order so that this can not happen (always unlock the mutex first,
      it is needed only to protect access to ->exist and ->open).
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      7f77897e
  2. 23 5月, 2011 1 次提交
  3. 20 5月, 2011 9 次提交
  4. 19 5月, 2011 1 次提交
  5. 18 5月, 2011 4 次提交
  6. 09 5月, 2011 1 次提交
  7. 05 5月, 2011 1 次提交
    • B
      HID: picolcd: Avoid compile warning/error triggered by copy_from_user() · 8c4e708d
      Bruno Prémont 提交于
      With CONFIG_DEBUG_STRICT_USER_COPY_CHECKS=y compilation of PicoLCD
      driver fails on copy_from_user(), without it a warning is generated:
      
        CC [M]  drivers/hid/hid-picolcd.o
      In file included from /usr/src/linux-2.6/arch/x86/include/asm/uaccess.h:571,
                       from /usr/src/linux-2.6/arch/x86/include/asm/sections.h:5,
                       from /usr/src/linux-2.6/arch/x86/include/asm/hw_irq.h:26,
                       from /usr/src/linux-2.6/include/linux/irq.h:359,
                       from /usr/src/linux-2.6/arch/x86/include/asm/hardirq.h:5,
                       from /usr/src/linux-2.6/include/linux/hardirq.h:7,
                       from /usr/src/linux-2.6/include/linux/interrupt.h:12,
                       from /usr/src/linux-2.6/include/linux/usb.h:15,
                       from /usr/src/linux-2.6/drivers/hid/hid-picolcd.c:25:
      In function 'copy_from_user',
          inlined from 'picolcd_debug_eeprom_write' at drivers/hid/hid-picolcd.c:1592:
      arch/x86/include/asm/uaccess_32.h:212: error: call to 'copy_from_user_overflow' declared with attribute error: copy_from_user() buffer size is not provably correct
      
      gcc-4.4.5 is not able to track size calculation when it is stored into
      a variable, thus tell copy_from_user() maximum size via
      min(*max-size*, *effective-size*) explicitly and inline how much to copy
      at most.
      Signed-off-by: NBruno Prémont <bonbons@linux-vserver.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      8c4e708d
  8. 04 5月, 2011 1 次提交
  9. 03 5月, 2011 1 次提交
    • P
      HID: add support for Logitech G27 wheel · fdc6807f
      Peter Gundermann 提交于
      Gere's a small patch to add support for the Logitech G27 wheel, since
      the prior patch only added FF support for the Driving Force Pro and G25.
      The patch contains the changes from the G25 and DFP, too.
      
      I tested the changes with wine/LFS and got full support for all axes and
      buttons.
      
      Signed-off: Peter Gundermann <slim-one@users.sourceforge.net>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      fdc6807f
  10. 29 4月, 2011 1 次提交
  11. 28 4月, 2011 1 次提交
  12. 26 4月, 2011 1 次提交
  13. 22 4月, 2011 3 次提交
  14. 06 4月, 2011 2 次提交
  15. 01 4月, 2011 1 次提交
  16. 31 3月, 2011 1 次提交
  17. 28 3月, 2011 1 次提交
  18. 27 3月, 2011 1 次提交
  19. 24 3月, 2011 2 次提交
  20. 23 3月, 2011 1 次提交
  21. 22 3月, 2011 5 次提交