summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-05-11 12:49:02 +0400
committerTakashi Iwai <tiwai@suse.de>2011-05-11 16:51:16 +0400
commitf2934cd499ba2c7f605787508b4cfcfa3a45b0a4 (patch)
tree070775d70eed4780c461323b59fcb2626e0b46e7 /sound
parent898732d1f1c7181fd3e94e7d7a784edb48d09d95 (diff)
downloadlinux-f2934cd499ba2c7f605787508b4cfcfa3a45b0a4.tar.xz
ALSA: isight: fix divide error when queueing packets
Set the .header_size field when queueing packets to avoid a division by zero. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/firewire/isight.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/firewire/isight.c b/sound/firewire/isight.c
index 4e334919a70f..10a9b9b0b2c2 100644
--- a/sound/firewire/isight.c
+++ b/sound/firewire/isight.c
@@ -82,6 +82,7 @@ MODULE_LICENSE("GPL v2");
static struct fw_iso_packet audio_packet = {
.payload_length = sizeof(struct audio_payload),
.interrupt = 1,
+ .header_length = 4,
};
static void isight_update_pointers(struct isight *isight, unsigned int count)