On 07/24/2014 01:51 PM, Martin Townsend wrote:
> ---
>   net/mac802154/wpan.c | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c
> index 3c3069f..9b0b991 100644
> --- a/net/mac802154/wpan.c
> +++ b/net/mac802154/wpan.c
> @@ -462,7 +462,10 @@ mac802154_subif_frame(struct mac802154_sub_if_data 
> *sdata, struct sk_buff *skb,
>                       skb->pkt_type = PACKET_OTHERHOST;
>               break;
>       default:
> -             break;
> +             pr_debug("invalid dest mode\n");
> +             spin_unlock_bh(&sdata->mib_lock);

move pr_debug() out of critical section..
....
spin_unlock_bh(&sdata->mib_lock);
pr_debug("invalid dest mode\n");

> +             kfree_skb(skb);
> +             return NET_RX_DROP;
>       }
>   
>       spin_unlock_bh(&sdata->mib_lock);

-- 
Regards,
Varka Bhadram.


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to