]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:21:03 +0000 (13:21 +0200)
commit790cb68d35a61569be17f0d2b604cf20fda6a1b2
treecb4114ad56b5c63c8f9ca7923081e9675c91b05a
parent42ac2c63486f5f6760ff014e9243c92b80409d89
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