On Fri, 14 Feb 2003, Nate Lawson wrote: > Also, except for xl, all drivers have a common cleanup on error in > attach that backs out allocated resources with no assumptions about the > order they were allocated in.
Please see if_pcn.c for the correct approach to freeing resources; its not necessary to wrap evrything in 'if (sc && error != 0) {}'. If execution reaches the 'fail' label then you assume that is what happened. I also think you should just drop and reaquire locks around the bus_setup_intr() rather than moving code around. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | [EMAIL PROTECTED] | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message