Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi_dh_alua: uninitialized variable in alua_check_vpd()

The pg_updated variable is support to be set to false at the start but
it is uninitialized.

Fixes: cb0a168cb6b8 ('scsi_dh_alua: update 'access_state' field')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Reviewed-by: Manoj Kumar <manoj@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Dan Carpenter and committed by
Martin K. Petersen
100bcb85 eba5ed35

+1 -1
+1 -1
drivers/scsi/device_handler/scsi_dh_alua.c
··· 332 332 { 333 333 int rel_port = -1, group_id; 334 334 struct alua_port_group *pg, *old_pg = NULL; 335 - bool pg_updated; 335 + bool pg_updated = false; 336 336 unsigned long flags; 337 337 338 338 group_id = scsi_vpd_tpg_id(sdev, &rel_port);