]> git.baikalelectronics.ru Git - kernel.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)
commit241d133d0d07c6547195c19cf253f0f3b7f4817c
treecb4114ad56b5c63c8f9ca7923081e9675c91b05a
parent5f50cf674e2a75f878e3c70ecdfbbc02ff1ff14e
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