summaryrefslogtreecommitdiff
path: root/drivers/block/mtip32xx
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-06-20 11:29:14 +0300
committerJens Axboe <axboe@fb.com>2015-06-20 19:34:07 +0300
commit51ef72bda70841fddd595142ed0e7e0fc571c500 (patch)
tree77ba038f4cac07d04b0de9e4c445839418687a86 /drivers/block/mtip32xx
parent71feb364e7faadc681e714f7fdc2bede208ba26c (diff)
downloadlinux-51ef72bda70841fddd595142ed0e7e0fc571c500.tar.xz
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 'drivers/block/mtip32xx')
0 files changed, 0 insertions, 0 deletions