diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-19 14:20:32 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-04-21 20:55:54 +0200 |
commit | 4a52d6abb193aea0f2923a2c917502bd2d718630 (patch) | |
tree | e896a7be7a60b2e4387e77c53d00eb352157b78a /fs/autofs/expire.c | |
parent | dc5d5f9d3fe4d0c26b4e4beb25d056ffcc5fbf02 (diff) |
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: a4a5a430b076 ("mt76: mt7615: fix TSF configuration")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'fs/autofs/expire.c')
0 files changed, 0 insertions, 0 deletions