In the Linux kernel, the following vulnerability has been resolved:
ptp_qoriq: fix memory leak in probe()
Smatch complains that: drivers/ptp/ptpqoriq.c ptpqoriq_probe() warn: 'base' from ioremap() not released.
Fix this by revising the parameter from 'ptpqoriq->base' to 'base'. This is only a bug if ptpqoriqinit() returns on the first -ENODEV error path. For other error paths ptpqoriq->base and base are the same. And this change makes the code more readable.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54307.json"
}