aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorH. Peter Anvin <[email protected]>2008-10-14 18:34:20 +0000
committerJames Bottomley <[email protected]>2008-10-23 16:42:20 +0000
commit520a2c2741747062e75f91cd0faddb564fbc64d2 (patch)
treeee432a78dd07631a4df63abe4ae2958d2c18607e /net/unix/af_unix.c
parent[SCSI] lib: string_get_size(): don't hang on zero; no decimals on exact (diff)
downloadkernel-520a2c2741747062e75f91cd0faddb564fbc64d2.tar.gz
kernel-520a2c2741747062e75f91cd0faddb564fbc64d2.zip
[SCSI] sd: fix computation of the full size of the device
When computing the full size of the device, we need to cast sdkp->capacity before shifting, since in some configurations sector_t can be a 32-bit number. Also, change ffz(~x) to the more idiomatic ilog2(x). Signed-off-by: H. Peter Anvin <[email protected]> Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions