提交 f03de82b 编写于 作者: G Greg Kroah-Hartman

Staging: iio: max1363_core: fix bug in kzalloc call

The operands were switched around :(

Cc: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 1b183e4b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册