diff options
author | Andy Gross | 2012-05-24 18:43:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2012-06-11 17:43:19 +0200 |
commit | ef4459341a600703e99a08584350809a96b62371 (patch) | |
tree | 4a4bf3cf3693f963641fb524b6439fffef9348cf /drivers/staging/omapdrm/omap_dmm_priv.h | |
parent | Staging: ipack/bridges/tpci200: change device table definition and export it. (diff) | |
download | kernel-qcow2-linux-ef4459341a600703e99a08584350809a96b62371.tar.gz kernel-qcow2-linux-ef4459341a600703e99a08584350809a96b62371.tar.xz kernel-qcow2-linux-ef4459341a600703e99a08584350809a96b62371.zip |
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>
Diffstat (limited to 'drivers/staging/omapdrm/omap_dmm_priv.h')
-rw-r--r-- | drivers/staging/omapdrm/omap_dmm_priv.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/omapdrm/omap_dmm_priv.h b/drivers/staging/omapdrm/omap_dmm_priv.h index 2f529ab4b7c7..08b22e9f0ed7 100644 --- a/drivers/staging/omapdrm/omap_dmm_priv.h +++ b/drivers/staging/omapdrm/omap_dmm_priv.h @@ -181,7 +181,6 @@ struct dmm { /* allocation list and lock */ struct list_head alloc_head; - spinlock_t list_lock; }; #endif |