From patchwork Sat Aug 14 12:44:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 119574 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7ECj0Sj011779 for ; Sat, 14 Aug 2010 12:45:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756257Ab0HNMo7 (ORCPT ); Sat, 14 Aug 2010 08:44:59 -0400 Received: from pfepa.post.tele.dk ([195.41.46.235]:34930 "EHLO pfepa.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756151Ab0HNMo7 (ORCPT ); Sat, 14 Aug 2010 08:44:59 -0400 Received: from merkur.ravnborg.org (x1-6-00-1e-2a-84-ae-3e.k225.webspeed.dk [80.163.61.94]) by pfepa.post.tele.dk (Postfix) with ESMTP id EB9E4A50029; Sat, 14 Aug 2010 14:44:57 +0200 (CEST) Date: Sat, 14 Aug 2010 14:44:58 +0200 From: Sam Ravnborg To: Michal Marek , linux-kbuild , lkml Subject: [PATCH] kconfig: fix segfault when detecting recursive dependency Message-ID: <20100814124458.GA28387@merkur.ravnborg.org> References: <20100814124329.GA28377@merkur.ravnborg.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100814124329.GA28377@merkur.ravnborg.org> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 14 Aug 2010 12:45:00 +0000 (UTC) diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index e95718f..943712c 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c @@ -937,6 +937,8 @@ static void sym_check_print_recursive(struct symbol *last_sym) sym = stack->sym; next_sym = stack->next ? stack->next->sym : last_sym; prop = stack->prop; + if (prop == NULL) + prop = stack->sym->prop; /* for choice values find the menu entry (used below) */ if (sym_is_choice(sym) || sym_is_choice_value(sym)) {