From: Aaron Taylor Date: Sun, 2 May 2021 04:46:55 +0000 (-0700) Subject: Updated micscif/micscif_api.c to new location for atomic_t element. X-Git-Tag: first-build~7 X-Git-Url: https://git.subgeniuskitty.com/xeon-phi-kernel-module/.git/commitdiff_plain/bc36e74e1cf1e2aede683c472eb75e5f5b6cbbef Updated micscif/micscif_api.c to new location for atomic_t element. --- 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);