iio: proximity: as3935: fix buffer stack trashing

commit 37b1ba2c68 upstream.

Buffer wasn't of a valid size to allow the timestamp, and correct padding.
This patchset also moves the buffer off the stack, and onto the heap.

Cc: george.mccollister@gmail.com
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Matt Ranostay 2016-05-21 20:01:03 -07:00 • committed by Ben Hutchings
commit b428cc797c