mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-12 15:03:16 +00:00
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 | ||