Skip to content
Commit 4a52d6ab authored by Colin Ian King's avatar Colin Ian King Committed by Felix Fietkau
Browse files

mt76: mt7615: Fix a dereference of pointer sta before it is null checked

Currently the assignment of idx dereferences pointer sta before
sta is null checked, leading to a potential null pointer dereference.
Fix this by assigning idx when it is required after the null check on
pointer sta.

Addresses-Coverity: ("Dereference before null check")
Fixes: a4a5a430

 ("mt76: mt7615: fix TSF configuration")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent dc5d5f9d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment