aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorweiping zhang <[email protected]>2017-12-21 20:40:24 +0800
committerMichael S. Tsirkin <[email protected]>2018-02-01 16:26:45 +0200
commit33635bd976fb4c3ccf0cfbb81a8d29bb87760607 (patch)
treeba99b9f18644729f7010e9c23b47eec9006f65be /drivers/fpga/xilinx-spi.c
parentf2b44cde7e1687ef7886831a3a30df653bda2481 (diff)
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 <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions