summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_run.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-30 15:36:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-10-30 15:36:33 +0000
commitfd05125e3ec4fab9284b606d45a68a018d77627e (patch)
tree1347446338835bb3641acba17d5c913225255260 /sys/dev/usb/if_run.c
parent62811e7f886358e9487f8b47fb1e6cc694d39e28 (diff)
fix a 10 year old bug in the memory allocator, which affected only sparc.
sparc has 4 byte long, but needs 8 byte alignment. recently the DIR struct was changed to contain some off_t, which needs 8 byte alignment. turns out the allocator calculated the bias for alignment, and then subtracted out it's private linkage storage afterwards. on hppa this worked because a 8-byte object can be loaded at a 4-byte boundary; on all other architectures the situation was either 4/4 or 8/8. thanks for a bit of help from drahn
Diffstat (limited to 'sys/dev/usb/if_run.c')
0 files changed, 0 insertions, 0 deletions