projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
949db15
)
EDAC: Test correct variable in ->store function
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 26 Jan 2013 07:49:24 +0000
(10:49 +0300)
committer
Borislav Petkov
<bp@suse.de>
Wed, 30 Jan 2013 10:38:11 +0000
(11:38 +0100)
We're testing for ->show but calling ->store().
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_pci_sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/edac/edac_pci_sysfs.c
b/drivers/edac/edac_pci_sysfs.c
index dc6e905ee1a5402126496bd06838302a1b26165f..0056c4dae9d52cc24985200dbb58b724be73c3ed 100644
(file)
--- a/
drivers/edac/edac_pci_sysfs.c
+++ b/
drivers/edac/edac_pci_sysfs.c
@@
-256,7
+256,7
@@
static ssize_t edac_pci_dev_store(struct kobject *kobj,
struct edac_pci_dev_attribute *edac_pci_dev;
edac_pci_dev = (struct edac_pci_dev_attribute *)attr;
- if (edac_pci_dev->s
how
)
+ if (edac_pci_dev->s
tore
)
return edac_pci_dev->store(edac_pci_dev->value, buffer, count);
return -EIO;
}