Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204395
b: refs/heads/master
c: cab6b16
h: refs/heads/master
i:
  204393: 97c4510
  204391: 0ef83a9
v: v3
  • Loading branch information
Stefan Achatz authored and Jiri Kosina committed Jun 21, 2010
1 parent c0fa3c2 commit 92ea692
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dfe5c7b7e710d8ed885068b0fcfa6f66ab685592
refs/heads/master: cab6b16aca4ac12f731a523fe14770add2f9394a
4 changes: 2 additions & 2 deletions trunk/drivers/hid/hid-roccat-kone.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static ssize_t kone_sysfs_read_settings(struct file *fp, struct kobject *kobj,
count = sizeof(struct kone_settings) - off;

mutex_lock(&kone->kone_lock);
memcpy(buf, &kone->settings + off, count);
memcpy(buf, ((char const *)&kone->settings) + off, count);
mutex_unlock(&kone->kone_lock);

return count;
Expand Down Expand Up @@ -332,7 +332,7 @@ static ssize_t kone_sysfs_read_profilex(struct kobject *kobj,
count = sizeof(struct kone_profile) - off;

mutex_lock(&kone->kone_lock);
memcpy(buf, &kone->profiles[number - 1], sizeof(struct kone_profile));
memcpy(buf, ((char const *)&kone->profiles[number - 1]) + off, count);
mutex_unlock(&kone->kone_lock);

return count;
Expand Down

0 comments on commit 92ea692

Please sign in to comment.