From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Cc: linux1394-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] firewire: cdev: Check return value in ioctl_get_cycle_timer()
Date: Mon, 2 Nov 2026 13:36:29 +0900 [thread overview]
Message-ID: <20261102043629.GA1188344@sakamocchi.jp> (raw)
In-Reply-To: <20261029101545.3216-1-sreekuttan2156239@gmail.com>
Hi,
On Thu, Oct 29, 2026 at 10:15:45AM +0000, Sreeraj S Kurup wrote:
> ioctl_get_cycle_timer() ignores the return value of
> ioctl_get_cycle_timer2(). If the latter fails, the output fields
> may remain uninitialized, causing the caller to use uninitialized
> data when calculating local_time and assigning cycle_timer.
>
> Check the return value and propagate the error to the caller.
>
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
> ---
> drivers/firewire/core-cdev.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Applied to for-next branch.
I prefer this submission to the previous ones from other contributors[1].
It's concise, to the point, and easy to read. When using generative AI in
our work, it's especially important to keep the intended recipients in
mind.
[1] https://lore.kernel.org/lkml/20260617023554.2789907-1-michael.bommarito@gmail.com/
Thanks
Takashi Sakamoto
next prev parent reply other threads:[~2026-11-02 4:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 10:15 Sreeraj S Kurup
2026-11-02 4:36 ` Takashi Sakamoto [this message]
2026-11-02 6:44 ` Sreeraj S Kurup
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=20261102043629.GA1188344@sakamocchi.jp \
--to=o-takashi@sakamocchi.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=linux1394-devel@lists.sourceforge.net \
--cc=sreekuttan2156239@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
all inboxes | Powered by JetHome®