summaryrefslogtreecommitdiff
path: root/fs/qnx4/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/qnx4/namei.c')
-rw-r--r--fs/qnx4/namei.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/qnx4/namei.c b/fs/qnx4/namei.c
index e62c818..d024505 100644
--- a/fs/qnx4/namei.c
+++ b/fs/qnx4/namei.c
@@ -60,6 +60,10 @@ static struct buffer_head *qnx4_find_entry(int len, struct inode *dir,
struct buffer_head *bh;
*res_dir = NULL;
+ if (!dir->i_sb) {
+ printk(KERN_WARNING "qnx4: no superblock on dir.\n");
+ return NULL;
+ }
bh = NULL;
block = offset = blkofs = 0;
while (blkofs * QNX4_BLOCK_SIZE + offset < dir->i_size) {