media: usb: cx231xx-417: fix a memory leak bug
authorWenwen Wang <wenwen@cs.uga.edu>
Sat, 17 Aug 2019 06:14:54 +0000 (03:14 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 26 Aug 2019 13:40:17 +0000 (10:40 -0300)
commit725a28290a53bcc02a3de1c1bf64a416d567b283
tree1f2cb7c05f241268c1dbb2c279dff58d643e9072
parent1c770f0f52dca1a2323c594f01f5ec6f1dddc97f
media: usb: cx231xx-417: fix a memory leak bug

In cx231xx_load_firmware(), 'p_buffer' is allocated through vmalloc() to
hold the firmware. However, after the usage, it is not deallocated, leading
to a memory leak bug.

Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/cx231xx/cx231xx-417.c