mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 12:57:46 +00:00
xen-netback: double free on unload
There is a typo here, "i" vs "j", so we would crash on module_exit(). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5243b6ac9e
commit
07cc61bfc0
@ -1968,8 +1968,8 @@ static void __exit netback_fini(void)
|
|||||||
del_timer_sync(&netbk->net_timer);
|
del_timer_sync(&netbk->net_timer);
|
||||||
kthread_stop(netbk->task);
|
kthread_stop(netbk->task);
|
||||||
for (j = 0; j < MAX_PENDING_REQS; j++) {
|
for (j = 0; j < MAX_PENDING_REQS; j++) {
|
||||||
if (netbk->mmap_pages[i])
|
if (netbk->mmap_pages[j])
|
||||||
__free_page(netbk->mmap_pages[i]);
|
__free_page(netbk->mmap_pages[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user