diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-02 17:25:47 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-10-09 12:23:28 +0200 |
commit | 9da5f5ac6affad8dd8cd80f5cca26e4335e1728b (patch) | |
tree | 7c7b94c39e1b932feaf60ee1ae6e2fad1d5d4a39 /sound | |
parent | [SCSI] virtio-scsi: initialize scatterlist structure (diff) | |
download | linux-9da5f5ac6affad8dd8cd80f5cca26e4335e1728b.tar.xz linux-9da5f5ac6affad8dd8cd80f5cca26e4335e1728b.zip |
[SCSI] virtio-scsi: fix LUNs greater than 255
virtio-scsi needs to report LUNs greater than 256 using the "flat"
format. Because the Linux SCSI layer just maps the SCSI LUN to
an u32, without any parsing, these end up in the range from 16640
to 32767. Fix max_lun to account for the possibility that logical
unit numbers are encoded with the "flat" format.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions