From: Greg KH <gregkh@linuxfoundation.org>
To: Minu Jin <s9430939@naver.com>
Cc: andriy.shevchenko@linux.intel.com, abrahamadekunle50@gmail.com,
zxcv2569763104@gmail.com, milospuric856@gmail.com,
karanja99erick@gmail.com, weibu@redadmin.org,
dan.carpenter@linaro.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 1/2] staging: rtl8723bs: update _rtw_pktfile_read() to return error codes
Date: Tue, 27 Jan 2026 15:35:42 +0100 [thread overview]
Message-ID: <2026012729-unsoiled-zap-0ffb@gregkh> (raw)
In-Reply-To: <20260122174125.2567008-2-s9430939@naver.com>
On Fri, Jan 23, 2026 at 02:41:24AM +0900, Minu Jin wrote:
> The function _rtw_pktfile_read() currently returns a uint and clamps
> the requested read length if it exceeds the remaining data. This
> behavior makes it impossible to propagate error codes from internal
> calls like skb_copy_bits() and leads to incomplete data processing.
>
> This patch updates the function to:
> 1. Return -EINVAL if the remaining data is less than the requested length,
> ensuring callers always get the full amount of data they expect.
>
> 2. Propagate the negative error code from skb_copy_bits().
>
> 3. Change the return type from uint to int to support these error codes.
>
> To avoid breaking git bisect, this patch also updates all call sites
> (set_qos, update_attrib, and rtw_xmitframe_coalesce) in the same commit.
> By doing so, the error-producing function and its error-handling callers
> remain in sync, preventing runtime failures at this commit point.
>
> Signed-off-by: Minu Jin <s9430939@naver.com>
> ---
> drivers/staging/rtl8723bs/core/rtw_xmit.c | 44 ++++++++++++++-----
> .../staging/rtl8723bs/hal/rtl8723bs_xmit.c | 6 +--
> .../staging/rtl8723bs/include/xmit_osdep.h | 2 +-
> drivers/staging/rtl8723bs/os_dep/xmit_linux.c | 21 +++++----
> 4 files changed, 50 insertions(+), 23 deletions(-)
Does not apply to my tree :(
Please rebase the series and resend.
thanks,
greg k-h
next prev parent reply other threads:[~2026-01-27 14:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 17:41 [PATCH v6 0/2] staging: rtl8723bs: Fix error handling in _rtw_pktfile_read() Minu Jin
2026-01-22 17:41 ` [PATCH v6 1/2] staging: rtl8723bs: update _rtw_pktfile_read() to return error codes Minu Jin
2026-01-27 14:35 ` Greg KH [this message]
2026-01-22 17:41 ` [PATCH v6 2/2] staging: rtl8723bs: clean up _rtw_pktfile_read() Minu Jin
2026-01-23 6:25 ` [PATCH v6 0/2] staging: rtl8723bs: Fix error handling in _rtw_pktfile_read() Greg KH
2026-01-23 7:26 ` Minu Jin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2026012729-unsoiled-zap-0ffb@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=abrahamadekunle50@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=dan.carpenter@linaro.org \
--cc=karanja99erick@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=milospuric856@gmail.com \
--cc=s9430939@naver.com \
--cc=weibu@redadmin.org \
--cc=zxcv2569763104@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox