]> 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)
commitdef3f3b6aeb3b80531187cb04bf1c7c21ef01467
tree74e98618cf06d07e0ea217f4aaa2e8768f7c3888
parent9a00beb9f4dcf558713111e442c3b380eda30bb5
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