)]}'
{
  "commit": "9c101fd439dab60d6eba76afb35fd2696f42c63d",
  "tree": "f83da5a06a1af9be7539066536aa0b9bd4a4c69b",
  "parents": [
    "a77e3362a224212d9d3b9e6fdec44df2eef6cf92"
  ],
  "author": {
    "name": "KAMBAROV, ZAUR",
    "email": "kambarov@berkeley.edu",
    "time": "Tue Jun 28 20:45:08 2005 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@ppc970.osdl.org",
    "time": "Tue Jun 28 21:20:33 2005 -0700"
  },
  "message": "[PATCH] coverity: ipmi_msghandler() channels array overrun fix\n\nWe fix the check in 1084, which was\n\n1084 \t\t\tif (addr-\u003echannel \u003e IPMI_NUM_CHANNELS) {\n1085 \t\t\t\tspin_lock_irqsave(\u0026intf-\u003ecounter_lock, flags);\n1086 \t\t\t\tintf-\u003esent_invalid_commands++;\n1087 \t\t\t\tspin_unlock_irqrestore(\u0026intf-\u003ecounter_lock, flags);\n1088 \t\t\t\trv \u003d -EINVAL;\n1089 \t\t\t\tgoto out_err;\n1090 \t\t\t}\n\naddr-\u003echannel is used in\n\n1092 \t\t\tif (intf-\u003echannels[addr-\u003echannel].medium\n\nDefinitions involved:\n\n221  \t\tstruct ipmi_channel channels[IPMI_MAX_CHANNELS];\n\n134  \t#define IPMI_MAX_CHANNELS       8\n\nIn /linux-2.6.12-rc6/include/linux/ipmi.h\n148  \t#define IPMI_NUM_CHANNELS 0x10\n\nSigned-off-by: Zaur Kambarov \u003czkambarov@coverity.com\u003e\nCc: Corey Minyard \u003cminyard@acm.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@osdl.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@osdl.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1813d0d198f12bee356b29dfb05d051d0878ef34",
      "old_mode": 33188,
      "old_path": "drivers/char/ipmi/ipmi_msghandler.c",
      "new_id": "e16c13fe698dff7c71ad27508d64904f84be80be",
      "new_mode": 33188,
      "new_path": "drivers/char/ipmi/ipmi_msghandler.c"
    }
  ]
}
