aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorTony Lindgren <[email protected]>2016-11-16 18:24:15 +0000
committerVinod Koul <[email protected]>2016-11-17 10:39:23 +0000
commitd5afc1b68a6ddc27746d31f775025afe75ec8122 (patch)
treef20ea6d2137c340c5233564f4de61380591676ed /lib/debugobjects.c
parentdmaengine: cpp41: Fix handling of error path (diff)
downloadkernel-d5afc1b68a6ddc27746d31f775025afe75ec8122.tar.gz
kernel-d5afc1b68a6ddc27746d31f775025afe75ec8122.zip
dmaengine: cppi41: More PM runtime fixes
Fix use of u32 instead of int for checking for negative errors values as pointed out by Dan Carpenter <[email protected]>. And while testing the PM runtime error path by randomly returning failed values in runtime resume, I noticed two more places that need fixing: - If pm_runtime_get_sync() fails in probe, we still need to do pm_runtime_put_sync() to keep the use count happy. We could call pm_runtime_put_noidle() on the error path, but we're just going to call pm_runtime_disable() after that so pm_runtime_put_sync() will do what we want - We should print an error if pm_runtime_get_sync() fails in cppi41_dma_alloc_chan_resources() so we know where it happens Reported-by: Dan Carpenter <[email protected]> Fixes: 740b4be3f742 ("dmaengine: cpp41: Fix handling of error path") Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions