]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
padata: fix sysfs store callback check
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 27 Dec 2024 22:32:01 +0000 (23:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:02 +0000 (12:50 +0100)
commitca0b62b2dc9a5d744d1886e9badc6becd47062b6
treea9afd161f9b818471a2d972a5a12fdc54d121c1b
parentb467ed29b58624add3c211fe89818240278e8275
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>
kernel/padata.c