<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/net/wireless/rsi, branch linux-5.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-07-13T10:18:24Z</updated>
<entry>
<title>mmc: sdio: Move SDIO IDs from rsi_sdio driver to common include file</title>
<updated>2020-07-13T10:18:24Z</updated>
<author>
<name>Pali Rohár</name>
</author>
<published>2020-06-29T07:21:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4f7872ae920fccf6a07ca64cc40792bd6be0d0d5'/>
<id>urn:sha1:4f7872ae920fccf6a07ca64cc40792bd6be0d0d5</id>
<content type='text'>
Define appropriate macro names for consistency with other macros.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Link: https://lore.kernel.org/r/20200629072144.24351-1-pali@kernel.org
Signed-off-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;
</content>
</entry>
<entry>
<title>treewide: replace '---help---' in Kconfig files with 'help'</title>
<updated>2020-06-13T16:57:21Z</updated>
<author>
<name>Masahiro Yamada</name>
</author>
<published>2020-06-13T16:50:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7f7f6248d9740d710fd6bd190293fe5e16410ac'/>
<id>urn:sha1:a7f7f6248d9740d710fd6bd190293fe5e16410ac</id>
<content type='text'>
Since commit 84af7a6194e4 ("checkpatch: kconfig: prefer 'help' over
'---help---'"), the number of '---help---' has been gradually
decreasing, but there are still more than 2400 instances.

This commit finishes the conversion. While I touched the lines,
I also fixed the indentation.

There are a variety of indentation styles found.

  a) 4 spaces + '---help---'
  b) 7 spaces + '---help---'
  c) 8 spaces + '---help---'
  d) 1 space + 1 tab + '---help---'
  e) 1 tab + '---help---'    (correct indentation)
  f) 1 tab + 1 space + '---help---'
  g) 1 tab + 2 spaces + '---help---'

In order to convert all of them to 1 tab + 'help', I ran the
following commend:

  $ find . -name 'Kconfig*' | xargs sed -i 's/^[[:space:]]*---help---/\thelp/'

Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;
</content>
</entry>
<entry>
<title>rsi: fix a typo "throld" -&gt; "threshold"</title>
<updated>2020-04-14T15:04:15Z</updated>
<author>
<name>Qiujun Huang</name>
</author>
<published>2020-04-02T14:17:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f9f46bca59d11d0fa04087c840e23ca94cd239b5'/>
<id>urn:sha1:f9f46bca59d11d0fa04087c840e23ca94cd239b5</id>
<content type='text'>
There is a typo in debug message. Fix it.
s/throld/threshold

Signed-off-by: Qiujun Huang &lt;hqjagain@gmail.com&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Link: https://lore.kernel.org/r/1585837078-6149-1-git-send-email-hqjagain@gmail.com
</content>
</entry>
<entry>
<title>rsi: fix null pointer dereference during rsi_shutdown()</title>
<updated>2020-02-12T16:19:14Z</updated>
<author>
<name>Martin Kepplinger</name>
</author>
<published>2020-01-29T13:02:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16bbc3eb83728c03138191a5d23d84d38175fa26'/>
<id>urn:sha1:16bbc3eb83728c03138191a5d23d84d38175fa26</id>
<content type='text'>
Appearently the hw pointer can be NULL while the module is loaded and
in that case rsi_shutdown() crashes due to the unconditional dereference.

Signed-off-by: Martin Kepplinger &lt;martin.kepplinger@puri.sm&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>rsi_91x_usb: fix interface sanity check</title>
<updated>2019-12-18T19:06:06Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2019-12-10T11:44:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3139b180906af43bc09bd3373fc2338a8271d9d9'/>
<id>urn:sha1:3139b180906af43bc09bd3373fc2338a8271d9d9</id>
<content type='text'>
Make sure to use the current alternate setting when verifying the
interface descriptors to avoid binding to an invalid interface.

Failing to do so could cause the driver to misbehave or trigger a WARN()
in usb_submit_urb() that kernels with panic_on_warn set would choke on.

Fixes: dad0d04fa7ba ("rsi: Add RS9113 wireless driver")
Cc: stable &lt;stable@vger.kernel.org&gt;     # 3.15
Cc: Fariya Fatima &lt;fariyaf@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>rsi: add missing endpoint sanity checks</title>
<updated>2019-12-18T18:57:07Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2019-11-28T17:22:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=960da557f435bfe14edb160a42b8ed3a2e255e73'/>
<id>urn:sha1:960da557f435bfe14edb160a42b8ed3a2e255e73</id>
<content type='text'>
The driver expects at least one bulk-in endpoint when in "wifi-alone"
operating mode and two bulk-in endpoints otherwise, and would otherwise
fail to to submit the corresponding bulk URB to the default pipe during
probe with a somewhat cryptic message:

	rsi_91x: rsi_rx_urb_submit: Failed in urb submission
	rsi_91x: rsi_probe: Failed in probe...Exiting
	RSI-USB WLAN: probe of 2-2.4:1.0 failed with error -8

The current endpoint sanity check looks broken and would only bail out
early if there was no bulk-in endpoint but at least one bulk-out
endpoint.

Tighten this check to always require at least one bulk-in and one
bulk-out endpoint, and add the missing sanity check for a Bluetooth
bulk-in endpoint when in a BT operating mode. Also make sure to log an
informative error message when the expected endpoints are missing.

Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>rsi: fix non-atomic allocation in completion handler</title>
<updated>2019-12-18T18:57:06Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2019-11-28T17:22:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b9b9f9fea21830f85cf0148cd8dce001ae55ead1'/>
<id>urn:sha1:b9b9f9fea21830f85cf0148cd8dce001ae55ead1</id>
<content type='text'>
USB completion handlers are called in atomic context and must
specifically not allocate memory using GFP_KERNEL.

Fixes: a1854fae1414 ("rsi: improve RX packet handling in USB interface")
Cc: stable &lt;stable@vger.kernel.org&gt; # 4.17
Cc: Prameela Rani Garnepudi &lt;prameela.j04cs@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>rsi: fix memory leak on failed URB submission</title>
<updated>2019-12-18T18:57:05Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2019-11-28T17:22:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=47768297481184932844ab01a86752ba31a38861'/>
<id>urn:sha1:47768297481184932844ab01a86752ba31a38861</id>
<content type='text'>
Make sure to free the skb on failed receive-URB submission (e.g. on
disconnect or currently also due to a missing endpoint).

Fixes: a1854fae1414 ("rsi: improve RX packet handling in USB interface")
Cc: stable &lt;stable@vger.kernel.org&gt;     # 4.17
Cc: Prameela Rani Garnepudi &lt;prameela.j04cs@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>rsi: fix use-after-free on probe errors</title>
<updated>2019-12-18T18:57:04Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2019-11-28T17:22:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=92aafe77123ab478e5f5095878856ab0424910da'/>
<id>urn:sha1:92aafe77123ab478e5f5095878856ab0424910da</id>
<content type='text'>
The driver would fail to stop the command timer in most error paths,
something which specifically could lead to the timer being freed while
still active on I/O errors during probe.

Fix this by making sure that each function starting the timer also stops
it in all relevant error paths.

Reported-by: syzbot+1d1597a5aa3679c65b9f@syzkaller.appspotmail.com
Fixes: b78e91bcfb33 ("rsi: Add new firmware loading method")
Cc: stable &lt;stable@vger.kernel.org&gt;     # 4.12
Cc: Prameela Rani Garnepudi &lt;prameela.j04cs@gmail.com&gt;
Cc: Amitkumar Karwar &lt;amit.karwar@redpinesignals.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>rsi: fix use-after-free on failed probe and unbind</title>
<updated>2019-12-18T18:57:03Z</updated>
<author>
<name>Johan Hovold</name>
</author>
<published>2019-11-28T17:22:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e93cd35101b61e4c79149be2cfc927c4b28dc60c'/>
<id>urn:sha1:e93cd35101b61e4c79149be2cfc927c4b28dc60c</id>
<content type='text'>
Make sure to stop both URBs before returning after failed probe as well
as on disconnect to avoid use-after-free in the completion handler.

Reported-by: syzbot+b563b7f8dbe8223a51e8@syzkaller.appspotmail.com
Fixes: a4302bff28e2 ("rsi: add bluetooth rx endpoint")
Fixes: dad0d04fa7ba ("rsi: Add RS9113 wireless driver")
Cc: stable &lt;stable@vger.kernel.org&gt;     # 3.15
Cc: Siva Rebbagondla &lt;siva.rebbagondla@redpinesignals.com&gt;
Cc: Prameela Rani Garnepudi &lt;prameela.j04cs@gmail.com&gt;
Cc: Amitkumar Karwar &lt;amit.karwar@redpinesignals.com&gt;
Cc: Fariya Fatima &lt;fariyaf@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
</feed>
