)]}'
{
  "commit": "bec013c40bc89671d8d457944fdf7d2b8e79d651",
  "tree": "f48220571120805a319f0df876c1cc465586978e",
  "parents": [
    "6480e5a0923756b500634d9777ec4189492fbbfe"
  ],
  "author": {
    "name": "Michael Holzheu",
    "email": "holzheu@linux.vnet.ibm.com",
    "time": "Thu Jan 12 17:20:15 2012 -0800"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Thu Jan 12 20:13:11 2012 -0800"
  },
  "message": "kdump: crashk_res init check for /sys/kernel/kexec_crash_size\n\nCurrently it is possible to set the crash_size via the sysfs\n/sys/kernel/kexec_crash_size even if no crash kernel memory has been\ndefined with the \"crashkernel\" parameter.  In this case \"crashk_res\" is\nnot initialized and crashk_res.start \u003d crashk_res.end \u003d 0.  Unfortunately\nresource_size(\u0026crashk_res) returns 1 in this case.  This breaks the s390\nimplementation of crash_(un)map_reserved_pages().\n\nTo fix the problem the correct \"old_size\" is now calculated in\ncrash_shrink_memory().  \"old_size is set to \"0\" if crashk_res is not\ninitialized.  With this change crash_shrink_memory() will do nothing, when\n\"crashk_res\" is not initialized.  It will return \"0\" for \"echo 0 \u003e\n/sys/kernel/kexec_crash_size\" and -EINVAL for \"echo [not zero] \u003e\n/sys/kernel/kexec_crash_size\".\n\nIn addition to that this patch also simplifies the \"ret \u003d -EINVAL\" vs.\n\"ret \u003d 0\" logic as suggested by Simon Horman.\n\nSigned-off-by: Michael Holzheu \u003cholzheu@linux.vnet.ibm.com\u003e\nReviewed-by: Dave Young \u003cdyoung@redhat.com\u003e\nReviewed-by: WANG Cong \u003cxiyou.wangcong@gmail.com\u003e\nReviewed-by: Simon Horman \u003chorms@verge.net.au\u003e\nCc: Vivek Goyal \u003cvgoyal@redhat.com\u003e\nCc: \"Eric W. Biederman\" \u003cebiederm@xmission.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": "60bf181b3eaed859dc7ae63f0338c01c4cfaed0d",
      "old_mode": 33188,
      "old_path": "kernel/kexec.c",
      "new_id": "7b0886786701b845cfbd8823252392e40b11a1c8",
      "new_mode": 33188,
      "new_path": "kernel/kexec.c"
    }
  ]
}
