From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 15 Jan 2011 14:53:13 +0100 From: Andrew Lunn Message-ID: <20110115135313.GQ23716@lunn.ch> References: <1294966794-17780-1-git-send-email-linus.luessing@ascom.ch> <1294966794-17780-4-git-send-email-linus.luessing@ascom.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1294966794-17780-4-git-send-email-linus.luessing@ascom.ch> Subject: Re: [B.A.T.M.A.N.] [PATCH 03/11] batman-adv: Send neighbor discovery packets Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking Cc: Linus L??ssing > diff --git a/batman-adv/ndp.c b/batman-adv/ndp.c > index 60631b0..3269d67 100644 > --- a/batman-adv/ndp.c > +++ b/batman-adv/ndp.c > @@ -49,10 +49,21 @@ static void ndp_send(struct work_struct *work) > struct batman_if *batman_if = container_of(work, struct batman_if, > ndp_wq.work); > struct bat_priv *bat_priv = netdev_priv(batman_if->soft_iface); > + struct batman_packet_ndp *ndp_packet; > + struct sk_buff *skb; > + > + skb = skb_copy(batman_if->ndp_skb, GFP_ATOMIC); > + ndp_packet = (struct batman_packet_ndp *)skb->data; Hi Linus You should check the returned skb. It could be NULL if the system is out of memory. Andrew