)]}'
{
  "commit": "8558aef4e8a1a83049ab906d21d391093cfa7e7f",
  "tree": "27a5f2e4c9d31fc5137da87045d0a1daa6823557",
  "parents": [
    "926ede0c85e1e57c97d64d9612455267d597bb2c"
  ],
  "author": {
    "name": "Zilin Guan",
    "email": "zilin@seu.edu.cn",
    "time": "Wed Jan 28 15:44:39 2026 +0000"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Thu Jan 29 19:27:35 2026 -0800"
  },
  "message": "net: liquidio: Fix off-by-one error in PF setup_nic_devices() cleanup\n\nIn setup_nic_devices(), the initialization loop jumps to the label\nsetup_nic_dev_free on failure. The current cleanup loop while(i--)\nskip the failing index i, causing a memory leak.\n\nFix this by changing the loop to iterate from the current index i\ndown to 0.\n\nAlso, decrement i in the devlink_alloc failure path to point to the\nlast successfully allocated index.\n\nCompile tested only. Issue found using code review.\n\nFixes: f21fb3ed364b (\"Add support of Cavium Liquidio ethernet adapters\")\nSuggested-by: Simon Horman \u003chorms@kernel.org\u003e\nSigned-off-by: Zilin Guan \u003czilin@seu.edu.cn\u003e\nReviewed-by: Kory Maincent \u003ckory.maincent@bootlin.com\u003e\nLink: https://patch.msgid.link/20260128154440.278369-3-zilin@seu.edu.cn\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1f10b1b22a1e4ad9c616f75c5817d53965d276c9",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/cavium/liquidio/lio_main.c",
      "new_id": "c1a3df2252549283ac255219d34cf4d421cb6c75",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/cavium/liquidio/lio_main.c"
    }
  ]
}
