Skip to contentSkip to conversation

ocfs2: error handling for ocfs2_setup_io_locks()

PATCH New wengang wang 1 participant 1 message Jun 24, 2008 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2: error handling for ocfs2_setup_io_locks()

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 <[email protected]>

---
 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