Skip to content
Commit 94f3ec6b authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai
Browse files

sound: oss/sb_audio: prevent divide by zero bug



Speed comes from get_user() in audio_ioctl().  We use it to set the "s"
variable before clamping it to valid values so it could lead to a divide
by zero bug.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5e68fb3c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment