)]}'
{
  "commit": "16b7c275c055cc36218404b5d147be7f76575087",
  "tree": "c7b170c8eab5c804e5fd74958e22b76c4cb0b880",
  "parents": [
    "009d0431c3914de64666bec0d350e54fdd59df6a"
  ],
  "author": {
    "name": "Prarit Bhargava",
    "email": "prarit@redhat.com",
    "time": "Mon Dec 01 09:39:22 2014 -0500"
  },
  "committer": {
    "name": "Rafael J. Wysocki",
    "email": "rafael.j.wysocki@intel.com",
    "time": "Fri Dec 05 03:12:34 2014 +0100"
  },
  "message": "tools: cpupower: fix return checks for sysfs_get_idlestate_count()\n\nRed Hat and Fedora use a bug reporting tool that gathers data about\n\"broken\" systems called sosreport.  Among other things, it includes the\noutput of \u0027cpupower idle-info\u0027.  Executing \u0027cpupower idle-info\u0027 on a\nsystem that has cpuidle disabled via \u0027cpuidle.off\u003d1\u0027 results in a 300\nsecond hang in the cpupower application.\n\nie)\n[root@intel-brickland-05]# cpupower idle-info\nCould not determine cpuidle driver\n\nAnalyzing CPU 0:\nNumber of idle states: -19\n[hang]\n\nThe problem is that the cpupower code only checks for a zero return from\nsysfs_get_idlestate_count().  The function can return -ENODEV (-19) as\nabove.  This patch fixes callers to sysfs_get_idlestate_count() to check\nthe right return values.\n\nSigned-off-by: Prarit Bhargava \u003cprarit@redhat.com\u003e\nSigned-off-by: Thomas Renninger \u003ctrenn@suse.de\u003e\nSigned-off-by: Rafael J. Wysocki \u003crafael.j.wysocki@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "75e66de7e7a7fc9934ec005667c6857cff42ff04",
      "old_mode": 33188,
      "old_path": "tools/power/cpupower/utils/cpuidle-info.c",
      "new_id": "458d69b444ad7d7a075de31a0b1fa8cb40ba8c77",
      "new_mode": 33188,
      "new_path": "tools/power/cpupower/utils/cpuidle-info.c"
    }
  ]
}
