sound: oss/sb_audio: prevent divide by zero bug
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 18 Aug 2012 15:55:15 +0000 (18:55 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Aug 2012 08:24:21 +0000 (10:24 +0200)
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

No differences found