All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 1/1] ocfs2: error handling for ocfs2_setup_io_locks()
@ 2008-06-24  6:34 wengang wang
  0 siblings, 0 replies; only message in thread
From: wengang wang @ 2008-06-24  6:34 UTC (permalink / raw)
  To: ocfs2-devel

in case of no-memory, ocfs2_buffer_lock_ctxt_insert may returns -ENOMEM;
then there may leave an unexpected up_read() on mm->mmap_sem.

this patch fixes that problem.

this patch is based on 1.2 svn.
since this code is removed in kernel mainline source, no patch for mainline.

Signed-off-by Wenwen Wang <wen.gang.wang@oracle.com>
---
 mmap.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mmap.patch
Url: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20080624/7a9a9b4b/attachment.pl 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-24  6:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-24  6:34 [Ocfs2-devel] [PATCH 1/1] ocfs2: error handling for ocfs2_setup_io_locks() wengang wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.