Re: [PATCH] spi/sirf: fix error propagation in spi_sirfsoc_probe()

2013-06-05 Thread Barry Song
2013/6/6 Barry Song <21cn...@gmail.com>: > 2013/6/6 Alexey Khoroshilov : >> If pinctrl_get_select_default() fails, spi_sirfsoc_probe() >> returns IS_ERR(sspi->p) instead of PTR_ERR(sspi->p). >> >> Found by Linux Driver Verification project (linuxtesting.org). >> >> Signed-off-by: Alexey Khoroshilov

Re: [PATCH] spi/sirf: fix error propagation in spi_sirfsoc_probe()

2013-06-05 Thread Barry Song
2013/6/6 Alexey Khoroshilov : > If pinctrl_get_select_default() fails, spi_sirfsoc_probe() > returns IS_ERR(sspi->p) instead of PTR_ERR(sspi->p). > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Acked-by: Barry Song > --- > drivers/spi/sp

[PATCH] spi/sirf: fix error propagation in spi_sirfsoc_probe()

2013-06-05 Thread Alexey Khoroshilov
If pinctrl_get_select_default() fails, spi_sirfsoc_probe() returns IS_ERR(sspi->p) instead of PTR_ERR(sspi->p). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/spi/spi-sirf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)