)]}'
{
  "commit": "2c6719a3ef2f7da59a622ba1176ad41d553f8f43",
  "tree": "d685f2939ff90182458fd5173df0f7871f93cb81",
  "parents": [
    "6c75dd0f965b7b3480d0e0e9b8d9747988dfe815"
  ],
  "author": {
    "name": "Julia Lawall",
    "email": "julia@diku.dk",
    "time": "Sat May 15 23:22:18 2010 +0200"
  },
  "committer": {
    "name": "Matthew Garrett",
    "email": "mjg@redhat.com",
    "time": "Thu May 20 09:26:13 2010 -0400"
  },
  "message": "drivers/platform/x86: Use kmemdup\n\nUse kmemdup when some other buffer is immediately copied into the\nallocated region.\n\nA simplified version of the semantic patch that makes this change is as\nfollows: (http://coccinelle.lip6.fr/)\n\n// \u003csmpl\u003e\n@@\nexpression from,to,size,flag;\nstatement S;\n@@\n\n-  to \u003d \\(kmalloc\\|kzalloc\\)(size,flag);\n+  to \u003d kmemdup(from,size,flag);\n   if (to\u003d\u003dNULL || ...) S\n-  memcpy(to, from, size);\n// \u003c/smpl\u003e\n\nSigned-off-by: Julia Lawall \u003cjulia@diku.dk\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "39ec5b6c2e3a804518bdad78257bb766812e3274",
      "old_mode": 33188,
      "old_path": "drivers/platform/x86/wmi.c",
      "new_id": "17df134a6f0362deea95d8d8bd1cc5f4c3086df5",
      "new_mode": 33188,
      "new_path": "drivers/platform/x86/wmi.c"
    }
  ]
}
