staging: vt6655: add handling memory leak on vnt_start()
authorJi-Hun Kim <ji_hun.kim@samsung.com>
Thu, 5 Apr 2018 07:09:20 +0000 (16:09 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:23:36 +0000 (15:23 +0200)
commit1dc751a5b51d730a98b528672f91d7a38aca5123
tree5cae888908e519965a104131eb3415609de49230
parent5341ee0adb17d12a96dc5344e0d267cd12b52135
staging: vt6655: add handling memory leak on vnt_start()

There was no code for handling memory leaks of device_init_rings() and
request_irq(). It needs to free allocated memory in the device_init_rings()
, when request_irq() would be failed. Add freeing sequences of irq and
device init rings.

Signed-off-by: Ji-Hun Kim <ji_hun.kim@samsung.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c