]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5397e25a67cd058f186c5bd80f8200ae691e3f8
tree38017439414d9c72198018ec415eeba132dd5d96
parentf8a5432705455918e9c43bcc9bc3180a27524c3e
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