]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx23885: Don't leak firmware in cx23885_card_setup()
authorJesper Juhl <jj@chaosbits.net>
Thu, 7 Apr 2011 19:23:48 +0000 (16:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:28:47 +0000 (09:28 -0300)
commit1c0a535881c6ba842fc5b95f28483bb34bb86041
tree4d6867015ab96bf7c369ce4ed87ed7215bbdc585
parent4a2347aedb7d348778b1607dbdcf4fb61f6fc79f
[media] cx23885: Don't leak firmware in cx23885_card_setup()

We leak the memory allocated to 'fw' (the firmware) when the variable goes
out of scope.
Fix the leak by calling release_firmware(fw) before 'fw' goes out of
scope.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx23885/cx23885-cards.c