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:
d2fffd6
)
staging:iio:adc:max1363 incorrect allocation of available_scanmasks
author
Jonathan Cameron
<jic23@cam.ac.uk>
Fri, 14 Oct 2011 13:46:59 +0000
(14:46 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 17 Oct 2011 22:35:32 +0000
(15:35 -0700)
Longs are not known for being 8 bits.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/max1363_core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/adc/max1363_core.c
b/drivers/staging/iio/adc/max1363_core.c
index 12db93efaf84d80ed4cd95604ac5431cdde14030..eb699ade34b0407f9175692f00cdd7803d101944 100644
(file)
--- a/
drivers/staging/iio/adc/max1363_core.c
+++ b/
drivers/staging/iio/adc/max1363_core.c
@@
-1271,7
+1271,7
@@
static int __devinit max1363_probe(struct i2c_client *client,
st->client = client;
indio_dev->available_scan_masks
- = kzalloc(BITS_TO_LONGS(MAX1363_MAX_CHANNELS)*
+ = kzalloc(BITS_TO_LONGS(MAX1363_MAX_CHANNELS)*
sizeof(long)*
(st->chip_info->num_modes + 1), GFP_KERNEL);
if (!indio_dev->available_scan_masks) {
ret = -ENOMEM;