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: NStefan Hajnoczi <stefanha@gmail.com> Signed-off-by: NMarkus Grabner <grabner@icg.tugraz.at> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
Showing
想要评论请 注册 或 登录