diff options
| author | Igor Mammedov <[email protected]> | 2015-07-15 14:48:50 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2015-07-27 15:05:05 +0000 |
| commit | 1e0994730f772580ff98754eb5595190cdf371ef (patch) | |
| tree | 1db1d0a687ebb0f980d9083ba65d9e447faafab0 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | vhost: actually track log eventfd file (diff) | |
| download | kernel-1e0994730f772580ff98754eb5595190cdf371ef.tar.gz kernel-1e0994730f772580ff98754eb5595190cdf371ef.zip | |
vhost: fix error handling for memory region alloc
callers of vhost_kvzalloc() expect the same behaviour on
allocation error as from kmalloc/vmalloc i.e. NULL return
value. So just return vzmalloc() returned value instead of
returning ERR_PTR(-ENOMEM)
Fixes: 4de7255f7d2be5 ("vhost: extend memory regions allocation to vmalloc")
Spotted-by: Dan Carpenter <[email protected]>
Suggested-by: Julia Lawall <[email protected]>
Signed-off-by: Igor Mammedov <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
