padata: fix sysfs store callback check
[ Upstream commit 9ff6e943bce67d125781fe4780a5d6f072dc44c0 ]
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: 5e017dc3f8 ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
19f17a762e
commit
e6e97a24de
@@ -967,7 +967,7 @@ static ssize_t padata_sysfs_store(struct kobject *kobj, struct attribute *attr,
|
||||
|
||||
pinst = kobj2pinst(kobj);
|
||||
pentry = attr2pentry(attr);
|
||||
if (pentry->show)
|
||||
if (pentry->store)
|
||||
ret = pentry->store(pinst, attr, buf, count);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user