Return-Path: Date: Fri, 1 Jan 2010 18:52:59 +0100 From: Andrew Lunn Message-ID: <20100101175259.GB31328@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [B.A.T.M.A.N.] Missing unlocks 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: Simon Wunderlich Cc: "B.A.T.M.A.N" Hi Simon I just built batman-adv with make C=1 so that sparse it used to check the code. It found a few missing unlocks... drivers/staging/batman-adv/routing.c:585:12: warning: context imbalance in 'recv_my_icmp_packet' - different lock contexts for basic block This is the return if the skb_copy() fails. drivers/staging/batman-adv/routing.c:640:12: warning: context imbalance in 'recv_icmp_ttl_exceeded' - different lock contexts for basic block Same again. drivers/staging/batman-adv/routing.c:695:5: warning: context imbalance in 'recv_icmp_packet' - different lock contexts for basic block and same again... in each case you are missing a spin_unlock_irqrestore(&orig_hash_lock, flags); before the return NET_RX_DROP; Andrew