]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: gpib: Fix cb7210 pcmcia Oops
authorDave Penkler <dpenkler@gmail.com>
Thu, 13 Feb 2025 10:31:12 +0000 (11:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2025 15:47:17 +0000 (16:47 +0100)
commitc1baf6528bcfd6a86842093ff3f8ff8caf309c12
treebf65c7e5aa58116a4e72fc3e7f3514751c7d08ca
parent7b66aae77da56f2eabd92d3fb012d2fb98212bbd
staging: gpib: Fix cb7210 pcmcia Oops

The  pcmcia_driver struct was still only using the old .name
initialization in the drv field. This led to a NULL pointer
deref Oops in strcmp called from pcmcia_register_driver.

Initialize the pcmcia_driver struct name field.

Reported-by: kernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202502131453.cb6d2e4a-lkp@intel.com
Fixes: e9dc69956d4d ("staging: gpib: Add Computer Boards GPIB driver")
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250213103112.4415-1-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/cb7210/cb7210.c