Axel Lin ed8eb250d7 spi: sh-sci: Prevent NULL pointer dereference
If sp->info is NULL, we will hit NULL pointer dereference in probe() while
setting bus_num and num_chipselect for master:

        sp->bitbang.master->bus_num = sp->info->bus_num;
        sp->bitbang.master->num_chipselect = sp->info->num_chipselect;

Thus add NULL test for sp->info in probe() to prevent NULL pointer dereference.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
2014-03-13 13:40:51 +00:00
..
2014-01-25 13:20:36 -08:00
2013-12-17 22:53:36 +00:00
2013-11-14 11:04:38 -08:00
2013-12-31 12:30:18 +00:00
2013-08-29 13:56:23 +01:00
2013-12-09 17:31:38 +00:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2014-01-13 11:30:41 +00:00
2014-01-25 13:20:36 -08:00
2014-01-25 13:20:36 -08:00
2014-01-25 13:20:36 -08:00
2013-08-29 13:56:23 +01:00
2014-01-25 13:20:36 -08:00
2013-10-15 13:15:52 +01:00