Toomas Soome 98e805b4a1 loader: net_open() should not replace f->f_devdata
net_open() does replace f_devdata with pointer to netdev_sock,
this will cause memory leak when device is closed, but also does
alter the devopen() logic.

We should store &netdev_sock to dev->d_opendata instead, this
would preserve and follow the devopen() logic.

Fixes network boot on aarch64 (tested by bz).

Reviewed-by:	imp
MFC After:	2 weeks
Differential Revision: https://reviews.freebsd.org/D32227
2021-10-19 19:43:56 +03:00
..
2021-07-05 15:53:08 +02:00
2019-02-26 06:22:10 +00:00
2021-04-12 16:13:33 +02:00
2019-02-26 06:22:10 +00:00
2021-09-29 17:18:51 -06:00
2020-01-23 10:40:34 +00:00
2021-08-11 11:03:19 -06:00
2021-04-30 12:53:45 -05:00