summaryrefslogtreecommitdiffstats
path: root/init/calibrate.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-11-19 09:21:24 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-12-08 18:10:29 +0000
commit1f310f77efa25660fcbf58629a96f8ee6aac85ba (patch)
treeed926f24cc4a4e24428cb3883f448dc05be4d316 /init/calibrate.c
parent11d7c8d3b1259c303fb52789febed58f0bc35ad1 (diff)
downloadlinux-1f310f77efa25660fcbf58629a96f8ee6aac85ba.tar.gz
linux-1f310f77efa25660fcbf58629a96f8ee6aac85ba.tar.bz2
linux-1f310f77efa25660fcbf58629a96f8ee6aac85ba.zip
iio: adc: intel_mrfld_adc: Allocating too much data in probe()
This probe function is passing the wrong size to devm_iio_device_alloc(). It is supposed to be the size of the private data. Fortunately, sizeof(*indio_dev) is larger than sizeof(struct mrfld_adc) so it doesn't cause a runtime problem. Fixes: a7118662734a ("iio: adc: intel_mrfld_adc: Add Basin Cove ADC driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions