)]}'
{
  "commit": "8c4e708d01424f88afde64a96ffd05146c9978b8",
  "tree": "f341d2533527c7eb3e443f0bb0cfc16529bccdde",
  "parents": [
    "6d67c110ab204bc4c2f4f3e368b8d7cf1f38a4f8"
  ],
  "author": {
    "name": "Bruno Prémont",
    "email": "bonbons@linux-vserver.org",
    "time": "Wed May 04 21:08:42 2011 +0200"
  },
  "committer": {
    "name": "Jiri Kosina",
    "email": "jkosina@suse.cz",
    "time": "Thu May 05 13:45:52 2011 +0200"
  },
  "message": "HID: picolcd: Avoid compile warning/error triggered by copy_from_user()\n\nWith CONFIG_DEBUG_STRICT_USER_COPY_CHECKS\u003dy compilation of PicoLCD\ndriver fails on copy_from_user(), without it a warning is generated:\n\n  CC [M]  drivers/hid/hid-picolcd.o\nIn file included from /usr/src/linux-2.6/arch/x86/include/asm/uaccess.h:571,\n                 from /usr/src/linux-2.6/arch/x86/include/asm/sections.h:5,\n                 from /usr/src/linux-2.6/arch/x86/include/asm/hw_irq.h:26,\n                 from /usr/src/linux-2.6/include/linux/irq.h:359,\n                 from /usr/src/linux-2.6/arch/x86/include/asm/hardirq.h:5,\n                 from /usr/src/linux-2.6/include/linux/hardirq.h:7,\n                 from /usr/src/linux-2.6/include/linux/interrupt.h:12,\n                 from /usr/src/linux-2.6/include/linux/usb.h:15,\n                 from /usr/src/linux-2.6/drivers/hid/hid-picolcd.c:25:\nIn function \u0027copy_from_user\u0027,\n    inlined from \u0027picolcd_debug_eeprom_write\u0027 at drivers/hid/hid-picolcd.c:1592:\narch/x86/include/asm/uaccess_32.h:212: error: call to \u0027copy_from_user_overflow\u0027 declared with attribute error: copy_from_user() buffer size is not provably correct\n\ngcc-4.4.5 is not able to track size calculation when it is stored into\na variable, thus tell copy_from_user() maximum size via\nmin(*max-size*, *effective-size*) explicitly and inline how much to copy\nat most.\n\nSigned-off-by: Bruno Prémont \u003cbonbons@linux-vserver.org\u003e\nSigned-off-by: Jiri Kosina \u003cjkosina@suse.cz\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "de9cf21b3494c39d7a105f75a90078ebfe8b145e",
      "old_mode": 33188,
      "old_path": "drivers/hid/hid-picolcd.c",
      "new_id": "6f0642ea1009c1aac96b0b72d651173f08d41fbc",
      "new_mode": 33188,
      "new_path": "drivers/hid/hid-picolcd.c"
    }
  ]
}
