projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbf896f
)
ocfs2: fix bad pointer cast
author
Darrick J. Wong
<darrick.wong@oracle.com>
Sat, 10 Dec 2016 00:10:15 +0000
(16:10 -0800)
committer
Darrick J. Wong
<darrick.wong@oracle.com>
Sat, 10 Dec 2016 20:39:45 +0000
(12:39 -0800)
generic/188 triggered a dmesg stack trace because the dio completion
was casting a buffer head to an on-disk inode, which is whacky.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/ocfs2/aops.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ocfs2/aops.c
b/fs/ocfs2/aops.c
index 3c531f108a213c524b58f88cbbace442b596a924..3372d82d12b66b11e73fbdb03c986c4506a5c12e 100644
(file)
--- a/
fs/ocfs2/aops.c
+++ b/
fs/ocfs2/aops.c
@@
-2317,7
+2317,7
@@
static int ocfs2_dio_end_io_write(struct inode *inode,
mlog_errno(ret);
}
- di = (struct ocfs2_dinode *)di_bh;
+ di = (struct ocfs2_dinode *)di_bh
->b_data
;
ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh);