Skip to content

Commit 74b650a

Browse files
t-8chopsiff
authored andcommitted
padata: fix sysfs store callback check
[ Upstream commit 9ff6e94 ] 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: Sasha Levin <sashal@kernel.org> (cherry picked from commit 2638227260ac8768f30eaec59fadbda05cf85c97)
1 parent f0ed703 commit 74b650a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/padata.c

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

968968
pinst = kobj2pinst(kobj);
969969
pentry = attr2pentry(attr);
970-
if (pentry->show)
970+
if (pentry->store)
971971
ret = pentry->store(pinst, attr, buf, count);
972972

973973
return ret;

0 commit comments

Comments
 (0)