Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752913Ab2K1Jha (ORCPT ); Wed, 28 Nov 2012 04:37:30 -0500 Received: from mx3.cyfra.ua ([62.80.160.182]:40042 "EHLO mx3.cyfra.ua" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409Ab2K1Jh2 (ORCPT ); Wed, 28 Nov 2012 04:37:28 -0500 From: Vitalii Demianets Organization: Factor-SPE To: "Hans J. Koch" Subject: Re: [PATCH] drivers/uio/uio_pdrv_genirq.c: Fix memory leak & confusing labels Date: Wed, 28 Nov 2012 11:37:23 +0200 User-Agent: KMail/1.9.10 Cc: Cong Ding , linux-kernel@vger.kernel.org, "Greg Kroah-Hartman" References: <201211271929.32315.vitas@nppfactor.kiev.ua> <20121128003750.GD2605@local> In-Reply-To: <20121128003750.GD2605@local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201211281137.23623.vitas@nppfactor.kiev.ua> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 17 On Wednesday 28 November 2012 02:37:50 Hans J. Koch wrote: > > In other words, the case of uioinfo AND pdev->dev.of_node both being NULL > is not handled properly and will have ugly results. > Moreover, the case of (uioinfo != NULL) && (pdev->dev.of_node != NULL) leads to equally ugly results too (freeing uoinfo when it is statically allocated). I think, we should sort out these problems, but in another patch. It is totally unrelated to the problem solved by the original patch (memory leak caused by not freeing priv in case platform_get_irq() fails). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/