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,7 +484,8 @@ static void process_page(unsigned long data)
page->idx++;
if (page->idx >= bio->bi_vcnt) {
page->bio = bio->bi_next;
page->idx = page->bio->bi_idx;
if (page->bio)
page->idx = page->bio->bi_idx;
}
pci_unmap_page(card->dev, desc->data_dma_handle,
......
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