pxa2xx_spi: prevent panic case setup() fails
authorDaniel Ribeiro <drwyrm@gmail.com>
Tue, 12 May 2009 20:19:36 +0000 (13:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 12 May 2009 21:11:34 +0000 (14:11 -0700)
commit7348d82a67b3fe0363e7f0679b50ecbdc65116c7
treeed0f3029a4eaf8b2ec6149214f2191390ff2c377
parent816dc3c82b34f709dc1c29ea0a6f417d739a3487
pxa2xx_spi: prevent panic case setup() fails

setup() may fail before ctldata is set, causing a kernel panic on
cleanup().

Signed-off-by: Daniel Ribeiro <drwyrm@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/pxa2xx_spi.c