mt76: mt7915: fix possible NULL pointer dereference in mt7915_register_ext_phy
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 22 May 2020 07:26:06 +0000 (09:26 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 28 May 2020 15:57:24 +0000 (17:57 +0200)
commitec2bb3a570ec5bfafb71113b3617929434de5ff0
tree737181604cd2807e6d9a2a13601b168391c96b51
parenteca026555f01e16011eeb6a7f63ceabd8da4f4a8
mt76: mt7915: fix possible NULL pointer dereference in mt7915_register_ext_phy

Fix a NULL pointer dereference in mt7915_register_ext_phy since phy
data structure is allocated by mt76_alloc_phy routine

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/init.c