Files
linux/drivers/staging/greybus
Johan Hovold 2d70c518e7 staging: greybus: power_supply: fix prop-descriptor request size
commit 47830c1127 upstream.

Since moving the message buffers off the stack, the dynamically
allocated get-prop-descriptor request buffer is incorrectly sized due to
using the pointer rather than request-struct size when creating the
operation.

Fortunately, the pointer size is always larger than this one-byte
request, but this could still cause trouble on the remote end due to the
unexpected message size.

Fixes: 9d15134d06 ("greybus: power_supply: rework get descriptors")
Cc: stable <stable@vger.kernel.org>     # 4.9
Cc: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-10 17:52:07 +02:00
..
2016-07-28 07:30:13 -07:00
2016-08-12 17:38:19 +02:00
2016-07-14 16:53:55 -05:00
2016-07-28 07:30:13 -07:00
2016-04-25 11:08:30 -07:00
2016-07-14 16:53:55 -05:00
2016-08-26 13:21:13 +02:00