diff options
author | 2015-06-20 16:29:14 +0800 | |
---|---|---|
committer | 2015-06-20 10:34:07 -0600 | |
commit | 51ef72bda70841fddd595142ed0e7e0fc571c500 (patch) | |
tree | 77ba038f4cac07d04b0de9e4c445839418687a86 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | NVMe: Fix IO for extended metadata formats (diff) | |
download | linux-dev-51ef72bda70841fddd595142ed0e7e0fc571c500.tar.xz linux-dev-51ef72bda70841fddd595142ed0e7e0fc571c500.zip |
block: nvme-scsi: Catch kcalloc failure
res variable was initialized to -ENOMEM, but it's override by
nvme_trans_copy_from_user(). So current code returns 0 if kcalloc fails.
Fix it to return proper error code.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions