)]}'
{
  "commit": "c94f31b526fe658c25dd2d07c90486a85437f01c",
  "tree": "7742a74048136041c64b869d4ea0aae6650a51b8",
  "parents": [
    "80ec6f5de60b6934f145b2f7e5369592bcab85f3"
  ],
  "author": {
    "name": "Colin Ian King",
    "email": "colin.king@canonical.com",
    "time": "Fri Dec 22 17:51:50 2017 +0000"
  },
  "committer": {
    "name": "Jens Wiklander",
    "email": "jens.wiklander@linaro.org",
    "time": "Thu Dec 28 22:20:10 2017 +0100"
  },
  "message": "tee: shm: don\u0027t put_page on null shm-\u003epages\n\nIn the case that shm-\u003epages fails to allocate, the current exit\nerror path will try to put_page on a null shm-\u003epages and cause\na null pointer dereference when accessing shm-\u003epages[n]. Fix this\nby only performing the put_page and kfree on shm-\u003epages if it\nis not null.\n\nDetected by CoverityScan, CID#1463283 (\"Dereference after null check\")\n\nFixes: 033ddf12bcf5 (\"tee: add register user memory\")\nSigned-off-by: Colin Ian King \u003ccolin.king@canonical.com\u003e\nSigned-off-by: Jens Wiklander \u003cjens.wiklander@linaro.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "511eb298949b58366733de44adf0cf8b37158c66",
      "old_mode": 33188,
      "old_path": "drivers/tee/tee_shm.c",
      "new_id": "6f36da9ee41267922f69ba7831f3a8c1c5e226a2",
      "new_mode": 33188,
      "new_path": "drivers/tee/tee_shm.c"
    }
  ]
}
