summaryrefslogtreecommitdiff
path: root/firmware/export/usb.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-09-09 13:33:22 +0000
committerThomas Martitz <kugel@rockbox.org>2011-09-09 13:33:22 +0000
commit0dcbc6cd5d4d40b37f7dbc38a944bfe28901f6e0 (patch)
tree46be0072202c651d5b6ebfddd6a483d0697086b2 /firmware/export/usb.h
parent7e3a3f491d67cf2be3d89791c246826ae62d2a53 (diff)
downloadrockbox-0dcbc6cd5d4d40b37f7dbc38a944bfe28901f6e0.tar.gz
rockbox-0dcbc6cd5d4d40b37f7dbc38a944bfe28901f6e0.zip
Buflib: Handle not having enough space for new handles (fixes FS#12265).
Handles are allocated at the end, growing downwards. The tiny allocations from r30478 broke buflib, since it was assumed that the only shrinkable allocation (the audiobuffer) is the very last allocation. The tiny allocations however fit into the reserve buffer for new handles, breaking the above assumption, and they can't shrink to make room for handles. Now, move any allocations before audiobuf (or shrink audiobuf like before) to make room for handles. This also unifies some duplicated code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30486 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/usb.h')
0 files changed, 0 insertions, 0 deletions