)]}'
{
  "commit": "a30b595d2ca6d39e784a1bed5f2b35f3d7a03af7",
  "tree": "101d1cdf6088a36a09ad5470a062331a74ab657d",
  "parents": [
    "054b2b13ccba4876a1ce98a7ede7dab7d6893d01"
  ],
  "author": {
    "name": "David Rientjes",
    "email": "rientjes@google.com",
    "time": "Wed Aug 26 14:29:20 2009 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Wed Aug 26 20:06:52 2009 -0700"
  },
  "message": "flex_array: fix get function for elements in base starting at non-zero\n\nIf all array elements fit into the base structure and data is copied using\nflex_array_put() starting at a non-zero index, flex_array_get() will fail\nto return the data.\n\nThis fixes the bug by only checking for NULL parts when all elements do\nnot fit in the base structure when flex_array_get() is used.  Otherwise,\nfa_element_to_part_nr() will always be 0 since there are no parts\nstructures needed and such element may never have been put.  Thus, it will\nremain NULL due to the kzalloc() of the base.\n\nAdditionally, flex_array_put() now only checks for a NULL part when all\nelements do not fit in the base structure.  This is otherwise unnecessary\nsince the base structure is guaranteed to exist (or we would have already\nhit a NULL pointer).\n\nSigned-off-by: David Rientjes \u003crientjes@google.com\u003e\nAcked-by: Dave Hansen \u003cdave@linux.vnet.ibm.com\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "08f1636d296ae2fa1032e0fd06d1ccd15ff1a4c3",
      "old_mode": 33188,
      "old_path": "lib/flex_array.c",
      "new_id": "e73c691aec3679f22263977b3fa58567dcbce5d8",
      "new_mode": 33188,
      "new_path": "lib/flex_array.c"
    }
  ]
}
