[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ba80583ebdd6ee011760cf7f2fa8ae24fca4fbe3.camel@redhat.com>
Date: Tue, 20 Aug 2019 13:26:22 -0400
From: Doug Ledford <dledford@...hat.com>
To: Wenwen Wang <wenwen@...uga.edu>
Cc: Mike Marciniszyn <mike.marciniszyn@...el.com>,
Dennis Dalessandro <dennis.dalessandro@...el.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 Sun, 2019-08-18 at 14:29 -0500, 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>
Applied to for-rc, thanks.
--
Doug Ledford <dledford@...hat.com>
GPG KeyID: B826A3330E572FDD
Fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists