iio: proximity: as3935: fix buffer stack trashing
authorMatt Ranostay <mranostay@gmail.com>
Sun, 22 May 2016 03:01:03 +0000 (20:01 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 May 2016 19:54:15 +0000 (20:54 +0100)
commit37b1ba2c68cfbe37f5f45bb91bcfaf2b016ae6a1
tree38017439414d9c72198018ec415eeba132dd5d96
parent7d0643634ea567969bf3f3ed6193a9d6fc75653b
iio: proximity: as3935: fix buffer stack trashing

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>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/proximity/as3935.c