)]}'
{
  "commit": "adadca66f2ce2cb03ece016ab07fef604283c667",
  "tree": "ab1e4651c333e3079ad71897dcc18f4d6b342715",
  "parents": [
    "400b3adc8a4e073648e2512be9cd7bab94d8f8f8"
  ],
  "author": {
    "name": "Stefan Tauner",
    "email": "stefan.tauner@alumni.tuwien.ac.at",
    "time": "Wed Feb 18 23:28:30 2015 +0000"
  },
  "committer": {
    "name": "Stefan Tauner",
    "email": "stefan.tauner@alumni.tuwien.ac.at",
    "time": "Wed Feb 18 23:28:30 2015 +0000"
  },
  "message": "Fix a number of problems in mstarddc_spi.c\n\nCoverity has brought up the following problems:\n\nmstarddc_spi_send_command():\n - CID 1270702: bad comparison of malloced pointer \u0027cmd\u0027.\n - CID 1270701: a NULL pointer dereference possible because of above.\n\nSimply checking the return value of malloc in a valid way fixes both problems.\n\nmstarddc_spi_init():\n - CID 1270699 and 1270700: Memory leak of i2c_device.\n\nThis patch revamps the function in various ways to fix these issues and some\nother irritating bits.\nIt reduces scopes of variables where possible, pushes the code towards our\ncoding standards and introduces a label-based resource cleanup at the end.\n\nCorresponding to flashrom svn r1885.\n\nSigned-off-by: Stefan Tauner \u003cstefan.tauner@alumni.tuwien.ac.at\u003e\nAcked-by: Alexandre Boeglin \u003calex@boeglin.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0b41a1b7453990d257d6a2673909e3eb106abe72",
      "old_mode": 33188,
      "old_path": "mstarddc_spi.c",
      "new_id": "809d69049e8d723120e345fdee3847d03693ef04",
      "new_mode": 33188,
      "new_path": "mstarddc_spi.c"
    }
  ]
}
