media: dvb-usb: Add memory free on error path in dw2102_probe()
authorAnton Vasilyev <vasilyev@ispras.ru>
Thu, 10 Aug 2017 15:27:44 +0000 (11:27 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 27 Aug 2017 10:57:13 +0000 (06:57 -0400)
commitbe90cc8e4ac08bcb4ca517cd4ae25aa8441e2d88
tree0f5302124bf3ebda0ff62cb96e1db1468ecb8e13
parente5d9ce4ddea934d1243747bfc142749ba6ff0c5a
media: dvb-usb: Add memory free on error path in dw2102_probe()

If dw2102_probe() fails on dvb_usb_device_init(), then memleak occurs.

The patch adds deallocation to the error path.

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

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Reviewed-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb/dw2102.c