<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/nfc/st-nci, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2022-12-08T10:15:39Z</updated>
<entry>
<title>nfc: st-nci: fix memory leaks in EVT_TRANSACTION</title>
<updated>2022-12-08T10:15:39Z</updated>
<author>
<name>Martin Faltesek</name>
</author>
<published>2022-11-22T00:42:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6f7cb84246e1e181ff6a606a1e38fb065a953202'/>
<id>urn:sha1:6f7cb84246e1e181ff6a606a1e38fb065a953202</id>
<content type='text'>
[ Upstream commit 440f2ae9c9f06e26f5dcea697a53717fc61a318c ]

Error path does not free previously allocated memory. Add devm_kfree() to
the failure path.

Reported-by: Denis Efremov &lt;denis.e.efremov@oracle.com&gt;
Reviewed-by: Guenter Roeck &lt;groeck@google.com&gt;
Fixes: 5d1ceb7f5e56 ("NFC: st21nfcb: Add HCI transaction event support")
Signed-off-by: Martin Faltesek &lt;mfaltesek@google.com&gt;
Reviewed-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>nfc: st-nci: fix incorrect validating logic in EVT_TRANSACTION</title>
<updated>2022-12-08T10:15:39Z</updated>
<author>
<name>Martin Faltesek</name>
</author>
<published>2022-11-22T00:42:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c93a962b16e53771c1834bbe0b5221e3cb67c4f'/>
<id>urn:sha1:3c93a962b16e53771c1834bbe0b5221e3cb67c4f</id>
<content type='text'>
[ Upstream commit c60c152230828825c06e62a8f1ce956d4b659266 ]

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 &amp;&amp; to ||.

Reported-by: Denis Efremov &lt;denis.e.efremov@oracle.com&gt;
Reviewed-by: Guenter Roeck &lt;groeck@google.com&gt;
Fixes: 5d1ceb7f5e56 ("NFC: st21nfcb: Add HCI transaction event support")
Signed-off-by: Martin Faltesek &lt;mfaltesek@google.com&gt;
Reviewed-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>st_nci_hci_connectivity_event_received: null check the allocation</title>
<updated>2019-09-06T08:19:32Z</updated>
<author>
<name>Navid Emamdoost</name>
</author>
<published>2019-07-23T22:11:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=65d02dfa34bf1be620c42dd0faf011a2bf91e20f'/>
<id>urn:sha1:65d02dfa34bf1be620c42dd0faf011a2bf91e20f</id>
<content type='text'>
[ Upstream commit 3008e06fdf0973770370f97d5f1fba3701d8281d ]

devm_kzalloc may fail and return NULL. So the null check is needed.

Signed-off-by: Navid Emamdoost &lt;navid.emamdoost@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>nfc: st-nci: Move loopback usage from HCI to NCI</title>
<updated>2016-05-03T23:51:42Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2016-04-30T07:12:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3aacd7fe552b093fc24a8082e16467eb26c2fa32'/>
<id>urn:sha1:3aacd7fe552b093fc24a8082e16467eb26c2fa32</id>
<content type='text'>
NCI provides possible way to run loopback testing has done over HCI.

For us it offers many advantages:
- It simplifies the code: No more need for a vendor_cmds structure
- Loopback over HCI may not be supported in future st-nci firmware

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>nfc: nci: Add an additional parameter to identify a connection id</title>
<updated>2016-05-03T23:43:21Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2016-04-30T07:12:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b8d1a4cf2aa819d606b4e423a6523fc0d4460a2'/>
<id>urn:sha1:9b8d1a4cf2aa819d606b4e423a6523fc0d4460a2</id>
<content type='text'>
According to NCI specification, destination type and destination
specific parameters shall uniquely identify a single destination
for the Logical Connection.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>nfc: st-nci: Remove redundant ST_NCI_HCI_HOST_ID_ESE from st-nci.h</title>
<updated>2016-05-03T23:39:36Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2016-04-30T07:12:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c50e8fef7bb5e4a77609e4120940458e419d463f'/>
<id>urn:sha1:c50e8fef7bb5e4a77609e4120940458e419d463f</id>
<content type='text'>
ST_NCI_HCI_HOST_ID_ESE is already having an equivalent in se.c
(ST_NCI_ESE_HOST_ID).

Remove and replace where relevant.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: st-nci: spi: Drop two useless checks in ACPI probe path</title>
<updated>2016-05-03T23:38:13Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2016-04-30T07:12:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f34b20404443717a7ec77b447d86578f0478550'/>
<id>urn:sha1:1f34b20404443717a7ec77b447d86578f0478550</id>
<content type='text'>
When st_nci_spi_acpi_request_resources() gets called we
already know that the entries in -&gt;acpi_match_table have
matched ACPI ID of the device.
In addition spi_device pointer cannot be NULL in any case
(otherwise SPI core would not call -&gt;probe() for the driver
in the first place).

Drop the two useless checks from the driver.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>NFC: st-nci: i2c: Drop two useless checks in ACPI probe path</title>
<updated>2016-05-03T23:37:13Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2016-04-30T07:12:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4ac52a0fd066cd33b12d79b09e30fd8bdb52f8d8'/>
<id>urn:sha1:4ac52a0fd066cd33b12d79b09e30fd8bdb52f8d8</id>
<content type='text'>
When st_nci_i2c_acpi_request_resources() gets called we already
know that the entries in -&gt;acpi_match_table have matched ACPI ID
of the device.
In addition I2C client pointer cannot be NULL in any case
(otherwise I2C core would not call -&gt;probe() for the driver in
the first place).

Drop the two useless checks from the driver.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>nfc: st-nci: A APDU_READER_GATE pipe is unexpected on a UICC</title>
<updated>2016-05-03T23:33:08Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2016-04-30T07:12:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0209e79d540440962913054fae499ad1892a4f15'/>
<id>urn:sha1:0209e79d540440962913054fae499ad1892a4f15</id>
<content type='text'>
An APDU_READER_GATE pipe is not expected on a UICC. Be more
explicit so that an other secure element form factor (SD card)
does not prompt this message.

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>nfc: st-nci: Simplify white list building</title>
<updated>2016-05-03T23:32:25Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2016-04-30T07:12:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cde4856e612111ce91258b947051a08703cd1499'/>
<id>urn:sha1:cde4856e612111ce91258b947051a08703cd1499</id>
<content type='text'>
Simplify white list Building

Signed-off-by: Christophe Ricard &lt;christophe-h.ricard@st.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
</entry>
</feed>
