check errors on return from netmap_attach()

Submitted by:	Giuseppe Lettieri
MFC after:	3 days
fix a bug when a device has 1 tx (or rx) queue and more than
one queue of a different type.

Submitted by:	Vincenzo Maffione
MFC after:	3 days