Commit 794e64d5 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

Fix NULL dereference in umem.c

Fix NULL dereference in umem.c
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
Tested-by: default avatarDave Chinner <dgc@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 76832d84
...@@ -484,6 +484,7 @@ static void process_page(unsigned long data) ...@@ -484,6 +484,7 @@ static void process_page(unsigned long data)
page->idx++; page->idx++;
if (page->idx >= bio->bi_vcnt) { if (page->idx >= bio->bi_vcnt) {
page->bio = bio->bi_next; page->bio = bio->bi_next;
if (page->bio)
page->idx = page->bio->bi_idx; page->idx = page->bio->bi_idx;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment