[media] radio-maxiradio: fix memory leak when device is removed
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 3 Jun 2016 22:33:06 +0000 (19:33 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 11:05:47 +0000 (08:05 -0300)
commit04bc936591469433b6ad3b16b04e07cb1b86690a
tree95e61d1034613e6897e5e736a1557fc8e31fe348
parentd27d5f1a4d00808cb8751ddb972a40f952576fd8
[media] radio-maxiradio: fix memory leak when device is removed

Memory allocated for maxiradio device is not deallocated when
the device is removed.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/radio/radio-maxiradio.c