dm mpath: fix uninitialized 'pg_init_wait' waitqueue_head NULL pointer
authorMike Snitzer <snitzer@redhat.com>
Tue, 13 Mar 2018 00:30:43 +0000 (20:30 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 13 Mar 2018 19:09:56 +0000 (15:09 -0400)
commitc37366742baa2bb3225be507d283baef151c5f8a
tree9526b900d1fe467562bf53d368703a2a3ee8450a
parent0c8efd610b58cb23cefdfa12015799079aef94ae
dm mpath: fix uninitialized 'pg_init_wait' waitqueue_head NULL pointer

Initialize all the scsi_dh related 'struct multipath' members regardless
of whether a scsi_dh is in use or not.

The subtle (and fragile) SCSI-assuming legacy code clearly needs further
decoupling from non-SCSI (and/or developer understanding).

Fixes: 8d47e65948dd ("dm mpath: remove unnecessary NVMe branching in favor of scsi_dh checks")
Reported-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c