Skip to contentSkip to conversation

media: platform: amd: isp4: drop stale list reinit before free

PATCH In review Bin Du 1 participant 2 messages May 12 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Bin Du

author maintainer
#0 lore raw

PATCH v2 1/1 media: platform: amd: isp4: drop stale list reinit before free

Newer Smatch snapshots no longer report the false positive around isp4if_send_fw_cmd(), so the extra list reinitialization before kfree() is no longer needed.

Drop the stale list reinit and keep the cleanup path simpler.

---
 drivers/media/platform/amd/isp4/isp4_interface.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/media/platform/amd/isp4/isp4_interface.c +0 -6
index 15f14eddd683..8d73f66bb42c 100644
@@ -459,12 +459,6 @@ static int isp4if_send_fw_cmd(struct isp4_interface *ispif, u32 cmd_id,
 		ele = NULL;
 
 free_ele:
-	/*
-	 * The response handler or the timeout/error path must dequeue the
-	 * command element before we own the final reference.
-	 */
-	if (ele)
-		INIT_LIST_HEAD(&ele->list);
 	kfree(ele);
 	return ret;
 }
Signature · 1 line
2.54.0

A message that is not in the archive (sent off-list or not yet received): [email protected]

author maintainer
#2 lore raw

Hi,

Quoted 7 lines · Patchwork Integration

Dear Bin Du:

Thanks for your patches! Unfortunately the Media CI robot detected some issues:

Quoted 7 lines

Please fix your series, and upload a new version. If you have a patchwork account, do not forget to mark the current series as Superseded.

For more details, check the full report at:
https://linux-media.pages.freedesktop.org/-/users/patchwork/-/jobs/99599428/artifacts/report.htm .

Thanks for the report.

I rechecked the v2 results. The patch-specific checks now pass:
- media-ci/checkpatch
- media-ci/media-patchstyle
- build-basic

The remaining failure appears to be media-ci/static:
https://gitlab.freedesktop.org/linux-media/users/patchwork/-/jobs/99602662

From the log, this looks like a GitLab runner/system failure rather than an ISP4-specific issue. I do not see an ISP4-specific warning there; the ISP4 files only appear as normal build/check steps.

If I missed a patch-related warning in that job, please let me know.

Quoted 12 lines

Best regards, and Happy Hacking!
Media CI robot on behalf of the linux-media community.

---
Check the latest rules for contributing your patches at:
https://docs.kernel.org/driver-api/media/maintainer-entry-profile.html

If you believe that the CI is wrong, kindly open an issue at
https://gitlab.freedesktop.org/linux-media/media-ci/-/issues or reply-all to this message.