<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/nfc/st21nfca, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-06-11T07:21:39Z</updated>
<entry>
<title>NFC: st21nfca: add missed kfree_skb() in an error path</title>
<updated>2020-06-11T07:21:39Z</updated>
<author>
<name>Chuhong Yuan</name>
</author>
<published>2020-05-28T10:20:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3058a08e232751ecac9ea8fc420acb280f06982b'/>
<id>urn:sha1:3058a08e232751ecac9ea8fc420acb280f06982b</id>
<content type='text'>
[ Upstream commit 3decabdc714ca56c944f4669b4cdec5c2c1cea23 ]

st21nfca_tm_send_atr_res() misses to call kfree_skb() in an error path.
Add the missed function call to fix it.

Fixes: 1892bf844ea0 ("NFC: st21nfca: Adding P2P support to st21nfca in Initiator &amp; Target mode")
Signed-off-by: Chuhong Yuan &lt;hslester96@gmail.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>NFC: st21nfca: fix double free</title>
<updated>2019-11-12T18:13:16Z</updated>
<author>
<name>Pan Bian</name>
</author>
<published>2019-11-07T01:33:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0c5f54da33876d187bd6baca050c7f980144248f'/>
<id>urn:sha1:0c5f54da33876d187bd6baca050c7f980144248f</id>
<content type='text'>
[ Upstream commit 99a8efbb6e30b72ac98cecf81103f847abffb1e5 ]

The variable nfcid_skb is not changed in the callee nfc_hci_get_param()
if error occurs. Consequently, the freed variable nfcid_skb will be
freed again, resulting in a double free bug. Set nfcid_skb to NULL after
releasing it to fix the bug.

Signed-off-by: Pan Bian &lt;bianpan2016@163.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>st21nfca_connectivity_event_received: null check the allocation</title>
<updated>2019-09-06T08:18:05Z</updated>
<author>
<name>Navid Emamdoost</name>
</author>
<published>2019-07-23T22:04:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c697bfc26a4679e69f4ba9698468afbee3ea7bcd'/>
<id>urn:sha1:c697bfc26a4679e69f4ba9698468afbee3ea7bcd</id>
<content type='text'>
[ Upstream commit 9891d06836e67324c9e9c4675ed90fc8b8110034 ]

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: st21nfca: Add support for proprietary commands</title>
<updated>2015-10-27T03:00:24Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-26T06:50:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15d17170b4e44c5768c3d32b093cd393c4dbc158'/>
<id>urn:sha1:15d17170b4e44c5768c3d32b093cd393c4dbc158</id>
<content type='text'>
Add support for proprietary commands useful mainly
for factory testings.

Here is a list:

- FACTORY_MODE: Allow to set the driver into a mode where no
  secure element are activated. It does not consider any
  NFC_ATTR_VENDOR_DATA.
- HCI_CLEAR_ALL_PIPES: Allow to execute a HCI clear all pipes
  command. It does not consider any NFC_ATTR_VENDOR_DATA.
- HCI_DM_PUT_DATA: Allow to configure specific CLF registry as
  for example RF trimmings or low level drivers configurations
  (I2C, SPI, SWP).
- HCI_DM_UPDATE_AID: Allow to configure an AID routing into the
  CLF routing table following RF technology, CLF mode or protocol.
- HCI_DM_GET_INFO: Allow to retrieve CLF information.
- HCI_DM_GET_DATA: Allow to retrieve CLF configurable data such as
  low level drivers configurations or RF trimmings.
- HCI_DM_LOAD: Allow to load a firmware into the CLF. A complete
  packet can be more than 8KB.
- HCI_DM_RESET: Allow to run a CLF reset in order to "commit" CLF
  configuration changes without CLF power off.
- HCI_GET_PARAM: Allow to retrieve an HCI CLF parameter (for example
  the white list).
- HCI_DM_FIELD_GENERATOR: Allow to generate different kind of RF
  technology. When using this command to anti-collision is done.
- HCI_LOOPBACK: Allow to echo a command and test the Dh to CLF
  connectivity.

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: st21nfca: Add error messages for unexpected HCI events</title>
<updated>2015-10-27T02:55:13Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9e062d0599f499082320006ae3b54cf391bf996'/>
<id>urn:sha1:a9e062d0599f499082320006ae3b54cf391bf996</id>
<content type='text'>
Potentially an unexpected HCI event may occur because of a
firmware bug. It could be transparent for the user but we should
at least log it.

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: st21nfca: Add few code style fixes</title>
<updated>2015-10-27T02:55:13Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=57dc828a7740f600ea8ce3049c3745aa805c83c9'/>
<id>urn:sha1:57dc828a7740f600ea8ce3049c3745aa805c83c9</id>
<content type='text'>
Add a minor code style fixes

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: st21nfca: Fix host_list verification after SEactivation</title>
<updated>2015-10-27T02:55:12Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cde2aa99ba702ab8efa583495e54731b9f854e66'/>
<id>urn:sha1:cde2aa99ba702ab8efa583495e54731b9f854e66</id>
<content type='text'>
A secure element can be activated in different order.
The host_list is updated keeping a fixed order:
	&lt;terminal_host_id&gt;&lt;uicc_id&gt;&lt;ese_id&gt;.

Cc: stable@vger.kernel.org
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: st21nfca: Fix st21nfca_gates offset</title>
<updated>2015-10-26T05:53:17Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ba723199d18eeb5021cd6ace4aaf90670d6b3133'/>
<id>urn:sha1:ba723199d18eeb5021cd6ace4aaf90670d6b3133</id>
<content type='text'>
It is useless to start from index 0 when looking for a gate
because only dynamic pipes are retrieved with
ST21NFCA_DM_GETINFO(ST21NFCA_DM_GETINFO_PIPE_LIST).

The first dynamic pipe is present at index 3.

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: st21nfca: Keep st21nfca_gates unchanged in load_session</title>
<updated>2015-10-26T05:53:16Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=92d108b6f4fcabf45df5fa9631cfc4ada35e9ab1'/>
<id>urn:sha1:92d108b6f4fcabf45df5fa9631cfc4ada35e9ab1</id>
<content type='text'>
We need to keep initial st_nci_gates values in order for
nfc_hci_dev_connect_gates to create and open pipe when necessary.

For example after a firmware update CLF pipes are cleared. Changing
pipe values in st21nfca_gates was causing nfc_hci_dev_connect_gates
not using accurate pipes value.

Cc: stable@vger.kernel.org
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: st21nfca: Open NFC_HCI_LINK_MGMT_PIPE</title>
<updated>2015-10-26T05:53:15Z</updated>
<author>
<name>Christophe Ricard</name>
</author>
<published>2015-10-25T21:54:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6443ce97d2266b24f8315cb7e3ff99adf822a597'/>
<id>urn:sha1:6443ce97d2266b24f8315cb7e3ff99adf822a597</id>
<content type='text'>
NFC_HCI_LINK_MGMT_PIPE was never opened in nfc_hci_load_session.

Cc: stable@vger.kernel.org
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>
