OSDN Git Service

staging: r8188eu: remove Efuse_PgPacketWrite_BT function
authorPhillip Potter <phil@philpotter.co.uk>
Mon, 6 Sep 2021 01:01:03 +0000 (02:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 06:49:49 +0000 (08:49 +0200)
commitc22f7f5b40c498f2a43ddef61f109809ec7f93fa
tree2993e996511bbea4ecbe980435d7d74a485c63fd
parent54ff2ed45cd8fa7ab4292c9770c1e2371ec26bba
staging: r8188eu: remove Efuse_PgPacketWrite_BT function

Remove static Efuse_PgPacketWrite_BT and its one caller from
core/rtw_efuse.c. This function is a wrapper function which calls
the Efuse_PgPacketWrite_BT function pointer of struct hal_ops
unconditionally. As this function pointer is never set, and this
function call is possible to reach, this could lead to an attempt to
deference a NULL pointer, which would crash the driver.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210906010106.898-12-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_efuse.c