mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 15:13:55 +08:00
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 | ||
ks8695net.c | ||
ks8695net.h | ||
ks8842.c | ||
ks8851_mll.c | ||
ks8851.c | ||
ks8851.h | ||
ksz884x.c | ||
Makefile |