)]}'
{
  "commit": "0fc0f1fa7f86e9f1d480c6508191ca90ac10b32c",
  "tree": "221b0364884fc3d58d1391e5dfaf90ce37af9688",
  "parents": [
    "9d861fa595c93f22d1d55b723a691531c36c9672"
  ],
  "author": {
    "name": "Ryan Harper",
    "email": "ryanh@us.ibm.com",
    "time": "Wed Dec 08 10:05:00 2010 -0600"
  },
  "committer": {
    "name": "Kevin Wolf",
    "email": "kwolf@redhat.com",
    "time": "Fri Dec 17 16:10:59 2010 +0100"
  },
  "message": "blockdev: check dinfo ptr before using\n\nIf a user decides to punish a guest by revoking its block device via\ndrive_del, and subsequently also attempts to remove the pci device\nbacking it, and the device is using blockdev_auto_del() then we get a\nsegfault when we attempt to access dinfo-\u003eauto_del.[1]\n\nThe fix is to check if drive_get_by_blockdev() actually returns a valid\ndinfo pointer or not.\n\n1. (qemu) pci_add auto storage file\u003dimages/test01.raw,if\u003dvirtio,id\u003dblock1,snapshot\u003don\n   (qemu) drive_del block1\n   (qemu) pci_del 5\n   *segfault*\n\nSigned-off-by: Ryan Harper \u003cryanh@us.ibm.com\u003e\nTested-by: Luiz Capitulino \u003clcapitulino@redhat.com\u003e\nSigned-off-by: Kevin Wolf \u003ckwolf@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f6ac4398b84f2ca285c2224bf6cb83cd8b1338a5",
      "old_mode": 33188,
      "old_path": "blockdev.c",
      "new_id": "3b3b82dba7731dc7527553edc07e08a14689b304",
      "new_mode": 33188,
      "new_path": "blockdev.c"
    }
  ]
}
