Skip to content
Commit 1c6b0bc7 authored by Tian Tao's avatar Tian Tao Committed by Jens Axboe
Browse files

lightnvm: return the correct return value



When memdup_user returns an error, memdup_user has two different return
values, use PTR_ERR to get the correct return value.

Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Signed-off-by: default avatarMatias Bjørling <matias.bjorling@wdc.com>
Link: https://lore.kernel.org/r/20210413105257.159260-3-matias.bjorling@wdc.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 327e1d29
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment