[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180329115719.GC6734@kroah.com>
Date: Thu, 29 Mar 2018 13:57:19 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Hans de Goede <hdegoede@...hat.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Michael Thayer <michael.thayer@...cle.com>,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH 2/3] virt: vbox: Use __get_free_pages instead of kmalloc
for DMA32 memory
On Thu, Mar 29, 2018 at 01:21:15PM +0200, Hans de Goede wrote:
> @@ -87,7 +88,7 @@ void vbg_req_free(void *req, size_t len)
> if (!req)
> return;
>
> - kfree(req);
> + free_pages((unsigned long)req, get_order(PAGE_ALIGN(len)));
> }
Really? This feels wrong to me, why is this driver so special that it
has to use free_pages and the like?
greg k-h
Powered by blists - more mailing lists