mbox series

[v2,0/1] net: Fix use of proc_fs

Message ID 20201214202550.3693-1-yonatanlinik@gmail.com (mailing list archive)
Headers show
Series net: Fix use of proc_fs | expand

Message

Yonatan Linik Dec. 14, 2020, 8:25 p.m. UTC
This patch fixes the failure of af_packet module initialization when
CONFIG_PROC_FS=n.

The commit message itself has a pretty thorough explanation.
I will just add that I made sure this fixes the problem, both by
using socket from userspace and by looking at kernel logs.

This also fixes a similar error in tls_proc.c, found by Jakub Kicinski.

Yonatan Linik (1):
  net: Fix use of proc_fs

 net/packet/af_packet.c | 2 ++
 net/tls/tls_proc.c     | 3 +++
 2 files changed, 5 insertions(+)


base-commit: bbf5c979011a099af5dc76498918ed7df445635b