]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/nouveau: fix incorrect sizeof on args.src an args.dst
authorColin Ian King <colin.king@canonical.com>
Fri, 29 Nov 2019 16:28:28 +0000 (16:28 +0000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 15 Jan 2020 00:49:58 +0000 (10:49 +1000)
commit80f2f430b5f1f9398d75b66f9de971062b367e52
tree509a0a40b86bfa24455d8f896a8fe9680a467df8
parenta48bade418ade9ec0f2dd321638ac42fc14ff6ac
drm/nouveau/nouveau: fix incorrect sizeof on args.src an args.dst

The sizeof is currently on args.src and args.dst and should be on
*args.src and *args.dst. Fortunately these sizes just so happen
to be the same size so it worked, however, this should be fixed
and it also cleans up static analysis warnings

Addresses-Coverity: ("sizeof not portable")
Fixes: 12bcf5c1d7a4 ("nouveau: simplify nouveau_dmem_migrate_vma")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_dmem.c