]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: realtek: don't parse compatible string for RTL8366S
authorAlvin Šipraga <alsi@bang-olufsen.dk>
Tue, 12 Apr 2022 15:57:49 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 13:40:59 +0000 (14:40 +0100)
commit81608c7f8f67eac50764842b3ca04603890aba1a
tree3733c380cf501d8a59da3f669ee1560138acc72d
parent5c0a17e09889a306036014f7700b3a092224defc
net: dsa: realtek: don't parse compatible string for RTL8366S

This switch is not even supported, but if someone were to actually put
this compatible string "realtek,rtl8366s" in their device tree, they
would be greeted with a kernel panic because the probe function would
dereference NULL. So let's just remove it.

Link: https://lore.kernel.org/all/CACRpkdYdKZs0WExXc3=0yPNOwP+oOV60HRz7SRoGjZvYHaT=1g@mail.gmail.com/
Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/realtek/realtek-smi.c