ceac54ff53
As the comment says, ifdetach might be called during the course of driver detach if initialization failed. This shouldn't be a total failure, though, we just have nothing to do there. This has been modified slightly from Augustin's original commit to move the bail-out slightly earlier since the ic wouldn't have been added to the ic list in the first place, and a comment has been added describing when this might be an issue. Submitted by: Augustin Cavalier <waddlesplash@gmail.com> Obtained from: Haiku (e6f6c1b4633532a8ad37c803dc7c65601e5b24ba)