Skip to content
Commit 66a6a5d0 authored by Ruan Jinjie's avatar Ruan Jinjie Committed by Jens Axboe
Browse files

ublk: Switch to memdup_user_nul() helper



Use memdup_user_nul() helper instead of open-coding
to simplify the code.

Signed-off-by: default avatarRuan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230815114815.1551171-1-ruanjinjie@huawei.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c7b4b23b
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