iio:buffer: Wrong sized allocation of demux table elements.
authorJonathan Cameron <jic23@kernel.org>
Fri, 8 Aug 2014 08:43:00 +0000 (09:43 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 8 Aug 2014 10:22:06 +0000 (11:22 +0100)
commit7cdca1784c6e1c9bacf053847676df53eec7b5ea
tree37aa70aed6368e886210ded547fb9f85961ac4f5
parent145b0a5d18565615724045dbc2ada32324faa395
iio:buffer: Wrong sized allocation of demux table elements.

The size of the allocation is currently set to the size of the pointer
rather than the structure we should actually be allocating.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reported-by: kbuild@01.org
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/iio/industrialio-buffer.c