From patchwork Mon Aug 17 02:05:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaehyun Lim X-Patchwork-Id: 7022781 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AF3BBC05AC for ; Mon, 17 Aug 2015 02:05:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D4A782062C for ; Mon, 17 Aug 2015 02:05:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 04E4320634 for ; Mon, 17 Aug 2015 02:05:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbbHQCFY (ORCPT ); Sun, 16 Aug 2015 22:05:24 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:33920 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752566AbbHQCFX (ORCPT ); Sun, 16 Aug 2015 22:05:23 -0400 Received: by pdbfa8 with SMTP id fa8so50079884pdb.1 for ; Sun, 16 Aug 2015 19:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=m+xdrNss2wwZPuQIFsxk4BmOKk6Dl+8RPDRn3AM+QO8=; b=UVdrs6LUu2HoGQyhOMZhxqnwfwM2zrfJlFF6WizKAiwR2Da3wbf4VAtqWFHpKJb7rX z+INUBw0d7m1XgeowH3VwpiiXV63dfAk9WLtvpl9cMYtD1wx46hXM32i14Os7nguTS9g 9ir/bikjqMpFGB/K+6Ju8Ci2tR3ih8WOSjn7+LgmFJwWQRXrCtSP8t4rsIv8LyEUljtZ x05sqKG4giTRhKlw2MNShMrqEkDr91Aj8yNNoDBRT1AwaN6mk9HvESXFZ5tGKmHMAbUR +a7tl7arm1YOLoI2bX1mWQJ/oTmqVIGRUF/fRXaDGzHUamPMhR6uNlW2nJUXTH11bbPw F18w== X-Received: by 10.70.123.132 with SMTP id ma4mr113019109pdb.92.1439777122822; Sun, 16 Aug 2015 19:05:22 -0700 (PDT) Received: from localhost.localdomain ([218.233.16.2]) by smtp.gmail.com with ESMTPSA id tt8sm12609611pbc.49.2015.08.16.19.05.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Aug 2015 19:05:22 -0700 (PDT) From: Chaehyun Lim To: gregkh@linuxfoundation.org Cc: johnny.kim@atmel.com, rachel.kim@atmel.com, dean.lee@atmel.com, chris.park@atmel.com, linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, Chaehyun Lim Subject: [PATCH 1/6] staging: wilc1000: use kmalloc instead of WILC_NEW Date: Mon, 17 Aug 2015 11:05:10 +0900 Message-Id: <1439777115-25861-1-git-send-email-chaehyun.lim@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP WILC_NEW is replaced by kmallo with GFP_ATOMIC. This kmalloc is inside a spin_lock_irqsave region. Signed-off-by: Chaehyun Lim --- drivers/staging/wilc1000/wilc_msgqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index 81f584d..9783c15 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -71,7 +71,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle, spin_lock_irqsave(&pHandle->strCriticalSection, flags); /* construct a new message */ - pstrMessage = WILC_NEW(Message, 1); + pstrMessage = kmalloc(sizeof(Message), GFP_ATOMIC); WILC_NULLCHECK(s32RetStatus, pstrMessage); pstrMessage->u32Length = u32SendBufferSize; pstrMessage->pstrNext = NULL;