Il 16/09/2014 16:08, Markus Armbruster ha scritto: >>> >> + if (bs->device_list.tqe_prev) { >>> >> QTAILQ_REMOVE(&bdrv_states, bs, device_list); >>> >> + bs->device_list.tqe_prev = NULL; >> > >> > I think a comments explaining the trick you are doing here would be worthy: >> > after all you are touching directly the inner parts of a linked list and >> > bypassing the list API. > Fair enough.
Or just add tqe_prev = NULL to QTAILQ_REMOVE. Paolo