adlib: sort offsets in portio registration
authorHervé Poussineau <hpoussin@reactos.org>
Wed, 14 Aug 2013 09:49:04 +0000 (11:49 +0200)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Thu, 7 Nov 2013 04:48:35 +0000 (13:48 +0900)
commit745a3fa26a6278761c1bf573700c54c0694b2465
tree777f9219f21b12da4d53f981705148d25fb45d0f
parent1de30cd64001b606d829dbe3512d8d5b3360de8a
adlib: sort offsets in portio registration

This fixes the following assert when -device adlib is used:
ioport.c:240: portio_list_add: Assertion `pio->offset >= off_last' failed.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit 2b21fb57af305f17841d79e7e2e02ad1aec3f5ca)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/audio/adlib.c