git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hwmon: (ads1015) Fix out-of-bounds array access
[pandora-kernel.git]
/
drivers
/
hwmon
/
ads1015.c
diff --git
a/drivers/hwmon/ads1015.c
b/drivers/hwmon/ads1015.c
index
c9780ae
..
2f14cad
100644
(file)
--- a/
drivers/hwmon/ads1015.c
+++ b/
drivers/hwmon/ads1015.c
@@
-200,6
+200,7
@@
static int ads1015_get_channels_config_of(struct i2c_client *client)
dev_err(&client->dev,
"invalid gain on %s\n",
node->full_name);
+ return -EINVAL;
}
}
@@
-210,6
+211,7
@@
static int ads1015_get_channels_config_of(struct i2c_client *client)
dev_err(&client->dev,
"invalid data_rate on %s\n",
node->full_name);
+ return -EINVAL;
}
}