async-tx: fix buffer submission error handling in ipu_idma.c
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 10 Feb 2010 16:32:38 +0000 (17:32 +0100)
committerDan Williams <dan.j.williams@intel.com>
Wed, 10 Feb 2010 19:01:06 +0000 (12:01 -0700)
commit8f98781e0f15207b6ab33bee1fae05428be0475b
tree31830720fd57bd11191e85bbdc98eaefe061f127
parentb953df7c70740cd7593072ebec77a8f658505630
async-tx: fix buffer submission error handling in ipu_idma.c

If submitting new buffer failed, a wrong descriptor gets completed and it
doesn't check, if a callback is at all defined, which can lead to an Oops. Fix
these bugs and make ipu_update_channel_buffer() void, because it never fails.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ipu/ipu_idmac.c