mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 19:45:07 +07: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 |