summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2015-11-18 16:26:06 +0100
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>2015-11-18 16:26:06 +0100
commit5eb3c40b20f23234a3f3848c2e02c83fb28b3dc2 (patch)
treef8c146e5126a2f21803381ab2be9be2b6110a154 /drivers/pci
parentb4081dc0d04cad948dc5575a9ccdb2abb37ffdfa (diff)
parent1f2ce4a2e7aea3a2123b17aff62a80553df31e21 (diff)
downloadlinux-rt-5eb3c40b20f23234a3f3848c2e02c83fb28b3dc2.tar.gz
Merge tag 'v4.1.13' into linux-4.1.y-rt
This is the 4.1.13 stable release
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 312f23a8429c..92618686604c 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -216,7 +216,7 @@ static ssize_t numa_node_store(struct device *dev,
if (ret)
return ret;
- if (!node_online(node))
+ if (node >= MAX_NUMNODES || !node_online(node))
return -EINVAL;
add_taint(TAINT_FIRMWARE_WORKAROUND, LOCKDEP_STILL_OK);