[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a10Gs=gjzKPROvvqXHN0GGGH9wtGjyVQyvT9BYRkeUjJw@mail.gmail.com>
Date: Fri, 8 Nov 2019 15:47:41 +0100
From: Arnd Bergmann <arnd@...db.de>
To: wu000273@....edu
Cc: David Airlie <airlied@...ux.ie>,
gregkh <gregkh@...uxfoundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drivers: fix a memory leak
On Thu, Nov 7, 2019 at 8:37 PM <wu000273@....edu> wrote:
>
> From: Qiushi Wu <wu000273@....edu>
>
> In intel_gtt_setup_scratch_page(), "page" is not released if
> pci_dma_mapping_error() return errors. This will lead to memory leak.
> Fix this issue by freeing "page" before return.
>
> Signed-off-by: Qiushi Wu <wu000273@....edu>
Reviewed-by: Arnd Bergmann <arnd@...db.de>
Powered by blists - more mailing lists