mirror of https://gitee.com/openkylin/linux.git
3af0d554c1
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ks8695net.c | ||
ks8695net.h | ||
ks8842.c | ||
ks8851.c | ||
ks8851.h | ||
ks8851_mll.c | ||
ksz884x.c |