Commit 045a5b6
committed
wifi: iwlwifi: fw: don't always use FW dump trig
Since the dump_data (struct iwl_fwrt_dump_data) is a union,
it's not safe to unconditionally access and use the 'trig'
member, it might be 'desc' instead. Access it only if it's
known to be 'trig' rather than 'desc', i.e. if ini-debug
is present.
Cc: stable@vger.kernel.org
Fixes: 0eb50c6 ("iwlwifi: yoyo: send hcmd to fw after dump collection completes.")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240319100755.e2976bc58b29.I72fbd6135b3623227de53d8a2bb82776066cb72b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent 06a0938 commit 045a5b6
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3081 | 3081 | | |
3082 | 3082 | | |
3083 | 3083 | | |
3084 | | - | |
3085 | | - | |
3086 | 3084 | | |
3087 | 3085 | | |
3088 | 3086 | | |
| |||
3113 | 3111 | | |
3114 | 3112 | | |
3115 | 3113 | | |
3116 | | - | |
3117 | | - | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
3118 | 3117 | | |
3119 | | - | |
3120 | | - | |
3121 | | - | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
3122 | 3122 | | |
| 3123 | + | |
3123 | 3124 | | |
3124 | 3125 | | |
3125 | 3126 | | |
| |||
0 commit comments