[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1354015558-9030-1-git-send-email-abhi.c.pawar@gmail.com>
Date: Tue, 27 Nov 2012 16:55:58 +0530
From: Abhijit Pawar <abhi.c.pawar@...il.com>
To: Joern Engel <joern@...fs.org>,
Prasad Joshi <prasadjoshi.linux@...il.com>, logfs@...fs.org
Cc: linux-kernel@...r.kernel.org,
Abhijit Pawar <abhi.c.pawar@...il.com>
Subject: [PATCH 2/2] fs: logfs NULL pointer check added
This patches fixes the case where the NULL inode may be passed to get the page for writing.
Signed-off-by: Abhijit Pawar <abhi.c.pawar@...il.com>
---
fs/logfs/readwrite.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c
index 53596ce..55b45fb 100644
--- a/fs/logfs/readwrite.c
+++ b/fs/logfs/readwrite.c
@@ -2201,6 +2201,7 @@ void btree_write_block(struct logfs_block *block)
int err, cookie;
inode = logfs_safe_iget(block->sb, block->ino, &cookie);
+ BUG_ON(!inode);
page = logfs_get_write_page(inode, block->bix, block->level);
BUG_ON(!page);
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists