~ubuntu-branches/ubuntu/trusty/iscsitarget/trusty

« back to all changes in this revision

Viewing changes to kernel/event.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-01-29 08:56:31 UTC
  • Revision ID: james.westby@ubuntu.com-20080129085631-ma2vvy2dhpcnswj1
Tags: 0.4.15-5ubuntu1
Fix kernel source to build with 2.6.24.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        return 0;
29
29
}
30
30
 
31
 
static int event_recv_skb(struct sk_buff *skb)
 
31
static void event_recv_skb(struct sk_buff *skb)
32
32
{
33
33
        int err;
34
34
        struct nlmsghdr *nlh;
37
37
        while (skb->len >= NLMSG_SPACE(0)) {
38
38
                nlh = (struct nlmsghdr *)skb->data;
39
39
                if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len)
40
 
                        return 0;
 
40
                        return;
41
41
                rlen = NLMSG_ALIGN(nlh->nlmsg_len);
42
42
                if (rlen > skb->len)
43
43
                        rlen = skb->len;
47
47
                        netlink_ack(skb, nlh, 0);
48
48
                skb_pull(skb, rlen);
49
49
        }
50
 
        return 0;
51
50
}
52
51
 
53
 
static void event_recv(struct sock *sk, int length)
 
52
/*static void event_recv(struct sock *sk, int length)
54
53
{
55
54
        struct sk_buff *skb;
56
55
 
61
60
                        kfree_skb(skb);
62
61
        }
63
62
}
64
 
 
 
63
*/
65
64
static int notify(void *data, int len, int gfp_mask)
66
65
{
67
66
        struct sk_buff *skb;