openwrtv4/target/linux/omap24xx/patches-2.6.38/505-cbus-retu-write-lock.patch
Hauke Mehrtens a4c0645326 kernel: update kernel from 2.6.38.2 to 2.6.38.6 and refresh patches
Thank you Peter Wagner for the patch. I refreshed the kernel patches and added the md5sum of the kernel.

SVN-Revision: 26905
2011-05-15 17:23:02 +00:00

12 lines
308 B
Diff

--- a/drivers/cbus/retu.c
+++ b/drivers/cbus/retu.c
@@ -120,7 +120,9 @@ void retu_write_reg(struct device *child
{
struct retu *retu = dev_get_drvdata(child->parent);
+ mutex_lock(&retu->mutex);
__retu_write_reg(retu, reg, val);
+ mutex_unlock(&retu->mutex);
}
EXPORT_SYMBOL_GPL(retu_write_reg);