diff options
Diffstat (limited to 'drivers/dahdi/voicebus/voicebus.h')
-rw-r--r-- | drivers/dahdi/voicebus/voicebus.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dahdi/voicebus/voicebus.h b/drivers/dahdi/voicebus/voicebus.h index e563604..37b9271 100644 --- a/drivers/dahdi/voicebus/voicebus.h +++ b/drivers/dahdi/voicebus/voicebus.h @@ -216,10 +216,11 @@ static inline void voicebus_set_hx8_mode(struct voicebus *vb) static inline void voicebus_set_maxlatency(struct voicebus *vb, unsigned int max_latency) { - spin_lock_bh(&vb->lock); + unsigned long flags; + spin_lock_irqsave(&vb->lock, flags); vb->max_latency = clamp(max_latency, vb->min_tx_buffer_count, VOICEBUS_DEFAULT_MAXLATENCY); - spin_unlock_bh(&vb->lock); + spin_unlock_irqrestore(&vb->lock, flags); } #endif /* __VOICEBUS_H__ */ |