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
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,
>
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