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);