* [PATCH 2/2] fs: logfs NULL pointer check added
@ 2012-11-27 11:25 Abhijit Pawar
0 siblings, 0 replies; only message in thread
From: Abhijit Pawar @ 2012-11-27 11:25 UTC (permalink / raw)
To: Joern Engel, Prasad Joshi, logfs; +Cc: linux-kernel, Abhijit Pawar
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@gmail.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-27 11:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-27 11:25 [PATCH 2/2] fs: logfs NULL pointer check added Abhijit Pawar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®