linux/drivers/misc/mic/vop
weiping zhang 0063e8bbd2 virtio_vop: don't kfree device on register failure
As mentioned at drivers/base/core.c:
/*
 * NOTE: _Never_ directly free @dev after calling this function, even
 * if it returned an error! Always use put_device() to give up the
 * reference initialized in this function instead.
 */
so we don't free vdev until vdev->vdev.dev.release be called.

Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2018-02-01 16:26:45 +02:00
..
Makefile misc: mic: Enable VOP debugfs and driver build 2016-02-09 17:32:37 -08:00
vop_debugfs.c misc: mic: Enable VOP debugfs and driver build 2016-02-09 17:32:37 -08:00
vop_main.c virtio_vop: don't kfree device on register failure 2018-02-01 16:26:45 +02:00
vop_main.h
vop_vringh.c misc: mic: double free on ioctl error path 2017-01-10 21:46:41 +01:00