Skip to content

Commit

Permalink
scsi_dh_alua: uninitialized variable in alua_check_vpd()
Browse files Browse the repository at this point in the history
The pg_updated variable is support to be set to false at the start but
it is uninitialized.

Fixes: cb0a168 ('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>
  • Loading branch information
Dan Carpenter authored and Martin K. Petersen committed Mar 15, 2016
1 parent eba5ed3 commit 100bcb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/device_handler/scsi_dh_alua.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static int alua_check_vpd(struct scsi_device *sdev, struct alua_dh_data *h,
{
int rel_port = -1, group_id;
struct alua_port_group *pg, *old_pg = NULL;
bool pg_updated;
bool pg_updated = false;
unsigned long flags;

group_id = scsi_vpd_tpg_id(sdev, &rel_port);
Expand Down

0 comments on commit 100bcb8

Please sign in to comment.