Re: [PATCH 02/11] inet_diag: pass inet_diag module to netlink_dump_start

2012-09-26 Thread Pablo Neira Ayuso
On Wed, Sep 26, 2012 at 09:07:14AM -0700, Stephen Hemminger wrote: > On Wed, 26 Sep 2012 12:52:11 +0800 > Gao feng wrote: > > > struct netlink_dump_control c = { > > .dump = inet_diag_dump_compat, > > + .done = netlink_dump

Re: [PATCH 02/11] inet_diag: pass inet_diag module to netlink_dump_start

2012-09-26 Thread Stephen Hemminger
On Wed, 26 Sep 2012 12:52:11 +0800 Gao feng wrote: > struct netlink_dump_control c = { > .dump = inet_diag_dump_compat, > + .done = netlink_dump_done, > + .module = THIS_MODULE, >

[PATCH 02/11] inet_diag: pass inet_diag module to netlink_dump_start

2012-09-25 Thread Gao feng
use proper netlink_dump_control.done and .module to avoid panic. Signed-off-by: Gao feng --- net/ipv4/inet_diag.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index 570e61f..36d4be5 100644 --- a/net/ipv4/inet_diag.c +++ b