]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dibusb: fix possible memory leak in dibusb_rc_query()
authorWei Yongjun <weiyongjun1@huawei.com>
Sun, 30 Oct 2016 01:36:24 +0000 (23:36 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 21 Nov 2016 13:40:45 +0000 (11:40 -0200)
commitb357c50dadae5c54ca26ac63d303227b4e9d4de1
tree7adb3f38a8204b46f7bcd24601609c369948ba65
parent14a67ffafdf5aeb75d2ef23baa17ee7edb1c6ced
[media] dibusb: fix possible memory leak in dibusb_rc_query()

'buf' is malloced in dibusb_rc_query() and should be freed before
leaving from the error handling cases, otherwise it will cause
memory leak.

Fixes: 565322e04e03 ("[media] dibusb: handle error code on RC query")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb/dibusb-common.c