From patchwork Tue Oct 23 04:09:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Cheneau X-Patchwork-Id: 193324 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id BDFF92C0180 for ; Tue, 23 Oct 2012 15:23:19 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756128Ab2JWEXN (ORCPT ); Tue, 23 Oct 2012 00:23:13 -0400 Received: from ns.amnesiak.org ([95.130.11.136]:48531 "EHLO amnesiak.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753031Ab2JWEXK (ORCPT ); Tue, 23 Oct 2012 00:23:10 -0400 Received: from localhost (localhost [127.0.0.1]) by amnesiak.org (Postfix) with ESMTP id 7F5AF7E36; Tue, 23 Oct 2012 06:17:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=amnesiak.org; s=remotebox2; t=1350965821; bh=UJOB3OmF9P+Us8A5rQh+axWAF5Ks3vp8upYxe1khdoU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=ZVu8+c9H71eCxP9gi6n3ISzfr3gtWi2EHaPxcRSG9ZXw2A5WU7lyS1ptx0myxBrgQ mwl5bMoXxYiGkjHSwS8CkbJRdNi9WgvfnyRinkmh4cVXLBwK92N+T+tptwl8pjsEoO ZqvCwsnuvzCWONFL/r7291peI9InI0oVzkxZnuu0= X-Virus-Scanned: amavisd-new at amnesiak.org Received: from amnesiak.org ([127.0.0.1]) by localhost (amnesiak.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2h7LIqonNtEI; Tue, 23 Oct 2012 06:16:29 +0200 (CEST) Received: from localhost.localdomain (pool-71-163-77-244.washdc.east.verizon.net [71.163.77.244]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by amnesiak.org (Postfix) with ESMTPSA id 5220D7E35; Tue, 23 Oct 2012 06:12:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=amnesiak.org; s=remotebox2; t=1350965573; bh=UJOB3OmF9P+Us8A5rQh+axWAF5Ks3vp8upYxe1khdoU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=xUeioUzRuDMiEw+u8FERRnbpx5fMSEqeZ+eHQSEG/x35/XPPFEEge9nFHcZpiSXAX XQUFRtl6jJo8VKvkh89MG0brvyIvJZqIJYBSJnfCwAKwOWFe/dJUfWV17Lhh7BFPS9 r7QQyT8gqEXmpqP1mBl8Pon0P0aARxIH6yWawvh4= From: Tony Cheneau To: "David S. Miller" Cc: netdev@vger.kernel.org, linux-zigbee-devel@lists.sourceforge.net, Alan Ott , Alexander Smirnov Subject: [PATCH net-next 12/15] 6lowpan: make memory allocation atomic during 6lowpan header creation Date: Tue, 23 Oct 2012 00:09:54 -0400 Message-Id: <1350965397-12384-13-git-send-email-tony.cheneau@amnesiak.org> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1350965397-12384-1-git-send-email-tony.cheneau@amnesiak.org> References: <1350965397-12384-1-git-send-email-tony.cheneau@amnesiak.org> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This is prevent various crashes when using the serial driver (not yet in the tree). Signed-off-by: Tony Cheneau --- net/ieee802154/6lowpan.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index 9c7ac2e..70ff171 100644 --- a/net/ieee802154/6lowpan.c +++ b/net/ieee802154/6lowpan.c @@ -396,7 +396,7 @@ static int lowpan_header_create(struct sk_buff *skb, /* TODO: * if this package isn't ipv6 one, where should it be routed? */ - head = kzalloc(100, GFP_KERNEL); + head = kzalloc(100, GFP_ATOMIC); if (head == NULL) return -ENOMEM;