Skip to content

Commit

Permalink
ALSA: isight: fix divide error when queueing packets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed May 11, 2011
1 parent 898732d commit f2934cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/firewire/isight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f2934cd

Please sign in to comment.