]> git.baikalelectronics.ru Git - kernel.git/commit
staging: omapdrm: Fix error paths during dmm init
authorAndy Gross <andy.gross@ti.com>
Thu, 24 May 2012 16:43:32 +0000 (11:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jun 2012 15:43:19 +0000 (08:43 -0700)
commit3eb43b8761ad9dae21f000d48de3f5f4bb1dd204
tree4a4bf3cf3693f963641fb524b6439fffef9348cf
parente388606d527c6c6e54d575fa1c2b5851306ddb44
staging: omapdrm: Fix error paths during dmm init

Failures during the dmm probe can cause the kernel to crash.  Moved
the spinlock to a global and moved list initializations immediately
after the allocation of the dmm private structure.

Signed-off-by: Andy Gross <andy.gross@ti.com>
Reviewed-by: Rob Clark <rob.clark@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/omapdrm/omap_dmm_priv.h
drivers/staging/omapdrm/omap_dmm_tiler.c