Commit 338a508
committed
[viostor] Fix SRB Extension struct member alignment
Refactors to fix a struct member misalignment:
1. Creates a new _SRB_EXTENSION_FLAGS struct of 32 bits length
2. The first bit is fua (Forced Unit Access)
3. The other bits are unused padding
4. Replaces the _SRB_EXTENSION member fua with new flags member
5. Updates references to srbExt->fua to use srbExt->flags.fua
6. Enforces 1-byte alignment of structs _SRB_EXTENSION and _SRB_EXTENSION_FLAGS
Signed-off-by: benyamin-codez <115509179+benyamin-codez@users.noreply.github.com>1 parent 8f73d3a commit 338a508
2 files changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1467 | 1467 | | |
1468 | 1468 | | |
1469 | 1469 | | |
1470 | | - | |
| 1470 | + | |
1471 | 1471 | | |
1472 | 1472 | | |
1473 | 1473 | | |
| |||
2205 | 2205 | | |
2206 | 2206 | | |
2207 | 2207 | | |
2208 | | - | |
| 2208 | + | |
2209 | 2209 | | |
2210 | 2210 | | |
2211 | 2211 | | |
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
2215 | | - | |
| 2215 | + | |
2216 | 2216 | | |
2217 | 2217 | | |
2218 | 2218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
274 | 283 | | |
275 | 284 | | |
276 | 285 | | |
| 286 | + | |
277 | 287 | | |
278 | 288 | | |
279 | 289 | | |
280 | | - | |
281 | | - | |
| 290 | + | |
282 | 291 | | |
283 | 292 | | |
284 | 293 | | |
| 294 | + | |
285 | 295 | | |
286 | 296 | | |
287 | 297 | | |
| |||
0 commit comments