From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Date: Wed, 16 Mar 2016 10:45:10 +0300 > 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@xxxxxxxxxx> Applied. -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html