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>
Thu, 12 Aug 2021 11:22:16 +0000 (13:22 +0200)
commit100f8396d15480435b889e7ac571da3303b6b12e
tree0d33476a5c13d3381adb9165a8c5153a88eb3fe7
parentafcd5a0e015f966d804ea54c1a305a5bc5b799ad
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