login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
12
Re: [PATCH] nconfig: Fix segfault when menu is empty
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Michal Marek
Subject:
Re: [PATCH] nconfig: Fix segfault when menu is empty
Date: Thursday, August 12, 2010 - 3:28 pm
On Mon, Aug 02, 2010 at 11:59:31AM +0200, Andrej Gelenberg wrote:
quoted text
> there is a small bug in nconf, which cause segfault in empty menus > (press right arrow in empty menu). Patch is attached. > > Regards, > Andrej Gelenberg
quoted text
> From 60265c2f3db2616d3dc493785a47a301f73419bd Mon Sep 17 00:00:00 2001 > From: Andrej Gelenberg <andrej.gelenberg@udo.edu> > Date: Mon, 2 Aug 2010 11:41:36 +0200 > Subject: [PATCH] nconfig: Fix segfault when menu is empty > > nconf crush with segfault if press right arrow in empty menu. > > Signed-off-by: Andrej Gelenberg <andrej.gelenberg@udo.edu> > --- > scripts/kconfig/nconf.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c > index 762caf8..3db3ca6 100644 > --- a/scripts/kconfig/nconf.c > +++ b/scripts/kconfig/nconf.c > @@ -676,6 +676,7 @@ static void *item_data(void) > struct mitem *mcur; > > cur = current_item(curses_menu); > + if ( ! cur ) return NULL; > mcur = (struct mitem *) item_userptr(cur); > return mcur->usrptr;
Applied after fixing indentation (see Documentation/CodingStyle). Michal --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH] nconfig: Fix segfault when menu is empty
, Andrej Gelenberg
, (Mon Aug 2, 2:59 am)
Re: [PATCH] nconfig: Fix segfault when menu is empty
, Michal Marek
, (Thu Aug 12, 3:28 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Trent Waddington
Re: Gaming Interface
Pekka Enberg
Re: latest -git: suspend: unable to handle kernel paging request (was Re: no_conso...
Dan Carpenter
Re: [patch] dma-debug: off by one issue
Adrian McMenamin
time_after - what on earth???
Paul E. McKenney
Re: [PATCH, RFC] v4 scalable classic RCU implementation
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
linux-netdev
:
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
cpumask: make irq_set_affinity() take a const struct cpumask
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
i7core_edac: Probe on Xeons eariler
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Ryan McBride
Re: Packets Per Second Limit?
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Marco Peereboom
Re: Singularity OS
Colocation donated by:
Syndicate