Skip to content
Snippets Groups Projects
Commit 794e64d5 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -484,7 +484,8 @@ static void process_page(unsigned long data) ...@@ -484,7 +484,8 @@ 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;
page->idx = page->bio->bi_idx; if (page->bio)
page->idx = page->bio->bi_idx;
} }
pci_unmap_page(card->dev, desc->data_dma_handle, pci_unmap_page(card->dev, desc->data_dma_handle,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment