]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc19c23d0c4b9fb9d13679012087d051df96a2776
tree737181604cd2807e6d9a2a13601b168391c96b51
parent872e969356210638fb785d4f72a2c787e95e79c5
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