]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
firmware: meson-sm: Check for buffer output size
authorCarlo Caione <carlo@endlessm.com>
Fri, 3 Mar 2017 15:17:58 +0000 (16:17 +0100)
committerKevin Hilman <khilman@baylibre.com>
Thu, 23 Mar 2017 19:22:32 +0000 (12:22 -0700)
commit83e007a0c6a3f4bfdf8f3f8d0fc266cda189b3d6
tree7f5abab493f662317dc23ae0bf857e750c2917ff
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
firmware: meson-sm: Check for buffer output size

After the data is read by the secure monitor driver it is being copied
in the output buffer checking only the size of the bounce buffer but not
the size of the output buffer.

Fix this in the secure monitor driver slightly changing the API. Fix
also the efuse driver that it is the only driver using this API to not
break bisectability.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> # for nvmem
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
drivers/firmware/meson/meson_sm.c
drivers/nvmem/meson-efuse.c
include/linux/firmware/meson/meson_sm.h