[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <463bb1cb-d132-2f5f-6e94-e0115228c3cb@intel.com>
Date: Mon, 19 Aug 2019 09:07:38 -0400
From: Dennis Dalessandro <dennis.dalessandro@...el.com>
To: Wenwen Wang <wenwen@...uga.edu>
Cc: Mike Marciniszyn <mike.marciniszyn@...el.com>,
Doug Ledford <dledford@...hat.com>,
Jason Gunthorpe <jgg@...pe.ca>,
"open list:HFI1 DRIVER" <linux-rdma@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] infiniband: hfi1: fix a memory leak bug
On 8/18/2019 3:29 PM, Wenwen Wang wrote:
> In fault_opcodes_read(), 'data' is not deallocated if debugfs_file_get()
> fails, leading to a memory leak. To fix this bug, introduce the 'free_data'
> label to free 'data' before returning the error.
>
> Signed-off-by: Wenwen Wang <wenwen@...uga.edu>
Acked-by: Dennis Dalessandro <dennis.dalessandro@...el.com>
Powered by blists - more mailing lists