Re: [PATCH v2 1/1] net: Fix use of proc_fs

2020-12-14 Thread Jakub Kicinski
On Mon, 14 Dec 2020 22:25:50 +0200 Yonatan Linik wrote: > proc_fs was used, in af_packet, without a surrounding #ifdef, > although there is no hard dependency on proc_fs. > That caused the initialization of the af_packet module to fail > when CONFIG_PROC_FS=n. > > Specifically, proc_create_net() w

[PATCH v2 1/1] net: Fix use of proc_fs

2020-12-14 Thread Yonatan Linik
proc_fs was used, in af_packet, without a surrounding #ifdef, although there is no hard dependency on proc_fs. That caused the initialization of the af_packet module to fail when CONFIG_PROC_FS=n. Specifically, proc_create_net() was used in af_packet.c, and when it fails, packet_net_init() returns