Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 515ad4d6 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

hid: roccat-kone: fix off-by-one bug in attributes



Stefan pointed out that I messed up the array for the binary attributes,
so fix it properly.

Reported-by: default avatarStefan Achatz <erazor_de@users.sourceforge.net>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 975b53cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -386,7 +386,7 @@ static struct bin_attribute bin_attr_profile##number = { \
	.size = sizeof(struct kone_profile),			\
	.read = kone_sysfs_read_profilex,			\
	.write = kone_sysfs_write_profilex,			\
	.private = &profile_numbers[number],			\
	.private = &profile_numbers[number-1],			\
};
PROFILE_ATTR(1);
PROFILE_ATTR(2);