diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_init_chip.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_user_pages.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_init_chip.c b/drivers/infiniband/hw/ipath/ipath_init_chip.c index 64aeefbd2a5d..077879c0bdb5 100644 --- a/drivers/infiniband/hw/ipath/ipath_init_chip.c +++ b/drivers/infiniband/hw/ipath/ipath_init_chip.c | |||
@@ -455,7 +455,7 @@ static void init_shadow_tids(struct ipath_devdata *dd) | |||
455 | if (!addrs) { | 455 | if (!addrs) { |
456 | ipath_dev_err(dd, "failed to allocate shadow dma handle " | 456 | ipath_dev_err(dd, "failed to allocate shadow dma handle " |
457 | "array, no expected sends!\n"); | 457 | "array, no expected sends!\n"); |
458 | vfree(dd->ipath_pageshadow); | 458 | vfree(pages); |
459 | dd->ipath_pageshadow = NULL; | 459 | dd->ipath_pageshadow = NULL; |
460 | return; | 460 | return; |
461 | } | 461 | } |
diff --git a/drivers/infiniband/hw/ipath/ipath_user_pages.c b/drivers/infiniband/hw/ipath/ipath_user_pages.c index 0190edc8044e..855911e7396d 100644 --- a/drivers/infiniband/hw/ipath/ipath_user_pages.c +++ b/drivers/infiniband/hw/ipath/ipath_user_pages.c | |||
@@ -209,20 +209,20 @@ void ipath_release_user_pages_on_close(struct page **p, size_t num_pages) | |||
209 | 209 | ||
210 | mm = get_task_mm(current); | 210 | mm = get_task_mm(current); |
211 | if (!mm) | 211 | if (!mm) |
212 | goto bail; | 212 | return; |
213 | 213 | ||
214 | work = kmalloc(sizeof(*work), GFP_KERNEL); | 214 | work = kmalloc(sizeof(*work), GFP_KERNEL); |
215 | if (!work) | 215 | if (!work) |
216 | goto bail_mm; | 216 | goto bail_mm; |
217 | 217 | ||
218 | goto bail; | ||
219 | |||
220 | INIT_WORK(&work->work, user_pages_account); | 218 | INIT_WORK(&work->work, user_pages_account); |
221 | work->mm = mm; | 219 | work->mm = mm; |
222 | work->num_pages = num_pages; | 220 | work->num_pages = num_pages; |
223 | 221 | ||
222 | schedule_work(&work->work); | ||
223 | return; | ||
224 | |||
224 | bail_mm: | 225 | bail_mm: |
225 | mmput(mm); | 226 | mmput(mm); |
226 | bail: | ||
227 | return; | 227 | return; |
228 | } | 228 | } |