mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-14 17:53:39 +00:00
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: 5e017dc3f8bc ("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>
This commit is contained in:
parent
730f67d8b8
commit
9ff6e943bc
@ -970,7 +970,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user