gpio: qixis-fpga: Fix error handling for devm_regmap_init_mmio()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
gpio: qixis-fpga: Fix error handling for devm_regmap_init_mmio()
devm_regmap_init_mmio() returns an ERR_PTR() on failure, not NULL. The original code checked for NULL which would never trigger on error, potentially leading to an invalid pointer dereference. Use IS_ERR() and PTR_ERR() to properly handle the error case.
From the CVE record · Linux
The qixis-fpga GPIO driver incorrectly checks for a NULL return when devm_regmap_init_mmio() fails, even though the function returns an error pointer. This could cause an invalid pointer dereference; the input does not establish how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running Linux kernels with the qixis-fpga GPIO driver should check their systems; affected versions are not specified.