X-Git-Url: https://git.subgeniuskitty.com/xeon-phi-kernel-module/.git/blobdiff_plain/afe5b8be618e786124f5f08b83efd643233356f2..bc36e74e1cf1e2aede683c472eb75e5f5b6cbbef:/micscif/micscif_api.c diff --git a/micscif/micscif_api.c b/micscif/micscif_api.c index c5dff5c..a318a73 100644 --- a/micscif/micscif_api.c +++ b/micscif/micscif_api.c @@ -2433,13 +2433,13 @@ scif_put_pages(struct scif_range *pages) int ret; struct reg_range_t *window = pages->cookie; struct endpt *ep = (struct endpt *)window->ep; - if (atomic_read(&(&(ep->ref_count))->refcount) > 0) { + if (atomic_read(&(&(&(ep->ref_count))->refcount)->refs) > 0) { kref_get(&(ep->ref_count)); } else { WARN_ON(1); } ret = __scif_put_pages(pages); - if (atomic_read(&(&(ep->ref_count))->refcount) > 0) { + if (atomic_read(&(&(&(ep->ref_count))->refcount)->refs) > 0) { kref_put(&(ep->ref_count), scif_ref_rel); } else { //WARN_ON(1);