)]}'
{
  "commit": "c71c8fd4daa342ba714090586a55fc5db7eaa275",
  "tree": "3ea2ed05648bb232fa123923b666580621b8978e",
  "parents": [
    "f8f5701bdaf9134b1f90e5044a82c66324d2073f"
  ],
  "author": {
    "name": "Axel Lin",
    "email": "axel.lin@gmail.com",
    "time": "Mon May 21 20:55:40 2012 +0800"
  },
  "committer": {
    "name": "Mark Brown",
    "email": "broonie@opensource.wolfsonmicro.com",
    "time": "Mon Jun 04 10:42:49 2012 +0100"
  },
  "message": "regulator: palmas: Fix wrong kfree calls\n\nThe devm_kzalloc function eliminates the need for manual resource releasing\nand simplify error handling. Resources allocated by devm_* are freed\nautomatically on driver detach.\n\nThus adding kfree calls here will introduce double free bug.\n\nThe memory of desc array and the pointers to the rdev[] are allocated by\ndevm_kzalloc call for struct palmas_pmic.\n\nstruct palmas_pmic {\n        struct palmas *palmas;\n        struct device *dev;\n        struct regulator_desc desc[PALMAS_NUM_REGS];\n        struct regulator_dev *rdev[PALMAS_NUM_REGS];\n        struct mutex mutex;\n\n        int smps123;\n        int smps457;\n\n        int range[PALMAS_REG_SMPS10];\n};\n\nWhich means we should not call kfree for pmic-\u003erdev and pmic-\u003edesc.\n\nSigned-off-by: Axel Lin \u003caxel.lin@gmail.com\u003e\nSigned-off-by: Mark Brown \u003cbroonie@opensource.wolfsonmicro.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "c4435f608df7e2210dedbbaa3e3bfd0ac2f63de9",
      "old_mode": 33188,
      "old_path": "drivers/regulator/palmas-regulator.c",
      "new_id": "9b7ca90057d53806c581387bba8c6ab72ae46826",
      "new_mode": 33188,
      "new_path": "drivers/regulator/palmas-regulator.c"
    }
  ]
}
