Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030340AbbEEHZH (ORCPT ); Tue, 5 May 2015 03:25:07 -0400 Received: from mail-wg0-f53.google.com ([74.125.82.53]:36163 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755216AbbEEHY4 (ORCPT ); Tue, 5 May 2015 03:24:56 -0400 Date: Tue, 5 May 2015 09:27:14 +0200 From: Daniel Vetter To: Jani Nikula Cc: green@linuxhacker.ru, David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Daniel Vetter Subject: Re: [PATCH v2] drm: fix a memleak on mutex failure path Message-ID: <20150505072714.GY30184@phenom.ffwll.local> Mail-Followup-To: Jani Nikula , green@linuxhacker.ru, David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <1430149006-3753-1-git-send-email-green@linuxhacker.ru> <87h9s0btol.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87h9s0btol.fsf@intel.com> X-Operating-System: Linux phenom 4.0.0-rc3+ User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1080 Lines: 32 On Tue, Apr 28, 2015 at 10:25:46AM +0300, Jani Nikula wrote: > On Mon, 27 Apr 2015, green@linuxhacker.ru wrote: > > From: Oleg Drokin > > > > Need to free just allocated ctx allocation if we cannot > > get our config mutex. > > > > This one has been flagged by kbuild bot all the way back in August, > > but somehow nobody picked it up: > > https://lists.01.org/pipermail/kbuild/2014-August/001691.html > > > > In addition there is another failure path that leaks the same > > ctx reference that is fixed. > > > > Found with smatch. > > > > Signed-off-by: Oleg Drokin > > CC: Daniel Vetter > > Reviewed-by: Jani Nikula Applied to topic/drm-misc, thanks. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch -- 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/