diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-05-10 14:39:48 -0700 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-05-26 15:36:58 +0200 |
| commit | 3da1dbf936d2fb25ef9925550bb276861d803e57 (patch) | |
| tree | 6a760c421294def01d8a518889fd0f1bd484eef9 /drivers/platform/wmi/tests/git@git.tavy.me:linux.git | |
| parent | 2068d7715e947f0321bc676a44215d3983af4bbc (diff) | |
PM: hibernate: Use flexible array for CRC uncompressed buffers
The CRC uncompressed buffer pointer array has the same lifetime as
struct crc_data, but it is currently allocated separately. That adds
another allocation failure path and a matching cleanup branch without
providing any extra flexibility.
Store the pointer array as a flexible array member and allocate it
together with the crc_data using kzalloc_flex(). The array remains
zero-initialized, while the allocation and error handling become
simpler.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260510213948.41750-1-rosenp@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/platform/wmi/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
