diff options
author | Vishal Verma <[email protected]> | 2022-04-13 01:36:16 -0600 |
---|---|---|
committer | Dan Williams <[email protected]> | 2022-04-28 14:01:54 -0700 |
commit | cc10eee95204579fcd66fd5965073fdcbf629676 (patch) | |
tree | 410c5cbdf19f45d8582535acebafc90ba433d1db /lib/test_fortify/write_overflow-memcpy.c | |
parent | 35e01667c84b1e16060020c3a13099447e61c822 (diff) |
PCI/ACPI: add a helper for retrieving _OSC Control DWORDs
During _OSC negotiation, when the 'Control' DWORD is needed from the
result buffer after running _OSC, a couple of places performed manual
pointer arithmetic to offset into the right spot in the raw buffer.
Add a acpi_osc_ctx_get_pci_control() helper to use the #define'd
DWORD offsets to fetch the DWORDs needed from @acpi_osc_context, and
replace the above instances of the open-coded arithmetic.
Cc: "Rafael J. Wysocki" <[email protected]>
Suggested-by: Davidlohr Bueso <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Reviewed by: Adam Manzanares <[email protected]>
Signed-off-by: Vishal Verma <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions