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:
1b183e4
)
Staging: iio: max1363_core: fix bug in kzalloc call
author
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 5 May 2010 05:26:19 +0000
(22:26 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 11 May 2010 18:36:10 +0000
(11:36 -0700)
The operands were switched around :(
Cc: 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 4a77657285dac6e185c4507c06934767ae323504..905f8560d31f94d0a4651d54ab8b8191ca69d1f4 100644
(file)
--- a/
drivers/staging/iio/adc/max1363_core.c
+++ b/
drivers/staging/iio/adc/max1363_core.c
@@
-958,9
+958,8
@@
static int __devinit max1363_probe(struct i2c_client *client,
}
st->indio_dev->available_scan_masks
- = kzalloc(GFP_KERNEL,
- sizeof(*st->indio_dev->available_scan_masks)*
- (st->chip_info->num_modes + 1));
+ = kzalloc(sizeof(*st->indio_dev->available_scan_masks)*
+ (st->chip_info->num_modes + 1), GFP_KERNEL);
if (!st->indio_dev->available_scan_masks) {
ret = -ENOMEM;
goto error_free_device;