Repository navigation
Commit cdfca7b
KVM: Use kmemdup() instead of kmalloc/memcpy
Switch to kmemdup() in two places to shorten the code and avoid possible bugs.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>1 parent 3f745f1 commit cdfca7b
2 files changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3031 | 3031 | | |
3032 | 3032 | | |
3033 | 3033 | | |
3034 | | - | |
| 3034 | + | |
3035 | 3035 | | |
3036 | 3036 | | |
3037 | | - | |
| 3037 | + | |
3038 | 3038 | | |
3039 | 3039 | | |
3040 | 3040 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2591 | 2591 | | |
2592 | 2592 | | |
2593 | 2593 | | |
2594 | | - | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
2595 | 2597 | | |
2596 | 2598 | | |
2597 | 2599 | | |
2598 | | - | |
2599 | | - | |
2600 | | - | |
2601 | 2600 | | |
2602 | 2601 | | |
2603 | 2602 | | |
| |||
0 commit comments