diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2024-12-27 23:32:01 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-13 12:50:02 +0100 |
| commit | ca0b62b2dc9a5d744d1886e9badc6becd47062b6 (patch) | |
| tree | a9afd161f9b818471a2d972a5a12fdc54d121c1b /kernel | |
| parent | b467ed29b58624add3c211fe89818240278e8275 (diff) | |
| download | linux-ca0b62b2dc9a5d744d1886e9badc6becd47062b6.tar.gz linux-ca0b62b2dc9a5d744d1886e9badc6becd47062b6.tar.bz2 linux-ca0b62b2dc9a5d744d1886e9badc6becd47062b6.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')
| -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 39faea30d76a..a5699c5ba58d 100644 --- a/kernel/padata.c +++ b/kernel/padata.c @@ -959,7 +959,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; |
