login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
9
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Trond Myklebust
Subject:
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
Date: Tuesday, October 9, 2007 - 8:00 am
On Mon, 2007-10-08 at 22:01 +0200, Roel Kluin wrote:
quoted text
> Greg KH wrote: > > @@ -477,10 +479,15 @@ nlmsvc_testlock(struct svc_rqst *rqstp, > > if (block == NULL) { > struct file_lock *conf = kzalloc(sizeof(*conf), GFP_KERNEL); > + struct nlm_host *host; > > if (conf == NULL) > return nlm_granted; > - block = nlmsvc_create_block(rqstp, file, lock, cookie); > + /* Create host handle for callback */ > + host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len); > + if (host == NULL) > + return nlm_lck_denied_nolocks; > + block = nlmsvc_create_block(rqstp, host, file, lock, cookie); > if (block == NULL) { > kfree(conf); > return nlm_granted; > > To be frankly I don't know what this is about, but shouldn't conf be freed if host == NULL?
Thanks for spotting this! Greg, should I resend this patch, or would you prefer an incremental fix? Cheers Trond -
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 00/12] 2.6.22.10 -stable review
, Greg KH
, (Mon Oct 8, 11:05 am)
[patch 01/12] scsi_transport_spi: fix domain validation fa ...
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 02/12] sky2: reduce impact of watchdog timer
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 03/12] sky2: fix VLAN receive processing
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 04/12] sky2: fix transmit state on resume
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 05/12] libata: update drive blacklists
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 06/12] Fix ppp_mppe kernel stack usage.
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 07/12] i2c-algo-bit: Read block data bugfix
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 08/12] NLM: Fix a circular lock dependency in lockd
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 10/12] Fix timer_stats printout of events/sec
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 11/12] SELinux: clear parent death signal on SID tr ...
, Greg KH
, (Mon Oct 8, 11:06 am)
[patch 12/12] i386: Use global flag to disable broken loca ...
, Greg KH
, (Mon Oct 8, 11:06 am)
Re: [patch 00/12] 2.6.22.10 -stable review
, Greg KH
, (Mon Oct 8, 11:09 am)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Roel Kluin
, (Mon Oct 8, 1:01 pm)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Trond Myklebust
, (Tue Oct 9, 8:00 am)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Greg KH
, (Tue Oct 9, 8:13 am)
Re: [patch 09/12] Fix SMP poweroff hangs
, Olof Johansson
, (Tue Oct 9, 8:17 am)
Re: [patch 08/12] NLM: Fix a circular lock dependency in lockd
, Trond Myklebust
, (Tue Oct 9, 8:27 am)
Re: [stable] [patch 08/12] NLM: Fix a circular lock depend ...
, Greg KH
, (Tue Oct 9, 1:41 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Tue Oct 9, 3:20 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Thomas Gleixner
, (Tue Oct 9, 4:21 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Linus Torvalds
, (Tue Oct 9, 4:27 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Greg KH
, (Tue Oct 9, 4:28 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Thomas Gleixner
, (Tue Oct 9, 4:35 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Olof Johansson
, (Tue Oct 9, 5:03 pm)
[PATCH] powerpc: don't enable cpu hotplug on mpic-based ps ...
, Olof Johansson
, (Tue Oct 9, 5:08 pm)
Re: [PATCH] powerpc: don't enable cpu hotplug on mpic-base ...
, Stephen Rothwell
, (Tue Oct 9, 5:18 pm)
[PATCH v2] powerpc: don't enable cpu hotplug on mpic-based ...
, Olof Johansson
, (Tue Oct 9, 5:38 pm)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Linus Torvalds
, (Tue Oct 9, 10:29 pm)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-b ...
, Milton Miller
, (Wed Oct 10, 3:08 am)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-b ...
, Olof Johansson
, (Wed Oct 10, 9:43 am)
Re: [stable] [patch 09/12] Fix SMP poweroff hangs
, Paul Mackerras
, (Wed Oct 10, 5:24 pm)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-b ...
, Paul Mackerras
, (Wed Oct 10, 10:52 pm)
Re: [PATCH v2] powerpc: don't enable cpu hotplug on mpic-b ...
, Olof Johansson
, (Wed Oct 10, 10:59 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Uwe Kleine-König
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Ingo Molnar
Re: [GIT PULL] time.c - respin
Alexander van Heukelum
Re: [PATCH] bitops: simplify generic bit finding functions
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Petr Baudis
Re: PPC SHA-1 Updates in "pu"
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
V4L/DVB: AZ6027: Add support for Technisat V1 device
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
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...
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
Darrin Chandler
Re: strange output on openbsd C code
KURS ENGLESKOG JEZIKA NA 10 CD-a
AUDIO-VIZUELNA METODA UCENJA ENGLESKOG JEZIKA na 10 CD-a
Colocation donated by:
Syndicate