diff options
| author | Johan Hovold <[email protected]> | 2019-04-04 08:53:30 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-04-16 13:22:51 +0200 |
| commit | 47830c1127ef166af787caf2f871f23089610a7f (patch) | |
| tree | 55831c67b0bc8a14f21402dbddd33a2b7ec428de /tools/perf/scripts/python | |
| parent | 740a998d58eecf00e0ba7bbe8cf1c0351a91a331 (diff) | |
staging: greybus: power_supply: fix prop-descriptor request size
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: 9d15134d067e ("greybus: power_supply: rework get descriptors")
Cc: stable <[email protected]> # 4.9
Cc: Rui Miguel Silva <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Reviewed-by: Rui Miguel Silva <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions