Two sysfs files do not pay attention to the file offset when
reading data. Fix that.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
                rcu_read_unlock();
                return -EINVAL;
        }
-       memcpy(buf, &cc_state->cct, count);
+       memcpy(buf, (void *)&cc_state->cct + pos, count);
        rcu_read_unlock();
 
        return count;
                rcu_read_unlock();
                return -EINVAL;
        }
-       memcpy(buf, &cc_state->cong_setting, count);
+       memcpy(buf, (void *)&cc_state->cong_setting + pos, count);
        rcu_read_unlock();
 
        return count;