projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
898732d
)
ALSA: isight: fix divide error when queueing packets
author
Clemens Ladisch
<clemens@ladisch.de>
Wed, 11 May 2011 08:49:02 +0000
(10:49 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 11 May 2011 12:51:16 +0000
(14:51 +0200)
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>
sound/firewire/isight.c
patch
|
blob
|
history
diff --git
a/sound/firewire/isight.c
b/sound/firewire/isight.c
index
4e33491
..
10a9b9b
100644
(file)
--- 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)