MLK-11894 imx: sema4: fix the out of bounds write
authorRichard Zhu <Richard.Zhu@freescale.com>
Thu, 26 Nov 2015 01:36:48 +0000 (09:36 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:29 +0000 (14:49 -0500)
commit89ab9c0c6ee0d7b46a09d3a0ecc1324eafb283c6
tree55ccb4707c5153653587180da26dbb5685cec0f1
parent0154db3a86b8150fa62ce1d5f771293790ced19a
MLK-11894 imx: sema4: fix the out of bounds write

Fix the out of bounds write, and the dereference before
null check.

Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
(cherry picked from commit 775ff0727166535e9b1ba1f70167e6a33fee5f13)
drivers/char/imx_amp/imx_sema4.c
include/linux/imx_sema4.h