diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-05-11 04:49:02 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-11 08:51:16 -0400 |
commit | f2934cd499ba2c7f605787508b4cfcfa3a45b0a4 (patch) | |
tree | 070775d70eed4780c461323b59fcb2626e0b46e7 /sound/firewire | |
parent | 898732d1f1c7181fd3e94e7d7a784edb48d09d95 (diff) |
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/firewire')
-rw-r--r-- | sound/firewire/isight.c | 1 |
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"); | |||
82 | static struct fw_iso_packet audio_packet = { | 82 | static struct fw_iso_packet audio_packet = { |
83 | .payload_length = sizeof(struct audio_payload), | 83 | .payload_length = sizeof(struct audio_payload), |
84 | .interrupt = 1, | 84 | .interrupt = 1, |
85 | .header_length = 4, | ||
85 | }; | 86 | }; |
86 | 87 | ||
87 | static void isight_update_pointers(struct isight *isight, unsigned int count) | 88 | static void isight_update_pointers(struct isight *isight, unsigned int count) |