mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
41eb7d076f
Perl logs warning message if a variable is not initialized. get_device_data() set mp_dev with multipath device for a scsi disk device. mp_dev remain uninitialized if there is no multipath device. This can happen if a scsi device is not managed by dm multipath driver. Warning message: "Use of uninitialized value in subroutine entry at /usr/sbin/ziorep_config line 136" Fix it by skipping the code dealing with mp_dev and continue with next scsi device in the loop. To reproduce, remove a scsi device from dm multipath. $multipathd -k'del path sdh' Then run `ziorep_config -D`. Signed-off-by: Nihar Panda <niharp@linux.ibm.com> Reviewed-by: Fedor Loshakov <loshakov@linux.ibm.com> Reviewed-by: Benjamin Block <bblock@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>