From e7e8eaf935563e2aa15980702c2737294f5b04b0 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Fri, 25 Mar 2011 08:04:20 +0100 Subject: [PATCH] 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 --- sound/firewire/isight.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/firewire/isight.c b/sound/firewire/isight.c index 4f2b1fa1ab3..2c8201e8581 100644 --- a/sound/firewire/isight.c +++ b/sound/firewire/isight.c @@ -81,6 +81,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) -- 2.11.4.GIT