[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-bugs
Subject: [haiku-bugs] Re: [Haiku] #15095: if_free not called on (some?) attach failures (was: gDeviceCount ma
From: "Haiku" <trac () haiku-os ! org>
Date: 2019-05-31 16:55:50
Message-ID: 054.20887fd573bf9594c0b435e51e56862e () haiku-os ! org
[Download RAW message or body]
--==============P18773057368640930=MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
#15095: if_free not called on (some?) attach failures
-------------------------------+----------------------------
Reporter: bga | Owner: bga
Type: bug | Status: assigned
Priority: normal | Milestone: Unscheduled
Component: Drivers/Network | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------------+----------------------------
Changes (by waddlesplash):
* component: Network & Internet => Drivers/Network
Comment:
The problem appears to be that if_free is not called on attach failures.
iflib calls that when deregistering the device. Perhaps when attach fails,
we should call if_free ourselves and not rely on the driver to do it?
Or, how do other ethernet drivers handle this? I think most of them call
detach() inside attach() to tear down the internal state? Is iflib doing
that?
--
Ticket URL: <https://dev.haiku-os.org/ticket/15095#comment:1>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.
--==============P18773057368640930==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic