]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: S3C24XX: Fix potential NULL pointer dereference error
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 21 Nov 2012 15:11:09 +0000 (00:11 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 21 Nov 2012 15:11:09 +0000 (00:11 +0900)
commita3106e292c8072391e2b740838b9de6ea289a567
treebf856fa979bdbed8b26bd2db04ad562b19b9d531
parent4172e13022f15b22a5dcea7aefa59f604cb8fb1a
ARM: S3C24XX: Fix potential NULL pointer dereference error

chan->end is tested for being NULL. However in the event that it is NULL, the
subsequent assignment statement would lead to NULL pointer dereference.
Thus dereferencing it only when it is not NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-s3c24xx/dma.c