[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201105065233.3td3zuyfmbypjtvq@sirius.home.kraxel.org>
Date: Thu, 5 Nov 2020 07:52:33 +0100
From: Gerd Hoffmann <kraxel@...hat.com>
To: Sergey Senozhatsky <senozhatsky@...omium.org>
Cc: David Airlie <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>,
Suleiman Souhlal <suleiman@...gle.com>,
dri-devel@...ts.freedesktop.org,
virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/virtio: use kvmalloc for large allocations
Hi,
> - *ents = kmalloc_array(*nents, sizeof(struct virtio_gpu_mem_entry),
> - GFP_KERNEL);
> + *ents = kvmalloc_array(*nents,
> + sizeof(struct virtio_gpu_mem_entry),
> + GFP_KERNEL);
Shouldn't that be balanced with a kvfree() elsewhere?
take care,
Gerd
Powered by blists - more mailing lists