nouveau/u_memcpya: use vmemdup_user
authorDave Airlie <airlied@redhat.com>
Thu, 10 Aug 2023 18:50:20 +0000 (04:50 +1000)
committerDanilo Krummrich <dakr@redhat.com>
Tue, 19 Sep 2023 22:15:50 +0000 (00:15 +0200)
commite3885f71213437e7fa3e347d16b2bf59d03ae05d
tree1ac3f785f40b1b339c79f262565acc9c2a33e5b1
parent31499b0192cea06bbfe2782f288ac5cfe3dc9167
nouveau/u_memcpya: use vmemdup_user

I think there are limit checks in place for most things but the
new uAPI wants to not have them.

Add a limit check and use the vmemdup_user helper instead.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230810185020.231135-1-airlied@gmail.com
drivers/gpu/drm/nouveau/nouveau_drv.h