Commit 07cc61bf authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

xen-netback: double free on unload

There is a typo here, "i" vs "j", so we would crash on module_exit().
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5243b6ac
...@@ -1968,8 +1968,8 @@ static void __exit netback_fini(void) ...@@ -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]);
} }
} }
......
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