]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: return the correct return value
authorTian Tao <tiantao6@hisilicon.com>
Tue, 13 Apr 2021 10:52:55 +0000 (10:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Apr 2021 15:16:12 +0000 (09:16 -0600)
commit506b5867b4040412defcc8fa370326a3c6b5ca1e
tree289fa94a79ba934a58b9c78cf1859760a2e5868f
parentee6493d7664ffe955db6fb1850c27b6bd48cea25
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>
drivers/lightnvm/core.c