Root/
| 1 | --- a/drivers/cbus/tahvo.c |
| 2 | +++ b/drivers/cbus/tahvo.c |
| 3 | @@ -104,7 +104,9 @@ void tahvo_write_reg(struct device *chil |
| 4 | { |
| 5 | struct tahvo *tahvo = dev_get_drvdata(child->parent); |
| 6 | |
| 7 | + mutex_lock(&tahvo->mutex); |
| 8 | __tahvo_write_reg(tahvo, reg, val); |
| 9 | + mutex_unlock(&tahvo->mutex); |
| 10 | } |
| 11 | EXPORT_SYMBOL(tahvo_write_reg); |
| 12 | |
| 13 |
