]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7326/2: PL330: fix null pointer dereference in pl330_chan_ctrl()
authorJavi Merino <javi.merino@arm.com>
Wed, 15 Feb 2012 16:36:39 +0000 (17:36 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 15 Feb 2012 21:10:49 +0000 (21:10 +0000)
commitf4d5fcc811c0bc376543baccf10b65eb3e17042f
treea1f97d7fd9af85b6f505c166222152192c11c1bb
parent1f242160f982b569a0856f7a58f41b2cf926f25a
ARM: 7326/2: PL330: fix null pointer dereference in pl330_chan_ctrl()

This fixes the thrd->req_running field being accessed before thrd
is checked for null. The error was introduced in

   7d8bb85: ARM: 7237/1: PL330: Fix driver freeze

Reference: <1326458191-23492-1-git-send-email-mans.rullgard@linaro.org>

Cc: stable@kernel.org
Signed-off-by: Mans Rullgard <mans.rullgard@linaro.org>
Acked-by: Javi Merino <javi.merino@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/pl330.c