diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-04 22:26:19 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 11:36:10 -0700 |
commit | f03de82b3f10b2e8b7f75f3d4323ec38d131a99c (patch) | |
tree | 9c33b5844ec4033e2e618ba26e67a0f46691d14b /drivers/staging/iio | |
parent | 1b183e4b93c4e05160d2c8f08b9546dd4752084b (diff) | |
download | kernel_samsung_smdk4412-f03de82b3f10b2e8b7f75f3d4323ec38d131a99c.zip kernel_samsung_smdk4412-f03de82b3f10b2e8b7f75f3d4323ec38d131a99c.tar.gz kernel_samsung_smdk4412-f03de82b3f10b2e8b7f75f3d4323ec38d131a99c.tar.bz2 |
Staging: iio: max1363_core: fix bug in kzalloc call
The operands were switched around :(
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/adc/max1363_core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/iio/adc/max1363_core.c b/drivers/staging/iio/adc/max1363_core.c index 4a77657..905f856 100644 --- 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; |