From bc36e74e1cf1e2aede683c472eb75e5f5b6cbbef Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Sat, 1 May 2021 21:46:55 -0700 Subject: [PATCH] Updated micscif/micscif_api.c to new location for atomic_t element. --- micscif/micscif_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1