summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mic
diff options
context:
space:
mode:
authorweiping zhang2017-12-21 13:40:24 +0100
committerMichael S. Tsirkin2018-02-01 15:26:45 +0100
commit33635bd976fb4c3ccf0cfbb81a8d29bb87760607 (patch)
treeba99b9f18644729f7010e9c23b47eec9006f65be /drivers/misc/mic
parentvirtio: split device_register into device_initialize and device_add (diff)
downloadkernel-qcow2-linux-33635bd976fb4c3ccf0cfbb81a8d29bb87760607.tar.gz
kernel-qcow2-linux-33635bd976fb4c3ccf0cfbb81a8d29bb87760607.tar.xz
kernel-qcow2-linux-33635bd976fb4c3ccf0cfbb81a8d29bb87760607.zip
virtio_pci: 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 vp_dev until vp_dev->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>
Diffstat (limited to 'drivers/misc/mic')
0 files changed, 0 insertions, 0 deletions