diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-03-16 10:45:10 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:13 +0200 |
| commit | 9a8eac4120931d4b6bc1bbcc7d56366058ae5eb5 (patch) | |
| tree | 4d49249b49c9c66e39d7b0aa52b719b9e2931cff /include/linux/task_work.h | |
| parent | 041d142bda8cb1c9e23a1d8ecaed64b3690c9a8a (diff) | |
ethernet: micrel: fix some error codes
commit 3af0d554c1ce11e9d0953381ff566271f9ab81a9 upstream.
There were two issues here:
1) dma_mapping_error() return true/false but we want to return -ENOMEM
2) If dmaengine_prep_slave_sg() failed then "err" wasn't set but
presumably that should be -ENOMEM as well.
I changed the success path to "return 0;" instead of "return ret;" for
clarity.
Fixes: 94fe8c683cea ('ks8842: Support DMA when accessed via timberdale')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/task_work.h')
0 files changed, 0 insertions, 0 deletions
