dma: pl330: add guard codes for pre-released request
authorLee Yongjin <yongjin0.lee@samsung.com>
Fri, 26 Jul 2013 08:59:04 +0000 (17:59 +0900)
committerTaekki Kim <taekki.kim@samsung.com>
Mon, 14 May 2018 05:42:46 +0000 (14:42 +0900)
commitc6da520a7044ac3e8c3f0fd4a191c875d55b3ea3
tree5b7c9012689def483f3991ebefdfc515233d49da
parentffbb1aed10fe7cac2f59775d338bda6cfdb2e9ab
dma: pl330: add guard codes for pre-released request

Rarely, pl330_update() function is called for already freed request.
In that case, pl330_update gets id which value is -1, then kernel panic is occurred.

Change-Id: I6e426e576e2bba25891a280e8539d0c5b3dba7fe
Signed-off-by: Lee Yongjin <yongjin0.lee@samsung.com>
drivers/dma/pl330.c