]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: remove false security in rteth_remove()
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 25 Mar 2026 20:23:35 +0000 (21:23 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 26 Mar 2026 14:26:26 +0000 (15:26 +0100)
commit3c38ed380a00689cdcefd991f1e9abe9168efd3c
tree12e789ea3b6b9d660a02a0f65f8e9404408db36a
parentd56d70fc669064af27133bf7765899e10d992f1e
realtek: eth: remove false security in rteth_remove()

Check for dev in driver remove gives no additional security. The
remove() function is only called if probe() succeeded. Probing
will always call platform_set_drvdata() in the good case. So
remove() will always find dev data via platform_get_drvdata().

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22610
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c