Skip to content

Commit

Permalink
target: Fix user data segment multiplier in spc_emulate_evpd_b3()
Browse files Browse the repository at this point in the history
This patch fixes an apparent cut and paste error in spc_emulate_evpd_b3(),
where lba_map_segment_size was being used twice for the Referrals VPD.

Go ahead and set the correct user data segment multiplier instead of
user data segment size.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Sebastian Herbszt authored and Nicholas Bellinger committed Sep 17, 2014
1 parent 3687db8 commit 096b499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/target_core_spc.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ spc_emulate_evpd_b3(struct se_cmd *cmd, unsigned char *buf)
buf[0] = dev->transport->get_device_type(dev);
buf[3] = 0x0c;
put_unaligned_be32(dev->t10_alua.lba_map_segment_size, &buf[8]);
put_unaligned_be32(dev->t10_alua.lba_map_segment_size, &buf[12]);
put_unaligned_be32(dev->t10_alua.lba_map_segment_multiplier, &buf[12]);

return 0;
}
Expand Down

0 comments on commit 096b499

Please sign in to comment.