From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH v2] iommu/ipmmu-vmsa: Fix wrong error handle of ipmmu_add_device Date: Mon, 5 Sep 2016 12:54:48 +0200 Message-ID: <20160905105448.GA21830@8bytes.org> References: <1472005431-6181-1-git-send-email-shawn.lin@rock-chips.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1472005431-6181-1-git-send-email-shawn.lin-TNX95d0MmH7DzftRWevZcw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Shawn Lin Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Wed, Aug 24, 2016 at 10:23:51AM +0800, Shawn Lin wrote: > Let's fix the error handle of ipmmu_add_device > when failing to find utlbs, otherwise we take a > risk of pontential memleak. > > Signed-off-by: Shawn Lin > > --- > > Changes in v2: > - use error-out path > > drivers/iommu/ipmmu-vmsa.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks.