staging: line6: add bounds check in snd_toneport_source_put()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Sep 2013 08:07:13 +0000 (11:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Sep 2013 14:39:28 +0000 (07:39 -0700)
commitc3cb718acc17f8e0d6b4b8d1f8ca9a20d1999159
tree79b45433fe399c666f99e5e939b7dca89f18c5d2
parent650433b8b1a4a4a46250ad0c8f68b2e47671914d
staging: line6: add bounds check in snd_toneport_source_put()

"source" comes from the user in snd_ctl_elem_write() so it needs to be
checked.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/line6/toneport.c