|
@@ -144,7 +144,9 @@ void mthca_array_clear(struct mthca_array *array, int index)
|
|
|
if (--array->page_list[p].used == 0) {
|
|
|
free_page((unsigned long) array->page_list[p].page);
|
|
|
array->page_list[p].page = NULL;
|
|
|
- }
|
|
|
+ } else
|
|
|
+ array->page_list[p].page[index & (PAGE_SIZE /
|
|
|
+ sizeof (void *) - 1)] = NULL;
|
|
|
|
|
|
if (array->page_list[p].used < 0)
|
|
|
pr_debug("Array %p index %d page %d with ref count %d < 0\n",
|