Linux-NFC Archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Martin Faltesek <mfaltesek@google.com>, kuba@kernel.org
Cc: christophe.ricard@gmail.com, gregkh@linuxfoundation.org,
	groeck@google.com, jordy@pwning.systems, krzk@kernel.org,
	martin.faltesek@gmail.com, netdev@vger.kernel.org,
	linux-nfc@lists.01.org, wklin@google.com,
	theflamefire89@gmail.com, stable@vger.kernel.org
Subject: [linux-nfc] Re: [PATCH net v3 1/3] nfc: st21nfca: fix incorrect validating logic in EVT_TRANSACTION
Date: Tue, 7 Jun 2022 19:13:37 +0200	[thread overview]
Message-ID: <e24f904b-0eaa-dd48-2647-8aaee510beca@linaro.org> (raw)
In-Reply-To: <20220607025729.1673212-2-mfaltesek@google.com>

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@vger.kernel.org
> Signed-off-by: Martin Faltesek <mfaltesek@google.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@linaro.org>


Best regards,
Krzysztof
_______________________________________________
Linux-nfc mailing list -- linux-nfc@lists.01.org
To unsubscribe send an email to linux-nfc-leave@lists.01.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

       reply	other threads:[~2022-06-07 17:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220607025729.1673212-1-mfaltesek@google.com>
     [not found] ` <20220607025729.1673212-2-mfaltesek@google.com>
2022-06-07 17:13   ` Krzysztof Kozlowski [this message]
     [not found] ` <20220607025729.1673212-3-mfaltesek@google.com>
2022-06-07 17:15   ` [linux-nfc] Re: [PATCH net v3 2/3] nfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling Krzysztof Kozlowski
     [not found] ` <20220607025729.1673212-4-mfaltesek@google.com>
2022-06-08  7:09   ` [linux-nfc] Re: [PATCH net v3 3/3] nfc: st21nfca: fix incorrect sizing calculations in EVT_TRANSACTION Krzysztof Kozlowski
     [not found] ` <fc85ff14-70d6-0c3e-247d-eda2284a5f6b@oracle.com>
2022-07-20 14:53   ` [linux-nfc] Re: [PATCH net v3 0/3] Split "nfc: st21nfca: Refactor EVT_TRANSACTION" into 3 Martin Faltesek

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=e24f904b-0eaa-dd48-2647-8aaee510beca@linaro.org \
    --to=krzysztof.kozlowski@linaro.org \
    --cc=christophe.ricard@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=groeck@google.com \
    --cc=jordy@pwning.systems \
    --cc=krzk@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-nfc@lists.01.org \
    --cc=martin.faltesek@gmail.com \
    --cc=mfaltesek@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=theflamefire89@gmail.com \
    --cc=wklin@google.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).