projects
/
profile
/
ivi
/
syslinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ext2: add additional check to ext2 loader
[profile/ivi/syslinux.git]
/
core
/
fs
/
ext2
/
ext2.c
diff --git
a/core/fs/ext2/ext2.c
b/core/fs/ext2/ext2.c
index
716670c
..
7988faa
100644
(file)
--- a/
core/fs/ext2/ext2.c
+++ b/
core/fs/ext2/ext2.c
@@
-164,6
+164,9
@@
static struct inode *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr)
struct inode *inode;
e_inode = ext2_get_inode(fs, inr);
+ if (!e_inode)
+ return NULL;
+
if (!(inode = alloc_inode(fs, inr, sizeof(struct ext2_pvt_inode))))
return NULL;
fill_inode(inode, e_inode);