diff options
| author | Chris Wright <[email protected]> | 2011-05-28 18:15:02 +0000 |
|---|---|---|
| committer | David Woodhouse <[email protected]> | 2011-06-01 11:47:34 +0000 |
| commit | 8fcc5372fbac085199d84a880503ed67aba3fe49 (patch) | |
| tree | aab84e5ac18fa8028efa49e2cc47a5b97d873916 /fs/jbd2/commit.c | |
| parent | intel-iommu: Only unlink device domains from iommu (diff) | |
| download | kernel-8fcc5372fbac085199d84a880503ed67aba3fe49.tar.gz kernel-8fcc5372fbac085199d84a880503ed67aba3fe49.zip | |
intel-iommu: Check for identity mapping candidate using system dma mask
The identity mapping code appears to make the assumption that if the
devices dma_mask is greater than 32bits the device can use identity
mapping. But that is not true: take the case where we have a 40bit
device in a 44bit architecture. The device can potentially receive a
physical address that it will truncate and cause incorrect addresses
to be used.
Instead check to see if the device's dma_mask is large enough
to address the system's dma_mask.
Signed-off-by: Mike Travis <[email protected]>
Reviewed-by: Mike Habeck <[email protected]>
Cc: [email protected]
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
