Messages in this thread | | | Date | Mon, 08 Apr 2019 16:34:59 -0700 (PDT) | Subject | Re: [PATCH] net: netrom: Fix error cleanup path of nr_proto_init | From | David Miller <> |
| |
From: Yue Haibing <yuehaibing@huawei.com> Date: Mon, 8 Apr 2019 23:12:00 +0800
> From: YueHaibing <yuehaibing@huawei.com> > > Syzkaller report this:
This doesn't compile:
WARNING: net/netrom/netrom.o(.init.text+0x404): Section mismatch in reference from the function init_module() to the function .exit.text:nr_loopback_clear() The function __init init_module() references a function __exit nr_loopback_clear(). This is often seen when error handling in the init function uses functionality in the exit path. The fix is often to remove the __exit annotation of nr_loopback_clear() so it may be used outside an exit section.
WARNING: net/netrom/netrom.o(.init.text+0x409): Section mismatch in reference from the function init_module() to the function .exit.text:nr_rt_free() The function __init init_module() references a function __exit nr_rt_free(). This is often seen when error handling in the init function uses functionality in the exit path. The fix is often to remove the __exit annotation of nr_rt_free() so it may be used outside an exit section.
| |