Commit ef58288
wifi: avoid offset calculation on NULL pointer
ieee80211_he_6ghz_oper() can be passed a NULL pointer
and checks for that, but already did the calculation
to inside of it before. Move it after the check.
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
Link: https://lore.kernel.org/r/20231122030237.31276-1-michael-cy.lee@mediatek.com
[rewrite commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent 1033176 commit ef58288
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2830 | 2830 | | |
2831 | 2831 | | |
2832 | 2832 | | |
2833 | | - | |
| 2833 | + | |
2834 | 2834 | | |
2835 | 2835 | | |
2836 | 2836 | | |
2837 | 2837 | | |
2838 | 2838 | | |
| 2839 | + | |
| 2840 | + | |
2839 | 2841 | | |
2840 | 2842 | | |
2841 | 2843 | | |
| |||
0 commit comments