<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/staging/rtl8723bs, branch linux-5.7.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>Staging: rtl8723bs: prevent buffer overflow in update_sta_support_rate()</title>
<updated>2020-06-30T19:36:29+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2020-06-03T10:19:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=17b6bf582b4e45efa7d355e071f1b35f18469e21'/>
<id>17b6bf582b4e45efa7d355e071f1b35f18469e21</id>
<content type='text'>
commit b65a2d8c8614386f7e8d38ea150749f8a862f431 upstream.

The "ie_len" variable is in the 0-255 range and it comes from the
network.  If it's over NDIS_802_11_LENGTH_RATES_EX (16) then that will
lead to memory corruption.

Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Link: https://lore.kernel.org/r/20200603101958.GA1845750@mwanda
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit b65a2d8c8614386f7e8d38ea150749f8a862f431 upstream.

The "ie_len" variable is in the 0-255 range and it comes from the
network.  If it's over NDIS_802_11_LENGTH_RATES_EX (16) then that will
lead to memory corruption.

Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Link: https://lore.kernel.org/r/20200603101958.GA1845750@mwanda
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: hal: Remove NULL check before kfree</title>
<updated>2020-03-26T14:47:26+00:00</updated>
<author>
<name>Simran Singhal</name>
<email>singhalsimran0@gmail.com</email>
</author>
<published>2020-03-26T13:28:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b67b7b0465ff9cf89c11dd383d2888b29531f096'/>
<id>b67b7b0465ff9cf89c11dd383d2888b29531f096</id>
<content type='text'>
NULL check before kfree is unnecessary so remove it.

The following Coccinelle script was used to detect this:
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200326132823.GA18625@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
NULL check before kfree is unnecessary so remove it.

The following Coccinelle script was used to detect this:
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200326132823.GA18625@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: hal: Correct typos in comments</title>
<updated>2020-03-26T14:45:09+00:00</updated>
<author>
<name>R Veera Kumar</name>
<email>vkor@vkten.in</email>
</author>
<published>2020-03-26T14:30:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=1879d30ede2f778a8d9f147a32fc5c9f5bb90b44'/>
<id>1879d30ede2f778a8d9f147a32fc5c9f5bb90b44</id>
<content type='text'>
Correct typos in comments.
Misspellings found using checkpatch.pl.

Signed-off-by: R Veera Kumar &lt;vkor@vkten.in&gt;
Link: https://lore.kernel.org/r/20200326143023.13681-1-vkor@vkten.in
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct typos in comments.
Misspellings found using checkpatch.pl.

Signed-off-by: R Veera Kumar &lt;vkor@vkten.in&gt;
Link: https://lore.kernel.org/r/20200326143023.13681-1-vkor@vkten.in
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: os_dep: Correct typos in comments</title>
<updated>2020-03-26T14:45:08+00:00</updated>
<author>
<name>R Veera Kumar</name>
<email>vkor@vkten.in</email>
</author>
<published>2020-03-26T12:55:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=8fd1e0276eeecd594b7d34d2c7e4985b70f7e000'/>
<id>8fd1e0276eeecd594b7d34d2c7e4985b70f7e000</id>
<content type='text'>
Correct typos in comments.
Misspellings found using checkpatch.pl.

Signed-off-by: R Veera Kumar &lt;vkor@vkten.in&gt;
Link: https://lore.kernel.org/r/20200326125500.12861-1-vkor@vkten.in
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct typos in comments.
Misspellings found using checkpatch.pl.

Signed-off-by: R Veera Kumar &lt;vkor@vkten.in&gt;
Link: https://lore.kernel.org/r/20200326125500.12861-1-vkor@vkten.in
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: core: Correct typos in comments</title>
<updated>2020-03-26T14:45:08+00:00</updated>
<author>
<name>R Veera Kumar</name>
<email>vkor@vkten.in</email>
</author>
<published>2020-03-26T12:35:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=858ea450ae5d180674ffd03cefc3219785094465'/>
<id>858ea450ae5d180674ffd03cefc3219785094465</id>
<content type='text'>
Correct typos in comments.
Misspellings found using checkpatch.pl.

Signed-off-by: R Veera Kumar &lt;vkor@vkten.in&gt;
Link: https://lore.kernel.org/r/20200326123540.12401-1-vkor@vkten.in
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Correct typos in comments.
Misspellings found using checkpatch.pl.

Signed-off-by: R Veera Kumar &lt;vkor@vkten.in&gt;
Link: https://lore.kernel.org/r/20200326123540.12401-1-vkor@vkten.in
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: hal: Remove unnecessary cast on void pointer</title>
<updated>2020-03-26T14:45:08+00:00</updated>
<author>
<name>Simran Singhal</name>
<email>singhalsimran0@gmail.com</email>
</author>
<published>2020-03-26T11:32:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=78989d9ab8c123d33b82215f68b9c776c071fabb'/>
<id>78989d9ab8c123d33b82215f68b9c776c071fabb</id>
<content type='text'>
Assignment to a typed pointer is sufficient in C.
No cast is needed.

The following Coccinelle script was used to detect this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T*)x)-&gt;f
|

- (T*)
  e
)

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200326113210.GA29951@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Assignment to a typed pointer is sufficient in C.
No cast is needed.

The following Coccinelle script was used to detect this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
  *((T *)e)
|
  ((T *)x)[...]
|
  ((T*)x)-&gt;f
|

- (T*)
  e
)

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200326113210.GA29951@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: hal: Compress return logic</title>
<updated>2020-03-26T07:37:38+00:00</updated>
<author>
<name>Simran Singhal</name>
<email>singhalsimran0@gmail.com</email>
</author>
<published>2020-03-25T21:43:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=ecc11b42c79db41b45fe6f8db46ae8ca54cf126a'/>
<id>ecc11b42c79db41b45fe6f8db46ae8ca54cf126a</id>
<content type='text'>
Simplify function returns by merging assignment and return into
one command line.
Found with Coccinelle

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200325214312.GA1936@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Simplify function returns by merging assignment and return into
one command line.
Found with Coccinelle

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200325214312.GA1936@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: rtw_cmd: Compress lines for immediate return</title>
<updated>2020-03-26T07:37:38+00:00</updated>
<author>
<name>Simran Singhal</name>
<email>singhalsimran0@gmail.com</email>
</author>
<published>2020-03-25T21:22:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=1b590af9fa2d7d8407c4e780eb506d536157d36b'/>
<id>1b590af9fa2d7d8407c4e780eb506d536157d36b</id>
<content type='text'>
Compress two lines into a single line if immediate return statement is found.
It also removes variable cmd_obj as it is no longer needed.

It is done using script Coccinelle.
And coccinelle uses following semantic patch for this compression function:

@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200325212253.GA8175@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Compress two lines into a single line if immediate return statement is found.
It also removes variable cmd_obj as it is no longer needed.

It is done using script Coccinelle.
And coccinelle uses following semantic patch for this compression function:

@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200325212253.GA8175@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: rtw_efuse: Compress lines for immediate return</title>
<updated>2020-03-26T07:37:38+00:00</updated>
<author>
<name>Simran Singhal</name>
<email>singhalsimran0@gmail.com</email>
</author>
<published>2020-03-25T20:54:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=f465b0a4e502756724009fc1a35fb3319ce38d25'/>
<id>f465b0a4e502756724009fc1a35fb3319ce38d25</id>
<content type='text'>
Compress two lines into a single line if immediate return statement is found.

It is done using script Coccinelle. And coccinelle uses following semantic
patch for this compression function:

@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200325205418.GA29149@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Compress two lines into a single line if immediate return statement is found.

It is done using script Coccinelle. And coccinelle uses following semantic
patch for this compression function:

@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200325205418.GA29149@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8723bs: Remove blank line before '}' brace</title>
<updated>2020-03-25T18:40:27+00:00</updated>
<author>
<name>Simran Singhal</name>
<email>singhalsimran0@gmail.com</email>
</author>
<published>2020-03-25T18:26:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=f1a49bb9c8197170a1e3f645c4e73ec7fe7ddefb'/>
<id>f1a49bb9c8197170a1e3f645c4e73ec7fe7ddefb</id>
<content type='text'>
Remove unneeded blank line before a close brace '}'.
Issue found by checkpatch.pl:
CHECK: Blank lines aren't necessary before a close brace '}'

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200325182617.GA9411@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove unneeded blank line before a close brace '}'.
Issue found by checkpatch.pl:
CHECK: Blank lines aren't necessary before a close brace '}'

Signed-off-by: Simran Singhal &lt;singhalsimran0@gmail.com&gt;
Link: https://lore.kernel.org/r/20200325182617.GA9411@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
