diff options
| author | Akinobu Mita <[email protected]> | 2011-02-08 04:59:50 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2011-02-09 06:52:54 +0000 |
| commit | 711c71a092ccedf5e24cff25e577bfa0148fce66 (patch) | |
| tree | 30af5eb59a443c57f6e189acbf07e1400a7fe73b /net/unix/af_unix.c | |
| parent | sparc: use bitmap_set() (diff) | |
| download | kernel-711c71a092ccedf5e24cff25e577bfa0148fce66.tar.gz kernel-711c71a092ccedf5e24cff25e577bfa0148fce66.zip | |
sparc: fix size argument to find_next_zero_bit()
iommu_alloc_ctx() finds a zero bit in iommu->ctx_bitmap. It starts
searching from iommu->ctx_lowest_free to the end of the bitmap.
But the size argument to find_next_zero_bit() in iommu_alloc_ctx()
is wrong. It should be the bitmap size, not the maximum size to
search from the offset argument.
Fortunately iommu->ctx_lowest_free is almost unused and it will not
be more than 1. So the bug wasted only 1-bit at the end of
iommu->ctx_bitmap.
Signed-off-by: Akinobu Mita <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
