<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/net/wireless/rsi, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2015-10-22T21:43:24Z</updated>
<entry>
<title>rsi: Fix possible leak when loading firmware</title>
<updated>2015-10-22T21:43:24Z</updated>
<author>
<name>Christian Engelmayer</name>
<email>cengelma@gmx.at</email>
</author>
<published>2015-08-21T21:14:26Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a58897f9e663bb9b64b703f7dd451c7089cb28bb'/>
<id>urn:sha1:a58897f9e663bb9b64b703f7dd451c7089cb28bb</id>
<content type='text'>
commit a8b9774571d46506a0774b1ced3493b1245cf893 upstream.

Commit 5d5cd85ff441 ("rsi: Fix failure to load firmware after memory
leak fix and fix the leak") also added a check on the allocation of
DMA-accessible memory that may directly return. In that case the
already allocated firmware data is leaked. Make sure the data is
always freed correctly. Detected by Coverity CID 1316519.

Fixes: 5d5cd85ff441 ("rsi: Fix failure to load firmware after memory leak fix and fix the leak")
Signed-off-by: Christian Engelmayer &lt;cengelma@gmx.at&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>rsi: Fix failure to load firmware after memory leak fix and fix the leak</title>
<updated>2015-09-13T16:07:38Z</updated>
<author>
<name>Mike Looijmans</name>
<email>mike.looijmans@topic.nl</email>
</author>
<published>2015-07-28T05:51:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=57e25b602cab84202e69f22bce932336cb0db03b'/>
<id>urn:sha1:57e25b602cab84202e69f22bce932336cb0db03b</id>
<content type='text'>
commit 5d5cd85ff441534a52f23f821d0a7c644d3b6cce upstream.

Fixes commit eae79b4f3e82 ("rsi: fix memory leak in rsi_load_ta_instructions()")
which stopped the driver from functioning.

Firmware data has been allocated using vmalloc(), resulting in memory
that cannot be used for DMA. Hence the firmware was first copied to a
buffer allocated with kmalloc() in the original code. This patch reverts
the commit and only calls "kfree()" to release the buffer after sending
the data. This fixes the memory leak without breaking the driver.

Add a comment to the kmemdup() calls to explain why this is done, and abort
if memory allocation fails.

Tested on a Topic Miami-Florida board which contains the rsi SDIO chip.

Also added the same kfree() call to the USB glue driver. This was not
tested on actual hardware though, as I only have the SDIO version.

Fixes: eae79b4f3e82 ("rsi: fix memory leak in rsi_load_ta_instructions()")
Signed-off-by: Mike Looijmans &lt;mike.looijmans@topic.nl&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>rsi: fix memory leak in rsi_load_ta_instructions()</title>
<updated>2014-12-24T15:26:08Z</updated>
<author>
<name>Alexey Khoroshilov</name>
<email>khoroshilov@ispras.ru</email>
</author>
<published>2014-12-12T21:43:55Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=eae79b4f3e82ca63a53478a161b190a0d38fe526'/>
<id>urn:sha1:eae79b4f3e82ca63a53478a161b190a0d38fe526</id>
<content type='text'>
Memory allocated by kmemdup() in rsi_load_ta_instructions() is leaked.
But duplication of firmware data here is useless,
so the patch removes kmemdup() at all.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Signed-off-by: Kalle Valo &lt;kvalo@codeaurora.org&gt;
</content>
</entry>
<entry>
<title>rsi: fix memory leaks and error handling in rsi_91x_usb</title>
<updated>2014-07-01T18:26:26Z</updated>
<author>
<name>Alexey Khoroshilov</name>
<email>khoroshilov@ispras.ru</email>
</author>
<published>2014-06-26T22:51:25Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=50591c60a93ad3a8d13833cb8048b02d3c2c4bd4'/>
<id>urn:sha1:50591c60a93ad3a8d13833cb8048b02d3c2c4bd4</id>
<content type='text'>
The patch fixes a couple of issues:
- absence of deallocation of rsi_dev-&gt;rx_usb_urb[0] in the driver;
- potential NULL pointer dereference because of lack of checks for memory
  allocation success in rsi_init_usb_interface().

By the way, it makes rsi_probe() returning error code instead of 1
and fixes comments regarding returning values.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rsi: GFP_ATOMIC is not needed in rsi_init_usb_interface()</title>
<updated>2014-07-01T18:26:26Z</updated>
<author>
<name>Alexey Khoroshilov</name>
<email>khoroshilov@ispras.ru</email>
</author>
<published>2014-06-26T22:51:24Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=5bc5ca85d54e0176cb967f550093f42bb0d65b67'/>
<id>urn:sha1:5bc5ca85d54e0176cb967f550093f42bb0d65b67</id>
<content type='text'>
Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rsi: Fixed warnings reported by static code analyzers.</title>
<updated>2014-06-25T19:40:41Z</updated>
<author>
<name>Jahnavi Meher</name>
<email>jahnavi.meher@gmail.com</email>
</author>
<published>2014-06-25T10:18:15Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d51193d4ae181df37e9196a54b1fe3360ca920f2'/>
<id>urn:sha1:d51193d4ae181df37e9196a54b1fe3360ca920f2</id>
<content type='text'>
Fixed a warning related to incorrect return type and removed an
unnecessary semi colon.

Signed-off-by: Jahnavi Meher &lt;jahnavi.meher@gmail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rsi: Fixed errors and warnings reported by static code analyzers.</title>
<updated>2014-06-25T19:40:40Z</updated>
<author>
<name>Jahnavi Meher</name>
<email>jahnavi.meher@gmail.com</email>
</author>
<published>2014-06-25T10:17:45Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=688df7ec26ffde2c8d79b0ac1a3378155da59ff2'/>
<id>urn:sha1:688df7ec26ffde2c8d79b0ac1a3378155da59ff2</id>
<content type='text'>
Fixed a potential buffer overflow in 'rsi_rates' and a sparse warning
related to difference in endianness in rsi_91x_mgmt.c.

Signed-off-by: Jahnavi Meher &lt;jahnavi.meher@gmail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rsi: Changes for 40MHz</title>
<updated>2014-06-19T19:49:23Z</updated>
<author>
<name>Jahnavi Meher</name>
<email>jahnavi.meher@gmail.com</email>
</author>
<published>2014-06-16T14:17:03Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e8c58e7a5a106c3d557fccd01cd4d1128f9bab38'/>
<id>urn:sha1:e8c58e7a5a106c3d557fccd01cd4d1128f9bab38</id>
<content type='text'>
Added code required for 40MHz.

Signed-off-by: Jahnavi Meher &lt;jahnavi.meher@gmail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rsi: Adding support for host based bgscan.</title>
<updated>2014-06-19T19:49:23Z</updated>
<author>
<name>Jahnavi Meher</name>
<email>jahnavi.meher@gmail.com</email>
</author>
<published>2014-06-16T14:16:48Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=686a254177929cf82bc34af0944906e6866e393a'/>
<id>urn:sha1:686a254177929cf82bc34af0944906e6866e393a</id>
<content type='text'>
Added support for host based bgscan. The h/w queues are blocked
while bgscan is being performed and after coming to the connected
channel, the queues are unblocked.

Signed-off-by: Jahnavi Meher &lt;jahnavi.meher@gmail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
<entry>
<title>rsi: Adding support for 5GHz</title>
<updated>2014-06-19T19:49:23Z</updated>
<author>
<name>Jahnavi Meher</name>
<email>jahnavi.meher@gmail.com</email>
</author>
<published>2014-06-16T14:16:31Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=85af5bf829813df5571779e795b73ee498173945'/>
<id>urn:sha1:85af5bf829813df5571779e795b73ee498173945</id>
<content type='text'>
Adding support for 5GHz.

Signed-off-by: Jahnavi Meher &lt;jahnavi.meher@gmail.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
</entry>
</feed>
