Commit f319dc1
committed
wifi: mt76: mt7925: add NULL checks for MLO link operations
Add NULL pointer checks for mt792x_sta_to_link() and mt792x_vif_to_link()
results in critical paths to prevent kernel crashes during MLO operations.
Found by static analysis review.1 parent 3c23252 commit f319dc1
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
| 859 | + | |
| 860 | + | |
859 | 861 | | |
860 | 862 | | |
861 | 863 | | |
862 | 864 | | |
863 | 865 | | |
864 | 866 | | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
865 | 870 | | |
866 | 871 | | |
867 | 872 | | |
| |||
1691 | 1696 | | |
1692 | 1697 | | |
1693 | 1698 | | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1694 | 1702 | | |
1695 | 1703 | | |
1696 | 1704 | | |
| |||
0 commit comments