From: Scott Ellis Date: Wed, 10 Mar 2010 21:22:45 +0000 (-0700) Subject: spi/omap2_mcspi: fix NULL pointer dereference X-Git-Tag: v2.6.34-rc2~12^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e7749436d576a525d7b2a4bcffb17b3364b9e00;p=pandora-kernel.git spi/omap2_mcspi: fix NULL pointer dereference Check spi->controller_state before dereferencing. Shows up NULL here when using spi_alloc_device()/spi_add_device() and spi_add_device() fails before spi_setup(). Calling spi_dev_put() on the leftover spi_device results in the error. Signed-off-by: Scott Ellis Signed-off-by: Grant Likely --- Reading git-diff-tree failed