From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935257Ab2DMLBU (ORCPT ); Fri, 13 Apr 2012 07:01:20 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:56153 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751488Ab2DMLBT (ORCPT ); Fri, 13 Apr 2012 07:01:19 -0400 X-IronPort-AV: E=Sophos;i="4.75,417,1330905600"; d="scan'208";a="11923192" Date: Fri, 13 Apr 2012 12:05:14 +0100 From: Stefano Stabellini X-X-Sender: sstabellini@kaball-desktop To: Samuel Thibault CC: Jesper Juhl , "linux-kernel@vger.kernel.org" , Gerd Hoffmann , Alan Cox , Konrad Rzeszutek Wilk , Stefano Stabellini , Greg Kroah-Hartman Subject: Re: tty, hvc, xen: leak? dead code? everything is fine? In-Reply-To: <20120412220048.GM4245@type.famille.thibault.fr> Message-ID: References: <20120412220048.GM4245@type.famille.thibault.fr> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1190695860-1334314854=:15151" Content-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-1190695860-1334314854=:15151 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Content-ID: On Thu, 12 Apr 2012, Samuel Thibault wrote: > Jesper Juhl, le Thu 12 Apr 2012 23:33:20 +0200, a écrit : > > Or *if* there's actually no way 'info->intfw' can actually be anything but > > NULL in this case, > > There is no way that it's both non-NULL and the if was entered above: if > the if was entered, the content of info is zeroes (kzalloc). Yep. Thanks Samuel for the quick answer. In more details: if the console has already been configured info->intf is not NULL. On the other hand if the console hasn't been configured yet info->intf is NULL. If the console has just been allocated by the kzalloc then obviously it hasn't been configured and in fact info->intf is NULL. --8323329-1190695860-1334314854=:15151--