From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cvsmtppost32.nm.naver.com (cvsmtppost32.nm.naver.com [114.111.35.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8242230BD9 for ; Wed, 4 Feb 2026 13:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.111.35.242 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770212462; cv=none; b=D5+OxKD/WA2SHsPxg+65SXthcUmCOxo8V65Jj+Zn69x2fhJ68BsDY0QsnVv23nNBacb7u/eFlH6VOTW1uJ+Bm2p3KIdZOsoMcaHRo95HjTNbKQRfCuWgoafPr3CehRStQQNN7Vs4KgXuCD5z83Rj+uhdjFjCs39nkES/zWTZD2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770212462; c=relaxed/simple; bh=e1B3kkdss+qupQYwBJgaJGdtzIdfUnSFu6v+u47JJf8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kVw2q0QxXIxkVs7MnoHirRXWVJhai0/18JGNbze21RmKQA+108lOu4QSrThaOJGDXiKHs8xQ0FIoqElRCY+XLjzyq0AscigeH0u9N6q64Q3Y7QnfSEb4b2cqPQ6Ei9BKG7yW5IbI2zmWxRwzKm/UipJjewMQ0lP10Ca/o1OfyCc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=naver.com; spf=pass smtp.mailfrom=naver.com; dkim=pass (2048-bit key) header.d=naver.com header.i=@naver.com header.b=ZZ5MIYkl; arc=none smtp.client-ip=114.111.35.242 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=naver.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=naver.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=naver.com header.i=@naver.com header.b="ZZ5MIYkl" Received: from cvsendbo026.nm ([10.112.20.48]) by cvsmtppost32.nm.naver.com with ESMTP id l7PO8u6VQZ+xBsofFdS3PA for ; Wed, 04 Feb 2026 13:20:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=naver.com; s=s20171208; t=1770211246; bh=e1B3kkdss+qupQYwBJgaJGdtzIdfUnSFu6v+u47JJf8=; h=Date:From:To:Subject:Message-ID:From:Subject:Feedback-ID: X-Works-Security; b=ZZ5MIYklQ/GQYeeZBmAIpSpuFsEY/Ndgg9y4Q2xeWaGhJVtUug6QGAcSEkrP0LTJs qAxf24fwOTQ6Qmg8KoBmKzs38DkRA7F/Khc+xSgw9Bk02VXUsTIsAyX67357bVJkl9 +Ei8gNzOUi0RT8BDmraXxA2xc+zZCNKmEJZ5CPQGfc6ht5wRdlzfqTA3+0O8sloaR4 f/nNhJigwhni+X0++YBvRGteBELIASNJeoGdHJOfkAdPZRXlChsj6odfyyDOjGw3Ag AxbIRf+dV5HHwAafeFHaZSL3dLa4l/6K2jhk8qfIofMBYg+qlKAbemj5KHkeJoiUmM PhUrbA+7oqeOQ== X-Session-ID: ySAgXkaERlaBZvkTlbPTVA X-Works-Send-Opt: M/Y/jAIYjHmwKo2qKqJYFquqFNwkx0eFjAJYKg== X-Works-Smtp-Source: X9nXKxgXFqJZ+HmrFA2/+6E= Received: from JMW-Ubuntu ([14.38.141.199]) by cvnsmtp003.nm.naver.com with ESMTP id ySAgXkaERlaBZvkTlbPTVA for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 04 Feb 2026 13:20:46 -0000 Date: Wed, 4 Feb 2026 22:20:45 +0900 From: Minu Jin To: gregkh@linuxfoundation.org, andy@kernel.org Cc: dan.carpenter@linaro.org, trohan2000@gmail.com, straube.linux@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v6 2/5] staging: rtl8723bs: replace rtw_malloc() with kmalloc() Message-ID: References: <20260204131347.3515949-1-s9430939@naver.com> <20260204131347.3515949-3-s9430939@naver.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260204131347.3515949-3-s9430939@naver.com> On Wed, Feb 04, 2026 at 10:13:44PM +0900, Minu Jin wrote: > Replace the wrapper function rtw_malloc() with standard kmalloc(). > Call sites were reviewed to use appropriate GFP flags (GFP_KERNEL or > GFP_ATOMIC) based on the execution context. > > About GFP Flags: > - GFP_ATOMIC is used for allocations in atomic contexts such as > spinlock-protected sections, tasklets, and timer handlers. > - GFP_KERNEL is used for process contexts where sleeping is allowed. > > Also, convert error return codes from -1 to -ENOMEM where appropriate. > > Signed-off-by: Minu Jin > Reviewd-by: Andy Shevchenko Apologies, I noticed a typo in the tag. It should be: Reviewed-by: Andy Shevchenko Please let me know if you need me to resend v7 for this.