[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e24f904b-0eaa-dd48-2647-8aaee510beca@linaro.org>
Date: Tue, 7 Jun 2022 19:13:37 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Martin Faltesek <mfaltesek@...gle.com>, kuba@...nel.org
Cc: christophe.ricard@...il.com, gregkh@...uxfoundation.org,
groeck@...gle.com, jordy@...ing.systems, krzk@...nel.org,
martin.faltesek@...il.com, netdev@...r.kernel.org,
linux-nfc@...ts.01.org, sameo@...ux.intel.com, wklin@...gle.com,
theflamefire89@...il.com, stable@...r.kernel.org
Subject: Re: [PATCH net v3 1/3] nfc: st21nfca: fix incorrect validating logic
in EVT_TRANSACTION
On 07/06/2022 04:57, Martin Faltesek wrote:
> The first validation check for EVT_TRANSACTION has two different checks
> tied together with logical AND. One is a check for minimum packet length,
> and the other is for a valid aid_tag. If either condition is true (fails),
> then an error should be triggered. The fix is to change && to ||.
>
> Fixes: 26fc6c7f02cb ("NFC: st21nfca: Add HCI transaction event support")
> Cc: stable@...r.kernel.org
> Signed-off-by: Martin Faltesek <mfaltesek@...gle.com>
> ---
> drivers/nfc/st21nfca/se.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Please add Acked-by/Reviewed-by tags when posting new versions. However,
there's no need to repost patches *only* to add the tags. The upstream
maintainer will do that for acks received on the version they apply.
https://elixir.bootlin.com/linux/v5.17/source/Documentation/process/submitting-patches.rst#L540
If a tag was not added on purpose, please state why and what changed.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Best regards,
Krzysztof
Powered by blists - more mailing lists