mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-26 20:58:33 +00:00
drbd: Null pointer deref fix to the large "multi bio rewrite"
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
fc8ce1941d
commit
23ce422748
@ -98,6 +98,10 @@ static struct page *page_chain_del(struct page **head, int n)
|
||||
BUG_ON(!head);
|
||||
|
||||
page = *head;
|
||||
|
||||
if (!page)
|
||||
return NULL;
|
||||
|
||||
while (page) {
|
||||
tmp = page_chain_next(page);
|
||||
if (--n == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user