diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-09-03 02:29:50 +0200 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-09-11 09:03:14 -0700 |
| commit | fc55b4cda00aff08ea6dfe86411efa13bdb728c5 (patch) | |
| tree | 8ca56343fe3575413731a9f96277927cfabf9878 /scripts/lib/kdoc/kdoc_parser.py | |
| parent | KVM: SEV: Save the SEV policy if and only if LAUNCH_START succeeds (diff) | |
| download | linux-fc55b4cda00aff08ea6dfe86411efa13bdb728c5.tar.gz linux-fc55b4cda00aff08ea6dfe86411efa13bdb728c5.zip | |
KVM: nSVM: Replace kzalloc() + copy_from_user() with memdup_user()
Replace kzalloc() followed by copy_from_user() with memdup_user() to
improve and simplify svm_set_nested_state().
Return early if an error occurs instead of trying to allocate memory for
'save' when memory allocation for 'ctl' already failed.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250903002951.118912-1-thorsten.blum@linux.dev
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions
