)]}'
{
  "commit": "32cb7d27e65df9daa7cee8f1fdf7b259f214bee2",
  "tree": "f2556630222b5ed71c61d5c2aea98d2800cebfab",
  "parents": [
    "3089ec2c104ccfb7295d6c2a25d5b505cc59669b"
  ],
  "author": {
    "name": "Arnd Bergmann",
    "email": "arnd@arndb.de",
    "time": "Tue Oct 25 17:55:04 2016 +0200"
  },
  "committer": {
    "name": "Jonathan Cameron",
    "email": "jic23@kernel.org",
    "time": "Tue Oct 25 17:28:23 2016 +0100"
  },
  "message": "iio: maxim_thermocouple: detect invalid storage size in read()\n\nAs found by gcc -Wmaybe-uninitialized, having a storage_bytes value other\nthan 2 or 4 will result in undefined behavior:\n\ndrivers/iio/temperature/maxim_thermocouple.c: In function \u0027maxim_thermocouple_read\u0027:\ndrivers/iio/temperature/maxim_thermocouple.c:141:5: error: \u0027ret\u0027 may be used uninitialized in this function [-Werror\u003dmaybe-uninitialized]\n\nThis probably cannot happen, but returning -EINVAL here is appropriate\nand makes gcc happy and the code more robust.\n\nFixes: 231147ee77f3 (\"iio: maxim_thermocouple: Align 16 bit big endian value of raw reads\")\nSigned-off-by: Arnd Bergmann \u003carnd@arndb.de\u003e\nSigned-off-by: Jonathan Cameron \u003cjic23@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "39dd2026ccc928a7f3c0c1be60948969923594ee",
      "old_mode": 33188,
      "old_path": "drivers/iio/temperature/maxim_thermocouple.c",
      "new_id": "d19a4dea4c3ca4c55769f339365608e89f8a8c4a",
      "new_mode": 33188,
      "new_path": "drivers/iio/temperature/maxim_thermocouple.c"
    }
  ]
}
