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.
Testing done: build/install/boot /network boot.
Updated by Electric Monk 7 months ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 6538c7b4c76e1d53fc801540cfe1dfe59d26bf29 Author: Toomas Soome <email@example.com> Date: 2021-11-05T16:10:47.000Z 14121 loader: net_open() should not replace f->f_devdata Reviewed by: Klaus Ziegler <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>