)]}'
{
  "commit": "88e87c568678ab36c997c1c807d97b3b1e7091e6",
  "tree": "fdd492a475759d50abca6c1fa5b61a7970bee032",
  "parents": [
    "927c1f036fc6b3d9b6cb84c5cacc8e78ec7d28cc"
  ],
  "author": {
    "name": "Thomas Heijligen",
    "email": "thomas.heijligen@secunet.com",
    "time": "Fri Aug 05 17:56:20 2022 +0200"
  },
  "committer": {
    "name": "Nico Huber",
    "email": "nico.h@gmx.de",
    "time": "Thu Jan 05 16:35:01 2023 +0000"
  },
  "message": "tree: Check properly if libusb is initialized\n\nThe dediprog, developerbox_spi and stlinkv3_spi programmers only check\nif the libusb_context is not NULL after the initialization. But\nfollowing the API documentation from libusb, the context is undefined\nunless the init function returns 0. Fix this by checking the return\nvalue instead of the libusb_context to see if the initialization was\nsuccessful.\n\nhttps://libusb.sourceforge.io/api-1.0/group__libusb__lib.html\n\nChange-Id: Ia45ccd3fa2239dfccd821be46a09c86426cb22e5\nSigned-off-by: Thomas Heijligen \u003cthomas.heijligen@secunet.com\u003e\nOriginal-Reviewed-on: https://review.coreboot.org/c/flashrom/+/66460\nOriginal-Reviewed-by: Felix Singer \u003cfelixsinger@posteo.net\u003e\nReviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71475\nReviewed-by: Nico Huber \u003cnico.h@gmx.de\u003e\nReviewed-by: Angel Pons \u003cth3fanbus@gmail.com\u003e\nTested-by: build bot (Jenkins) \u003cno-reply@coreboot.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2d266d46320b99a3c756abba61c95caaea300f35",
      "old_mode": 33188,
      "old_path": "dediprog.c",
      "new_id": "e18356b7a27f4ce185f955ccd3ad8ba7ddbeeddb",
      "new_mode": 33188,
      "new_path": "dediprog.c"
    },
    {
      "type": "modify",
      "old_id": "5a9c08d01071a12f35b4a31db0a47efccd038697",
      "old_mode": 33188,
      "old_path": "developerbox_spi.c",
      "new_id": "d15cc7a84c97d6a35e15433e9222c07d9d73a9cf",
      "new_mode": 33188,
      "new_path": "developerbox_spi.c"
    },
    {
      "type": "modify",
      "old_id": "2d3ce22ba5800e46471127287288e05f08065922",
      "old_mode": 33188,
      "old_path": "stlinkv3_spi.c",
      "new_id": "68790cf349c755c01f5a8053fbef0c6d158bfe3a",
      "new_mode": 33188,
      "new_path": "stlinkv3_spi.c"
    }
  ]
}
