spi: core: Do not mangle error code from kthread_run()
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 4 Dec 2014 09:02:25 +0000 (11:02 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Dec 2014 22:42:37 +0000 (22:42 +0000)
commit98a8f5a0538fe1a02a6a73a3451f1c093e30bdfc
tree6f64dddd273478beae4bf5e288c163b4fca667ec
parentb671358ad7916beb7ca9e5c304ae88afc7da4557
spi: core: Do not mangle error code from kthread_run()

kthread_run() could return ERR_PTR(-EINTR) from kthread_create_on_node().
Return the actual error code in spi_init_queue() instead of mangling it to
-ENOMEM.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c