lkml.org 
[lkml]   [2019]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: netrom: Fix error cleanup path of nr_proto_init
From
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.

\
 
 \ /
  Last update: 2019-04-09 01:35    [W:0.033 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site