]> git.baikalelectronics.ru Git - kernel.git/commit
dma: of-dma: protect list write operation by spin_lock
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 14 Feb 2013 09:00:15 +0000 (11:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 14 Feb 2013 14:30:53 +0000 (20:00 +0530)
commitd1108be27bdd6f83f7d5f71f0bceea8d0cf9bce0
treeb4616aeeb7a8c5c057cd52d30a2ecadb744d6f1f
parentb1816e4d6c4e3e0dd07cfc41cbbf5d7b7d212145
dma: of-dma: protect list write operation by spin_lock

It's possible to have an inconsistency in the list due to unprotected operation
on it. The patch adds a proper locking on the list operation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/of-dma.c