aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorScott Ellis <[email protected]>2010-03-10 21:22:45 +0000
committerGrant Likely <[email protected]>2010-03-10 21:22:45 +0000
commit5e7749436d576a525d7b2a4bcffb17b3364b9e00 (patch)
tree1c7e0c67f0e5cdc49f594afd65204d09a3a8a017 /lib/debugobjects.c
parentuartlite: Fix build on sparc. (diff)
downloadkernel-5e7749436d576a525d7b2a4bcffb17b3364b9e00.tar.gz
kernel-5e7749436d576a525d7b2a4bcffb17b3364b9e00.zip
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 <[email protected]> Signed-off-by: Grant Likely <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions