ring: first unmap, then destroy ring buffer
commit540ae1ee3b2456355fc9c36410667e1b5019e314
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 19 Mar 2013 17:09:08 +0000 (19 18:09 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Tue, 19 Mar 2013 17:09:08 +0000 (19 18:09 +0100)
tree402eca4b3d2fadd88c6a7bcbb97ef3706fe345fe
parentceae98914962e4375a98db2622b65ecf44b0232a
ring: first unmap, then destroy ring buffer

In both, the RX_RING and TX_RING we need to unmap first and then destroy
the buffer, otherwise, we get a device or resource busy.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
ring_rx.c
ring_tx.c