diff options
author | Ma Ke <make24@iscas.ac.cn> | 2025-08-12 15:25:09 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-09 19:02:29 +0200 |
commit | d7286005e8fde0a430dc180a9f46c088c7d74483 (patch) | |
tree | eb0f93d47d554d8699ef75c59d554735f69f3395 /rust/kernel/mm/virt.rs | |
parent | 6bb712ab084685ed156c09b9a6d9c89c21f2e98e (diff) |
pcmcia: Fix a NULL pointer dereference in __iodyn_find_io_region()
commit 44822df89e8f3386871d9cad563ece8e2fd8f0e7 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/mm/virt.rs')
0 files changed, 0 insertions, 0 deletions