* [PATCH] Bluetooth: Don't assign twice the same value
@ 2022-03-02 20:18 Christophe JAILLET
2022-03-02 21:11 ` bluez.test.bot
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Christophe JAILLET @ 2022-03-02 20:18 UTC (permalink / raw)
To: Marcel Holtmann, Johan Hedberg, Luiz Augusto von Dentz,
David S. Miller, Jakub Kicinski
Cc: linux-kernel, kernel-janitors, Christophe JAILLET,
linux-bluetooth, netdev
data.pid is set twice with the same value. Remove one of these redundant
calls.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
net/bluetooth/l2cap_core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index e817ff0607a0..0d460cb7f965 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -1443,7 +1443,6 @@ static void l2cap_ecred_connect(struct l2cap_chan *chan)
data.pdu.scid[0] = cpu_to_le16(chan->scid);
chan->ident = l2cap_get_ident(conn);
- data.pid = chan->ops->get_peer_pid(chan);
data.count = 1;
data.chan = chan;
--
2.32.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* RE: Bluetooth: Don't assign twice the same value
2022-03-02 20:18 [PATCH] Bluetooth: Don't assign twice the same value Christophe JAILLET
@ 2022-03-02 21:11 ` bluez.test.bot
2022-03-02 21:36 ` [PATCH] " Luiz Augusto von Dentz
2022-03-14 22:00 ` Luiz Augusto von Dentz
2 siblings, 0 replies; 5+ messages in thread
From: bluez.test.bot @ 2022-03-02 21:11 UTC (permalink / raw)
To: linux-bluetooth, christophe.jaillet
[-- Attachment #1: Type: text/plain, Size: 1377 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=619692
---Test result---
Test Summary:
CheckPatch PASS 0.72 seconds
GitLint PASS 0.42 seconds
SubjectPrefix PASS 0.26 seconds
BuildKernel PASS 38.87 seconds
BuildKernel32 PASS 34.65 seconds
Incremental Build with patchesPASS 47.41 seconds
TestRunner: Setup PASS 618.78 seconds
TestRunner: l2cap-tester PASS 16.73 seconds
TestRunner: bnep-tester PASS 7.50 seconds
TestRunner: mgmt-tester PASS 128.99 seconds
TestRunner: rfcomm-tester FAIL 9.62 seconds
TestRunner: sco-tester PASS 9.64 seconds
TestRunner: smp-tester PASS 9.54 seconds
TestRunner: userchan-tester PASS 7.80 seconds
Details
##############################
Test: TestRunner: rfcomm-tester - FAIL - 9.62 seconds
Run test-runner with rfcomm-tester
Total: 10, Passed: 9 (90.0%), Failed: 1, Not Run: 0
Failed Test Cases
Basic RFCOMM Socket Client - Write 32k Success Failed 0.224 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: Don't assign twice the same value
2022-03-02 20:18 [PATCH] Bluetooth: Don't assign twice the same value Christophe JAILLET
2022-03-02 21:11 ` bluez.test.bot
@ 2022-03-02 21:36 ` Luiz Augusto von Dentz
2022-03-03 5:48 ` Christophe JAILLET
2022-03-14 22:00 ` Luiz Augusto von Dentz
2 siblings, 1 reply; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2022-03-02 21:36 UTC (permalink / raw)
To: Christophe JAILLET
Cc: Marcel Holtmann, Johan Hedberg, David S. Miller, Jakub Kicinski,
Linux Kernel Mailing List, kernel-janitors,
linux-bluetooth@vger.kernel.org, open list:NETWORKING [GENERAL]
Hi Christophe,
On Wed, Mar 2, 2022 at 12:18 PM Christophe JAILLET
<christophe.jaillet@wanadoo.fr> wrote:
>
> data.pid is set twice with the same value. Remove one of these redundant
> calls.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> net/bluetooth/l2cap_core.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
> index e817ff0607a0..0d460cb7f965 100644
> --- a/net/bluetooth/l2cap_core.c
> +++ b/net/bluetooth/l2cap_core.c
> @@ -1443,7 +1443,6 @@ static void l2cap_ecred_connect(struct l2cap_chan *chan)
> data.pdu.scid[0] = cpu_to_le16(chan->scid);
>
> chan->ident = l2cap_get_ident(conn);
> - data.pid = chan->ops->get_peer_pid(chan);
Perhaps we should do if (!data->pid) then since afaik one can do
connect without bind.
> data.count = 1;
> data.chan = chan;
> --
> 2.32.0
>
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: Don't assign twice the same value
2022-03-02 21:36 ` [PATCH] " Luiz Augusto von Dentz
@ 2022-03-03 5:48 ` Christophe JAILLET
0 siblings, 0 replies; 5+ messages in thread
From: Christophe JAILLET @ 2022-03-03 5:48 UTC (permalink / raw)
To: Luiz Augusto von Dentz
Cc: Marcel Holtmann, Johan Hedberg, David S. Miller, Jakub Kicinski,
Linux Kernel Mailing List, kernel-janitors, linux-bluetooth,
linux-bluetooth, open list:NETWORKING [GENERAL]
Le 02/03/2022 à 22:36, Luiz Augusto von Dentz a écrit :
> Hi Christophe,
>
> On Wed, Mar 2, 2022 at 12:18 PM Christophe JAILLET
> <christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org> wrote:
>>
>> data.pid is set twice with the same value. Remove one of these redundant
>> calls.
>>
>> Signed-off-by: Christophe JAILLET <christophe.jaillet-39ZsbGIQGT5GWvitb5QawA@public.gmane.org>
>> ---
>> net/bluetooth/l2cap_core.c | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
>> index e817ff0607a0..0d460cb7f965 100644
>> --- a/net/bluetooth/l2cap_core.c
>> +++ b/net/bluetooth/l2cap_core.c
>> @@ -1443,7 +1443,6 @@ static void l2cap_ecred_connect(struct l2cap_chan *chan)
>> data.pdu.scid[0] = cpu_to_le16(chan->scid);
>>
>> chan->ident = l2cap_get_ident(conn);
>> - data.pid = chan->ops->get_peer_pid(chan);
>
> Perhaps we should do if (!data->pid) then since afaik one can do
> connect without bind.
Not sure to follow you.
'data' is local to this function. data->pid is undefined at this point.
If your comment is about the end of the function that should be
conditional, I don't know the bluetooth stack at all and can't have any
opinion about it.
If it is relevant, s.o. else will need to provide a patch for it.
CJ
>
>> data.count = 1;
>> data.chan = chan;
>> --
>> 2.32.0
>>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Bluetooth: Don't assign twice the same value
2022-03-02 20:18 [PATCH] Bluetooth: Don't assign twice the same value Christophe JAILLET
2022-03-02 21:11 ` bluez.test.bot
2022-03-02 21:36 ` [PATCH] " Luiz Augusto von Dentz
@ 2022-03-14 22:00 ` Luiz Augusto von Dentz
2 siblings, 0 replies; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2022-03-14 22:00 UTC (permalink / raw)
To: Christophe JAILLET
Cc: Marcel Holtmann, Johan Hedberg, David S. Miller, Jakub Kicinski,
Linux Kernel Mailing List, kernel-janitors,
linux-bluetooth@vger.kernel.org, open list:NETWORKING [GENERAL]
Hi Christophe,
On Wed, Mar 2, 2022 at 12:18 PM Christophe JAILLET
<christophe.jaillet@wanadoo.fr> wrote:
>
> data.pid is set twice with the same value. Remove one of these redundant
> calls.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> net/bluetooth/l2cap_core.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
> index e817ff0607a0..0d460cb7f965 100644
> --- a/net/bluetooth/l2cap_core.c
> +++ b/net/bluetooth/l2cap_core.c
> @@ -1443,7 +1443,6 @@ static void l2cap_ecred_connect(struct l2cap_chan *chan)
> data.pdu.scid[0] = cpu_to_le16(chan->scid);
>
> chan->ident = l2cap_get_ident(conn);
> - data.pid = chan->ops->get_peer_pid(chan);
>
> data.count = 1;
> data.chan = chan;
> --
> 2.32.0
>
Applied, thanks.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-03-14 22:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-02 20:18 [PATCH] Bluetooth: Don't assign twice the same value Christophe JAILLET
2022-03-02 21:11 ` bluez.test.bot
2022-03-02 21:36 ` [PATCH] " Luiz Augusto von Dentz
2022-03-03 5:48 ` Christophe JAILLET
2022-03-14 22:00 ` Luiz Augusto von Dentz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.