lineage_android_kernel_xiao.../drivers/misc/mic
Dan Carpenter f28ba80c6a misc: mic: double free on ioctl error path
commit 816c9311f1144a03da1fdc4feb2f6b0d3299fca0 upstream.

This function only has one caller.  Freeing "vdev" here leads to a use
after free bug.  There are several other error paths in this function
but this is the only one which frees "vdev".  It looks like the kfree()
can be safely removed.

Fixes: 61e9c905df ("misc: mic: Enable VOP host side functionality")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-24 07:11:16 +02:00
..
bus
card
common
cosm
cosm_client
host
scif mm: replace get_user_pages() write/force parameters with gup_flags 2016-10-19 08:11:43 -07:00
vop misc: mic: double free on ioctl error path 2017-06-24 07:11:16 +02:00
Kconfig
Makefile