summaryrefslogtreecommitdiff
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-04-13 13:52:55 +0300
committerJens Axboe <axboe@kernel.dk>2021-04-13 18:16:12 +0300
commit1c6b0bc73fac9306462bd4794d00520690e97ef8 (patch)
tree289fa94a79ba934a58b9c78cf1859760a2e5868f /include/linux/lightnvm.h
parent327e1d2957ab7dfdc0334f70d89ffed03040c6a5 (diff)
downloadlinux-1c6b0bc73fac9306462bd4794d00520690e97ef8.tar.xz
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: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Matias Bjørling <matias.bjorling@wdc.com> Link: https://lore.kernel.org/r/20210413105257.159260-3-matias.bjorling@wdc.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/lightnvm.h')
0 files changed, 0 insertions, 0 deletions