Skip to content
Snippets Groups Projects
Select Git revision
5 results Searching

airspy

user avatar
Dongliang Mu authored and Mauro Carvalho Chehab committed
The commit ca9dc8d0 ("media: airspy: respect the DMA coherency
 rules") moves variable buf from stack to heap, however, it only frees
buf in the error handling code, missing deallocation in the success
path.

Fix this by freeing buf in the success path since this variable does not
have any references in other code.

Fixes: ca9dc8d0 ("media: airspy: respect the DMA coherency rules")
Reported-by: default avatar <syzbot+bb25f85e5aa482864dc0@syzkaller.appspotmail.com>
Signed-off-by: default avatarDongliang Mu <mudongliangabcd@gmail.com>
Reviewed-by: default avatarTommaso Merciai <tommaso.merciai@amarulasolution.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
23bc5eb5
History
Name Last commit Last update
..