From: Zheyu Ma Date: Tue, 22 Jun 2021 07:11:31 +0000 (+0000) Subject: pcmcia: i82092: fix a null pointer dereference bug X-Git-Tag: v5.4.140~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=790cb68d35a61569be17f0d2b604cf20fda6a1b2;p=thirdparty%2Fkernel%2Fstable.git pcmcia: i82092: fix a null pointer dereference bug commit e39cdacf2f664b09029e7c1eb354c91a20c367af upstream. During the driver loading process, the 'dev' field was not assigned, but the 'dev' field was referenced in the subsequent 'i82092aa_set_mem_map' function. Signed-off-by: Zheyu Ma CC: [linux@dominikbrodowski.net: shorten commit message, add Cc to stable] Signed-off-by: Dominik Brodowski Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/pcmcia/i82092.c b/drivers/pcmcia/i82092.c index 245d60189375a..7a43d4ca79292 100644 --- a/drivers/pcmcia/i82092.c +++ b/drivers/pcmcia/i82092.c @@ -106,6 +106,7 @@ static int i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *i for (i = 0;i