scst_vdisk: Fix a use-after-free (merge r7993 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7994 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-02-25 06:15:11 +00:00
parent 6facf86d2c
commit 8bd5fea925
+1 -2
View File
@@ -7767,8 +7767,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;
}