pcmcia: i82092: fix a null pointer dereference bug
authorZheyu Ma <zheyuma97@gmail.com>
Tue, 22 Jun 2021 07:11:31 +0000 (07:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Aug 2021 11:01:03 +0000 (13:01 +0200)
commitb84e587e0c881a3510cda632867683102fe3fdf8
tree3219b87d75e35da2e7054b663d191d4d52242828
parentd410896e51e82a97cfbd836966f2d09733c7c14a
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 <zheyuma97@gmail.com>
CC: <stable@vger.kernel.org>
[linux@dominikbrodowski.net: shorten commit message, add Cc to stable]
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pcmcia/i82092.c