diff options
author | Yingtai Xie <xieyingtai@huawei.com> | 2014-08-07 01:03:54 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-07 03:01:13 +0200 |
commit | 981035b47d7da8ba7c153ed431bf515f593853d8 (patch) | |
tree | 675aab83a7118389728f0dbcc733a3d3cf18ae8d /fs/ocfs2/dlm/dlmdomain.c | |
parent | fs/squashfs/super.c: logging cleanup (diff) | |
download | linux-981035b47d7da8ba7c153ed431bf515f593853d8.tar.xz linux-981035b47d7da8ba7c153ed431bf515f593853d8.zip |
ocfs2: correctly check the return value of ocfs2_search_extent_list
ocfs2_search_extent_list may return -1, so we should check the return
value in ocfs2_split_and_insert, otherwise it may cause array index out of
bound.
And ocfs2_search_extent_list can only return value less than
el->l_next_free_rec, so check if it is equal or larger than
le16_to_cpu(el->l_next_free_rec) is meaningless.
Signed-off-by: Yingtai Xie <xieyingtai@huawei.com>
Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/dlm/dlmdomain.c')
0 files changed, 0 insertions, 0 deletions