diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-01-26 10:49:24 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2013-01-30 11:38:11 +0100 |
commit | 8024c4c0b1057d1cd811fc9c3f88f81de9729fcd (patch) | |
tree | 12d3c11b1c64c5a7ab44cc05a2161f48c4673c49 /drivers/edac | |
parent | 949db153b6466c6f7cad5a427ecea94985927311 (diff) | |
download | linux-stable-8024c4c0b1057d1cd811fc9c3f88f81de9729fcd.tar.gz linux-stable-8024c4c0b1057d1cd811fc9c3f88f81de9729fcd.tar.bz2 linux-stable-8024c4c0b1057d1cd811fc9c3f88f81de9729fcd.zip |
EDAC: Test correct variable in ->store function
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>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/edac_pci_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/edac_pci_sysfs.c b/drivers/edac/edac_pci_sysfs.c index dc6e905ee1a5..0056c4dae9d5 100644 --- 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->show) + if (edac_pci_dev->store) return edac_pci_dev->store(edac_pci_dev->value, buffer, count); return -EIO; } |