)]}'
{
  "commit": "4735fb282830c0966b301dabcccf4753fa6604bb",
  "tree": "1749491d41f888c29dbad6de37fe3fbe81a38fc3",
  "parents": [
    "cdc6a3952558f00b1bc3b6401e1cf98797632fe2"
  ],
  "author": {
    "name": "Jesper Juhl",
    "email": "jj@chaosbits.net",
    "time": "Thu Apr 12 22:47:52 2012 +0200"
  },
  "committer": {
    "name": "David Sterba",
    "email": "dsterba@suse.cz",
    "time": "Wed Apr 18 19:22:20 2012 +0200"
  },
  "message": "Btrfs: Make free_ipath() deal gracefully with NULL pointers\n\nMake free_ipath() behave like most other freeing functions in the\nkernel and gracefully do nothing when passed a NULL pointer.\n\nBesides this making the bahaviour consistent with functions such as\nkfree(), vfree(), btrfs_free_path() etc etc, it also fixes a real NULL\nderef issue in fs/btrfs/ioctl.c::btrfs_ioctl_ino_to_path(). In that\nfunction we have this code:\n\n...\n        ipath \u003d init_ipath(size, root, path);\n        if (IS_ERR(ipath)) {\n                ret \u003d PTR_ERR(ipath);\n                ipath \u003d NULL;\n                goto out;\n        }\n...\nout:\n        btrfs_free_path(path);\n        free_ipath(ipath);\n...\n\nIf we ever take the true branch of that \u0027if\u0027 statement we\u0027ll end up\npassing a NULL pointer to free_ipath() which will subsequently\ndereference it and we\u0027ll go \"Boom\" :-(\nThis patch will avoid that.\n\nSigned-off-by: Jesper Juhl \u003cjj@chaosbits.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f4e90748940abf6c1f36f3186177e4640bd24546",
      "old_mode": 33188,
      "old_path": "fs/btrfs/backref.c",
      "new_id": "b332ff04c5ee6d2d5347a806209b755c50852b6e",
      "new_mode": 33188,
      "new_path": "fs/btrfs/backref.c"
    }
  ]
}
