padata: test correct variable in ->store function
Subsystems (3)
PATCH 1/1 padata: test correct variable in ->store function
It's testing for ->show but calling ->store().
Signed-off-by Dan Carpenter <[email protected]>
---
Static analysis. I don't know if it affects real life.
kernel/padata.c +1 -1
@@ -1013,7 +1013,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;
Quoted 3 lines · Dan Carpenter
It's testing for ->show but calling ->store().
Signed-off-by Dan Carpenter <[email protected]>
Looks like a copy and paste error.
Acked-by Steffen Klassert <[email protected]>
Herbert, are you going to take this one?
Thanks!