summaryrefslogtreecommitdiff
path: root/net/Makefile
diff options
context:
space:
mode:
authorGao feng <gaofeng@cn.fujitsu.com>2012-10-04 20:15:48 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-28 10:14:15 -0700
commit70f7f1c70af637a23ca09ba1d2d7c966d1bd5990 (patch)
treeb00dea2ae29b7459a2ff702134cc0824ecd0265d /net/Makefile
parentf0dc514c8a0fd7ee7b1f6a3ccdae3b38e6ee1578 (diff)
downloadlinux-3.10-70f7f1c70af637a23ca09ba1d2d7c966d1bd5990.tar.gz
linux-3.10-70f7f1c70af637a23ca09ba1d2d7c966d1bd5990.tar.bz2
linux-3.10-70f7f1c70af637a23ca09ba1d2d7c966d1bd5990.zip
netlink: add reference of module in netlink_dump_start
[ Upstream commit 6dc878a8ca39e93f70c42f3dd7260bde10c1e0f1 ] I get a panic when I use ss -a and rmmod inet_diag at the same time. It's because netlink_dump uses inet_diag_dump which belongs to module inet_diag. I search the codes and find many modules have the same problem. We need to add a reference to the module which the cb->dump belongs to. Thanks for all help from Stephen,Jan,Eric,Steffen and Pablo. Change From v3: change netlink_dump_start to inline,suggestion from Pablo and Eric. Change From v2: delete netlink_dump_done,and call module_put in netlink_dump and netlink_sock_destruct. Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/Makefile')
0 files changed, 0 insertions, 0 deletions