]> git.baikalelectronics.ru Git - kernel.git/commit
stating: ccree: fix allocation of void sized buf
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 7 Jan 2018 12:14:34 +0000 (12:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:29:36 +0000 (16:29 +0100)
commit1ca01657434dfc7c1aef6466d7a04c244212b662
tree74e98618cf06d07e0ea217f4aaa2e8768f7c3888
parenteebd1169f099f42d45199bf15a094090b41a1b32
stating: ccree: fix allocation of void sized buf

We were allocating buffers using sizeof(*struct->field) where field was
type void.  Fix it by having a local variable with the real type.

Cc: stable@vger.kernel.org
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_ivgen.c
drivers/staging/ccree/ssi_sram_mgr.c