)]}'
{
  "commit": "6eb68d6f3bf1707d5d816ea9242b7d38f25b942e",
  "tree": "8b07c11557ac0b72105d5ecb538fb34335ee10eb",
  "parents": [
    "336746918299f2ca16b31490655b4ff7c8824c87"
  ],
  "author": {
    "name": "Nathael Pajani",
    "email": "nathael.pajani@ed3l.fr",
    "time": "Thu Sep 02 16:06:16 2010 +0200"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@suse.de",
    "time": "Fri Sep 03 17:29:04 2010 -0700"
  },
  "message": "tty: fix tty_line must not be equal to number of allocated tty pointers in tty driver\n\nI found a bug \"by chance\" in drivers/char/tty_io.c\n\nI mean \"by chance\" because I was just reading the code of the\ntty_find_polling_driver() to make a new tty_find_by_name() function.\n\nIn tty_find_polling_driver() the driver actually test \"tty_line \u003c\u003d\np-\u003enum\" while num refers to the number of struct tty_struct pointers\nallocated for the p-\u003ettys (p is a tty_driver), and tty_line is scanned\nin a tty name, which can be for example ttyS2. Then tty_line equals 2.\nAnd if p-\u003enum is 2, we have only p-\u003ettys[0] and p-\u003ettys[1], but no\np-\u003ettys[2].\n\nThis is actually unharmful, for tty_find_polling_driver() is used only\nin drivers/serial/kgdboc.c, and there\u0027s a test over there to find a\nconsole with a matching index, which will never happen.\n\nThis is still a bug anyway.\n\nSigned-off-by: Nathael Pajani \u003cnathael.pajani@ed3l.fr\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@suse.de\u003e\n\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "949067a0bd4743151515382b07ccf7aecad11316",
      "old_mode": 33188,
      "old_path": "drivers/char/tty_io.c",
      "new_id": "613c852ee0feced279c50f6850e9e30c7c870111",
      "new_mode": 33188,
      "new_path": "drivers/char/tty_io.c"
    }
  ]
}
