]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90465cb947ce6c194caf85b1b14bd3ad0ecb0a14
tree9526b900d1fe467562bf53d368703a2a3ee8450a
parentecde61851e06174c96d1d1595e3819aa913a7ac6
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: 4a9770fb3f7f ("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