mt76: mt7915: fix possible uninitialized pointer dereference in mt7986_wmac_gpio_setup
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 4 Apr 2022 08:08:10 +0000 (10:08 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 13 May 2022 07:39:34 +0000 (09:39 +0200)
commit9bd6823f5a64b6465708b244eecc9b7dd4b01bfc
tree647874c3d90c3999e98e1766cf32529a8ddbd3a1
parent4e90db5e21eb3bb272fe47386dc3506755e209e9
mt76: mt7915: fix possible uninitialized pointer dereference in mt7986_wmac_gpio_setup

Add default case for type switch in mt7986_wmac_gpio_setup routine in
order to avoid a possible uninitialized pointer dereference.

Fixes: 99ad32a4ca3a2 ("mt76: mt7915: add support for MT7986")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/soc.c