mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst_vdisk: Fix a use-after-free
This patch fixes Coverity ID 333128. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7993 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -7147,8 +7147,7 @@ static void vdev_check_node(struct scst_vdisk_dev **pvirt_dev, int orig_nodeid)
|
||||
* pointers in the virtual device that point to the virtual
|
||||
* device itself.
|
||||
*/
|
||||
INIT_WORK(&virt_dev->vdev_inq_changed_work,
|
||||
vdev_inq_changed_fn);
|
||||
INIT_WORK(&v->vdev_inq_changed_work, vdev_inq_changed_fn);
|
||||
*pvirt_dev = v;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user