staging: kpc2000: report error status to spi core
authorMao Wenan <maowenan@huawei.com>
Tue, 28 May 2019 08:02:13 +0000 (16:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2019 21:02:53 +0000 (14:02 -0700)
commit9164f336311863d3e9f80840f4a1cce2aee293bd
treee0690d34e2b099dff69465a6e4eead6dbd7acaae
parent4a932d90b1541a0862be61371658b8f28b3b792e
staging: kpc2000: report error status to spi core

There is an error condition that's not reported to
the spi core in kp_spi_transfer_one_message().
It should restore status value to m->status, and
return it in error path.

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_spi.c