diff options
| author | 2025-08-12 15:25:09 +0800 | |
|---|---|---|
| committer | 2025-08-16 15:31:00 +0200 | |
| commit | 44822df89e8f3386871d9cad563ece8e2fd8f0e7 (patch) | |
| tree | de494c38d00bf8179a08464123bca68d335d3f70 /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | pcmcia: omap_cf: Mark driver struct with __refdata to prevent section mismatch (diff) | |
| download | wireguard-linux-44822df89e8f3386871d9cad563ece8e2fd8f0e7.tar.xz wireguard-linux-44822df89e8f3386871d9cad563ece8e2fd8f0e7.zip | |
pcmcia: Fix a NULL pointer dereference in __iodyn_find_io_region()
In __iodyn_find_io_region(), pcmcia_make_resource() is assigned to
res and used in pci_bus_alloc_resource(). There is a dereference of res
in pci_bus_alloc_resource(), which could lead to a NULL pointer
dereference on failure of pcmcia_make_resource().
Fix this bug by adding a check of res.
Cc: stable@vger.kernel.org
Fixes: 49b1153adfe1 ("pcmcia: move all pcmcia_resource_ops providers into one module")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
