Title: [8797] trunk/drivers/staging/iio/adc/max1363_core.c: Staging: iio: max1363_core: fix bug in kzalloc call
- Revision
- 8797
- Author
- vapier
- Date
- 2010-05-23 00:11:49 -0400 (Sun, 23 May 2010)
Log Message
Staging: iio: max1363_core: fix bug in kzalloc call
From: Greg Kroah-Hartman <[email protected]>
The operands were switched around :(
Modified Paths
Diff
Modified: trunk/drivers/staging/iio/adc/max1363_core.c (8796 => 8797)
--- trunk/drivers/staging/iio/adc/max1363_core.c 2010-05-23 04:11:31 UTC (rev 8796)
+++ trunk/drivers/staging/iio/adc/max1363_core.c 2010-05-23 04:11:49 UTC (rev 8797)
@@ -958,9 +958,8 @@
}
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;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits