)]}'
{
  "commit": "03c71553ad735068e2bf166e629026fc78dbb4b9",
  "tree": "9579f3c981073d57a8aacd751da33fb09ca78fe9",
  "parents": [
    "ab5ea55805f89a26e35a8becb072049fec0f9d01"
  ],
  "author": {
    "name": "Amit Shah",
    "email": "amit.shah@redhat.com",
    "time": "Tue Jun 15 13:30:39 2010 +0530"
  },
  "committer": {
    "name": "Aurelien Jarno",
    "email": "aurelien@aurel32.net",
    "time": "Wed Jun 30 22:35:57 2010 +0200"
  },
  "message": "net: Fix VM start with \u0027-net none\u0027\n\nCommit 50e32ea8f31035877decc10f1075aa0e619e09cb changed the behaviour\nfor the return type of net_client_init() when a nic type with no init\nmethod was specified. \u0027none\u0027 is one such nic type. Instead of returning\n0, which gets interpreted as an index into the nd_table[] array, we\nswitched to returning -1, which signifies an error as well.\n\nThat broke VM start with \u0027-net none\u0027. Testing was only done with the\nmonitor command \u0027pci_add\u0027, which doesn\u0027t fail.\n\nThe correct fix would still be to return 0+ values from\nnet_client_init() only when the return value can be used as an index to\nrefer to an entry in nd_table[]. With the current code, callers can\nerroneously poke into nd_table[0] when -net nic is used, which can lead\nto badness.\n\nHowever, this commit just returns to the previous behaviour before the\noffending commit.\n\nSigned-off-by: Amit Shah \u003camit.shah@redhat.com\u003e\nSigned-off-by: Aurelien Jarno \u003caurelien@aurel32.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0703698ca75fc6563ed2088cef188364b46c77e4",
      "old_mode": 33188,
      "old_path": "net.c",
      "new_id": "90bd5a90478467c35ebcd6dc80b0c43a10c81833",
      "new_mode": 33188,
      "new_path": "net.c"
    }
  ]
}
