)]}'
{
  "commit": "79fbf4a550ed6a22e1ae1516113e6c7fa5d56a53",
  "tree": "8ba004bcbbb6ce180d700e084edbe471729d77b1",
  "parents": [
    "f528bf4f57e43d1af4b2a5c97f09e43e0338c105"
  ],
  "author": {
    "name": "Johan Hovold",
    "email": "johan@kernel.org",
    "time": "Wed Mar 04 10:39:06 2015 +0100"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@linuxfoundation.org",
    "time": "Sat Mar 07 03:44:14 2015 +0100"
  },
  "message": "TTY: fix tty_wait_until_sent on 64-bit machines\n\nFix overflow bug in tty_wait_until_sent on 64-bit machines, where an\ninfinite timeout (0) would be passed to the underlying tty-driver\u0027s\nwait_until_sent-operation as a negative timeout (-1), causing it to\nreturn immediately.\n\nThis manifests itself for example as tcdrain() returning immediately,\ndrivers not honouring the drain flags when setting terminal attributes,\nor even dropped data on close as a requested infinite closing-wait\ntimeout would be ignored.\n\nThe first symptom  was reported by Asier LLANO who noted that tcdrain()\nreturned prematurely when using the ftdi_sio usb-serial driver.\n\nFix this by passing 0 rather than MAX_SCHEDULE_TIMEOUT (LONG_MAX) to the\nunderlying tty driver.\n\nNote that the serial-core wait_until_sent-implementation is not affected\nby this bug due to a lucky chance (comparison to an unsigned maximum\ntimeout), and neither is the cyclades one that had an explicit check for\nnegative timeouts, but all other tty drivers appear to be affected.\n\nFixes: 1da177e4c3f4 (\"Linux-2.6.12-rc2\")\nCc: stable \u003cstable@vger.kernel.org\u003e\t# v2.6.12\nReported-by: ZIV-Asier Llano Palacios \u003casier.llano@cgglobal.com\u003e\nSigned-off-by: Johan Hovold \u003cjohan@kernel.org\u003e\nReviewed-by: Peter Hurley \u003cpeter@hurleysoftware.com\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a5cf253b2544f001a775f93a7905e63475f7eb7e",
      "old_mode": 33188,
      "old_path": "drivers/tty/tty_ioctl.c",
      "new_id": "89ae23ac9ae61c6c1651d89f1a70f443507b017b",
      "new_mode": 33188,
      "new_path": "drivers/tty/tty_ioctl.c"
    }
  ]
}
