diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-27 23:32:01 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 09:57:30 +0100 |
| commit | 818a433558256125ebcd4dfe8512186769d2586a (patch) | |
| tree | ceef6cf18f7a68166a7ab131c23cd29f099dd26a /kernel/padata.c | |
| parent | b777b14c2a4a4e2322daf8e8ffd42d2b88831b17 (diff) | |
| download | linux-818a433558256125ebcd4dfe8512186769d2586a.tar.gz linux-818a433558256125ebcd4dfe8512186769d2586a.tar.bz2 linux-818a433558256125ebcd4dfe8512186769d2586a.zip | |
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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/padata.c')
| -rw-r--r-- | kernel/padata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/padata.c b/kernel/padata.c index d899f34558af..ada4a0d137d9 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -977,7 +977,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; |
