[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230731160106.GG1428172@hu-bjorande-lv.qualcomm.com>
Date: Mon, 31 Jul 2023 09:01:06 -0700
From: Bjorn Andersson <quic_bjorande@...cinc.com>
To: Konrad Dybcio <konrad.dybcio@...aro.org>
CC: Bjorn Andersson <andersson@...nel.org>, Chris Lew <quic_clew@...cinc.com>,
Alex Elder <elder@...nel.org>, "David S. Miller" <davem@...emloft.net>,
"Jakub Kicinski" <kuba@...nel.org>,
Mathieu Poirier
<mathieu.poirier@...aro.org>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-arm-msm@...r.kernel.org>, <linux-remoteproc@...r.kernel.org>
Subject: Re: [PATCH 2/4] soc: qcom: aoss: Add debugfs interface for sending
messages
On Mon, Jul 31, 2023 at 10:15:34AM +0200, Konrad Dybcio wrote:
> On 31.07.2023 06:10, Bjorn Andersson wrote:
> > From: Chris Lew <clew@...eaurora.org>
> No QUIC email?
>
That's the author and s-o-b address of the patch. mailmap will help you
if you want to reach him.
> [...]
>
>
> > +static ssize_t qmp_debugfs_write(struct file *file, const char __user *userstr,
> > + size_t len, loff_t *pos)
> > +{
> > + struct qmp *qmp = file->private_data;
> > + char buf[QMP_MSG_LEN];
> > + int ret;
> > +
> > + if (!len || len > QMP_MSG_LEN)
> >=? Otherwise the last char may be overwritten by the NULL termination
> couple lines below
>
My mind had a '\0' accounted for in len as well, but you're right.
Thanks,
Bjorn
Powered by blists - more mailing lists