Skip to content

Commit 75d0c62

Browse files
committed
padata: fix sysfs store callback check
JIRA: https://issues.redhat.com/browse/RHEL-81522 commit 9ff6e94 Author: Thomas Weißschuh <linux@weissschuh.net> Date: Fri, 27 Dec 2024 23:32:01 +0100 padata: fix sysfs store callback check padata_sysfs_store() was copied from padata_sysfs_show() but this check was not adapted. Today there is no attribute which can fail this check, but if there is one it may as well be correct. Fixes: 5e017dc ("padata: Added sysfs primitives to padata subsystem") Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Waiman Long <longman@redhat.com>
1 parent fc7984c commit 75d0c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/padata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ static ssize_t padata_sysfs_store(struct kobject *kobj, struct attribute *attr,
970970

971971
pinst = kobj2pinst(kobj);
972972
pentry = attr2pentry(attr);
973-
if (pentry->show)
973+
if (pentry->store)
974974
ret = pentry->store(pinst, attr, buf, count);
975975

976976
return ret;

0 commit comments

Comments
 (0)