commit | 66a6a5d0ec852eaced589da066376e69397cd71e | [log] [tgz] |
---|---|---|
author | Ruan Jinjie <ruanjinjie@huawei.com> | Tue Aug 15 19:48:14 2023 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Aug 15 10:06:54 2023 -0600 |
tree | 250e4720df61365612d4364e99962238864e9b92 | |
parent | c7b4b23b36edf32239e7fc3b922797ff1d32b072 [diff] |
ublk: Switch to memdup_user_nul() helper Use memdup_user_nul() helper instead of open-coding to simplify the code. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20230815114815.1551171-1-ruanjinjie@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>