]> git.karo-electronics.de Git - linux-beck.git/commit
staging: line6: fix memory leak in .hw_params()
authorStefan Hajnoczi <stefanha@gmail.com>
Sat, 10 Dec 2011 01:12:27 +0000 (02:12 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Dec 2011 03:26:09 +0000 (19:26 -0800)
commit60c01a977814788178362ff0e1a22dfbf106eede
treef2c4bde5eebe5e2265536d30062b809a8605e2fe
parent407f3fd8faf80f77c47ebda7501c6a8698d2f3a6
staging: line6: fix memory leak in .hw_params()

The .hw_params() pcm callback can be invoked multiple times in a row.
Ensure that the URB data buffer is only allocated once.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Markus Grabner <grabner@icg.tugraz.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/line6/capture.c
drivers/staging/line6/playback.c