<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/staging/rtl8188eu, branch v3.19</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>staging: rtl8188eu: hal: hal_intf.c: Cleaning up functions that are not used anywhere</title>
<updated>2014-12-03T00:29:26+00:00</updated>
<author>
<name>Rickard Strandqvist</name>
<email>rickard_strandqvist@spectrumdigital.se</email>
</author>
<published>2014-12-02T22:33:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=99eff12f8a28762ac5d96158f0e344d64f978d28'/>
<id>99eff12f8a28762ac5d96158f0e344d64f978d28</id>
<content type='text'>
Removes some functions that are not used anywhere.
rtw_hal_interrupt_handler() rtw_hal_sreset_get_wifi_status()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist &lt;rickard_strandqvist@spectrumdigital.se&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removes some functions that are not used anywhere.
rtw_hal_interrupt_handler() rtw_hal_sreset_get_wifi_status()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist &lt;rickard_strandqvist@spectrumdigital.se&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8188eu: usb_dvobj_init(): A NULL pointer check for usb_host_endpoints makes no sense</title>
<updated>2014-12-03T00:29:26+00:00</updated>
<author>
<name>Jes Sorensen</name>
<email>Jes.Sorensen@redhat.com</email>
</author>
<published>2014-12-01T20:20:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=6179ed592b5e4c797d7c9668fe81356ebbeab423'/>
<id>6179ed592b5e4c797d7c9668fe81356ebbeab423</id>
<content type='text'>
struct usb_host_interface points to an array of
struct usb_host_endpoints - it makes no sense to do a NULL pointer
check for each pointer.

Signed-off-by: Jes Sorensen &lt;Jes.Sorensen@redhat.com&gt;
Acked-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
struct usb_host_interface points to an array of
struct usb_host_endpoints - it makes no sense to do a NULL pointer
check for each pointer.

Signed-off-by: Jes Sorensen &lt;Jes.Sorensen@redhat.com&gt;
Acked-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging:drivers:staging:rtl8188eu:hal:rtl8188e_hal_init.c: Added a blank line after declaration</title>
<updated>2014-12-03T00:29:26+00:00</updated>
<author>
<name>Anjana Sasindran</name>
<email>anjanasasindran123@gmail.com</email>
</author>
<published>2014-11-28T16:39:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=8b21696c51b05fbe0175cc3c22f3aaf1408cc18c'/>
<id>8b21696c51b05fbe0175cc3c22f3aaf1408cc18c</id>
<content type='text'>
This patch fix a checkpatch.pl warning

WARNING:Missing blank line after declaration

Signed-off-by: Anjana Sasindran &lt;anjanasasindran123@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fix a checkpatch.pl warning

WARNING:Missing blank line after declaration

Signed-off-by: Anjana Sasindran &lt;anjanasasindran123@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge 3.18-rc7 into staging-work.</title>
<updated>2014-12-03T00:20:59+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2014-12-03T00:20:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=deef2a118aed02aa9421e399056c82045e728282'/>
<id>deef2a118aed02aa9421e399056c82045e728282</id>
<content type='text'>
We want those staging fixes in here as well.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We want those staging fixes in here as well.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: r8188eu: Add new device ID for DLink GO-USB-N150</title>
<updated>2014-11-27T16:55:01+00:00</updated>
<author>
<name>Larry Finger</name>
<email>Larry.Finger@lwfinger.net</email>
</author>
<published>2014-11-27T16:10:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=6d4556fc0309608f760f1d329df56d77fdd0c31a'/>
<id>6d4556fc0309608f760f1d329df56d77fdd0c31a</id>
<content type='text'>
The DLink GO-USB-N150 with revision B1 uses this driver.

Signed-off-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The DLink GO-USB-N150 with revision B1 uses this driver.

Signed-off-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtl8188eu: Fix a typo in rtw_led.*</title>
<updated>2014-11-26T23:27:25+00:00</updated>
<author>
<name>Krzysztof Konopko</name>
<email>kris@konagma.com</email>
</author>
<published>2014-11-06T23:24:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=f4a52b40dee4fcacf6b7c34483cd0a0133df4436'/>
<id>f4a52b40dee4fcacf6b7c34483cd0a0133df4436</id>
<content type='text'>
A rather obvious typo in one of the identifier has been found.  This patch
fixes the typo and ensures any lines changed do not exceed 80 characters
as indicated by scripts/checkpatch.pl

Signed-off-by: Krzysztof Konopko &lt;kris@konagma.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A rather obvious typo in one of the identifier has been found.  This patch
fixes the typo and ensures any lines changed do not exceed 80 characters
as indicated by scripts/checkpatch.pl

Signed-off-by: Krzysztof Konopko &lt;kris@konagma.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtl8188eu: Fix FSF_MAILING_ADDRESS in rtw_led.*</title>
<updated>2014-11-26T23:27:25+00:00</updated>
<author>
<name>Krzysztof Konopko</name>
<email>kris@konagma.com</email>
</author>
<published>2014-11-06T23:24:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=79a8641d9f104b1cb089eb734373612e369f8fe8'/>
<id>79a8641d9f104b1cb089eb734373612e369f8fe8</id>
<content type='text'>
rtw_led.* files include Free Software Foundation's mailing address in
the sample GPL notice.  This is not desired and picked when running
scripts/checkpatch.pl.

Signed-off-by: Krzysztof Konopko &lt;kris@konagma.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rtw_led.* files include Free Software Foundation's mailing address in
the sample GPL notice.  This is not desired and picked when running
scripts/checkpatch.pl.

Signed-off-by: Krzysztof Konopko &lt;kris@konagma.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rtl8188eu: Simplify rtw_endofpktfile() in xmit_linux.c</title>
<updated>2014-11-26T23:27:25+00:00</updated>
<author>
<name>Krzysztof Konopko</name>
<email>kris@konagma.com</email>
</author>
<published>2014-11-10T18:54:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=31d4cf12944ea7e578e4cef9b742da504dfbd444'/>
<id>31d4cf12944ea7e578e4cef9b742da504dfbd444</id>
<content type='text'>
scripts/checkpatch.pl reports a coding style problem in xmit_linux.c

  WARNING:BRACES: braces {} are not necessary for single statement blocks
  #61852: FILE: rtl8188eu/os_dep/xmit_linux.c:70:

This patch removes unnecessary braces and simplifies the function to a
single return statement.

Signed-off-by: Krzysztof Konopko &lt;kris@konagma.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
scripts/checkpatch.pl reports a coding style problem in xmit_linux.c

  WARNING:BRACES: braces {} are not necessary for single statement blocks
  #61852: FILE: rtl8188eu/os_dep/xmit_linux.c:70:

This patch removes unnecessary braces and simplifies the function to a
single return statement.

Signed-off-by: Krzysztof Konopko &lt;kris@konagma.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: r8188eu: Fix scheduling while atomic error introduced in commit fadbe0cd</title>
<updated>2014-11-26T22:03:48+00:00</updated>
<author>
<name>Larry Finger</name>
<email>Larry.Finger@lwfinger.net</email>
</author>
<published>2014-11-12T16:07:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=33dc85c3c667209c930b2dac5ccbc2a365e06b7a'/>
<id>33dc85c3c667209c930b2dac5ccbc2a365e06b7a</id>
<content type='text'>
In commit fadbe0cd5292851608e2e01b91d9295fa287b9fe entitled "staging:
rtl8188eu:Remove rtw_zmalloc(), wrapper for kzalloc()", the author failed
to note that the original code in the wrapper tested whether the caller
could sleep, and set the flags argument to kzalloc() appropriately.
After the patch, GFP_KERNEL is used unconditionally. Unfortunately, several
of the routines may be entered from an interrupt routine and generate
a BUG splat for every such call. Routine rtw_sitesurvey_cmd() is used in the
example below:

BUG: sleeping function called from invalid context at mm/slub.c:1240
in_atomic(): 1, irqs_disabled(): 0, pid: 756, name: wpa_supplicant
INFO: lockdep is turned off.
CPU: 2 PID: 756 Comm: wpa_supplicant Tainted: G        WC O   3.18.0-rc4+ #34
Hardware name: TOSHIBA TECRA A50-A/TECRA A50-A, BIOS Version 4.20   04/17/2014
ffffc90005557000 ffff880216fafaa8 ffffffff816b0bbf 0000000000000000
ffff8800c3b58000 ffff880216fafac8 ffffffff8107af77 0000000000000001
0000000000000010 ffff880216fafb18 ffffffff811b06ce 0000000000000000
Call Trace:
 [&lt;ffffffff816b0bbf&gt;] dump_stack+0x4e/0x71
 [&lt;ffffffff8107af77&gt;] __might_sleep+0xf7/0x120
 [&lt;ffffffff811b06ce&gt;] kmem_cache_alloc_trace+0x4e/0x1f0
 [&lt;ffffffffa0888226&gt;] ? rtw_sitesurvey_cmd+0x56/0x2a0 [r8188eu]
 [&lt;ffffffffa0888226&gt;] rtw_sitesurvey_cmd+0x56/0x2a0 [r8188eu]
 [&lt;ffffffffa088f00d&gt;] rtw_do_join+0x22d/0x370 [r8188eu]
 [&lt;ffffffffa088f6e8&gt;] rtw_set_802_11_ssid+0x218/0x3d0 [r8188eu]
 [&lt;ffffffffa08c3ca5&gt;] rtw_wx_set_essid+0x1e5/0x410 [r8188eu]
 [&lt;ffffffffa08c3ac0&gt;] ? rtw_wx_get_rate+0x50/0x50 [r8188eu]
 [&lt;ffffffff816938f1&gt;] ioctl_standard_iw_point+0x151/0x3f0
 [&lt;ffffffff81693d52&gt;] ioctl_standard_call+0xb2/0xe0
 [&lt;ffffffff81597df7&gt;] ? rtnl_lock+0x17/0x20
 [&lt;ffffffff816945a0&gt;] ? iw_handler_get_private+0x70/0x70
 [&lt;ffffffff81693ca0&gt;] ? call_commit_handler+0x40/0x40
 [&lt;ffffffff81693256&gt;] wireless_process_ioctl+0x176/0x1c0
 [&lt;ffffffff81693e79&gt;] wext_handle_ioctl+0x69/0xc0
 [&lt;ffffffff8159fe79&gt;] dev_ioctl+0x309/0x5e0
 [&lt;ffffffff810be9c7&gt;] ? call_rcu+0x17/0x20
 [&lt;ffffffff8156a472&gt;] sock_ioctl+0x142/0x2e0
 [&lt;ffffffff811e0c70&gt;] do_vfs_ioctl+0x300/0x520
 [&lt;ffffffff81101514&gt;] ? __audit_syscall_entry+0xb4/0x110
 [&lt;ffffffff81101514&gt;] ? __audit_syscall_entry+0xb4/0x110
 [&lt;ffffffff810102bc&gt;] ? do_audit_syscall_entry+0x6c/0x70
 [&lt;ffffffff811e0f11&gt;] SyS_ioctl+0x81/0xa0
 [&lt;ffffffff816ba1d2&gt;] system_call_fastpath+0x12/0x17

Additional routines that generate this BUG are rtw_joinbss_cmd(),
rtw_dynamic_chk_wk_cmd(), rtw_lps_ctrl_wk_cmd(), rtw_rpt_timer_cfg_cmd(),
rtw_ps_cmd(), report_survey_event(), report_join_res(), survey_timer_hdl(),
and rtw_check_bcn_info().

Signed-off-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Cc: navin patidar &lt;navin.patidar@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In commit fadbe0cd5292851608e2e01b91d9295fa287b9fe entitled "staging:
rtl8188eu:Remove rtw_zmalloc(), wrapper for kzalloc()", the author failed
to note that the original code in the wrapper tested whether the caller
could sleep, and set the flags argument to kzalloc() appropriately.
After the patch, GFP_KERNEL is used unconditionally. Unfortunately, several
of the routines may be entered from an interrupt routine and generate
a BUG splat for every such call. Routine rtw_sitesurvey_cmd() is used in the
example below:

BUG: sleeping function called from invalid context at mm/slub.c:1240
in_atomic(): 1, irqs_disabled(): 0, pid: 756, name: wpa_supplicant
INFO: lockdep is turned off.
CPU: 2 PID: 756 Comm: wpa_supplicant Tainted: G        WC O   3.18.0-rc4+ #34
Hardware name: TOSHIBA TECRA A50-A/TECRA A50-A, BIOS Version 4.20   04/17/2014
ffffc90005557000 ffff880216fafaa8 ffffffff816b0bbf 0000000000000000
ffff8800c3b58000 ffff880216fafac8 ffffffff8107af77 0000000000000001
0000000000000010 ffff880216fafb18 ffffffff811b06ce 0000000000000000
Call Trace:
 [&lt;ffffffff816b0bbf&gt;] dump_stack+0x4e/0x71
 [&lt;ffffffff8107af77&gt;] __might_sleep+0xf7/0x120
 [&lt;ffffffff811b06ce&gt;] kmem_cache_alloc_trace+0x4e/0x1f0
 [&lt;ffffffffa0888226&gt;] ? rtw_sitesurvey_cmd+0x56/0x2a0 [r8188eu]
 [&lt;ffffffffa0888226&gt;] rtw_sitesurvey_cmd+0x56/0x2a0 [r8188eu]
 [&lt;ffffffffa088f00d&gt;] rtw_do_join+0x22d/0x370 [r8188eu]
 [&lt;ffffffffa088f6e8&gt;] rtw_set_802_11_ssid+0x218/0x3d0 [r8188eu]
 [&lt;ffffffffa08c3ca5&gt;] rtw_wx_set_essid+0x1e5/0x410 [r8188eu]
 [&lt;ffffffffa08c3ac0&gt;] ? rtw_wx_get_rate+0x50/0x50 [r8188eu]
 [&lt;ffffffff816938f1&gt;] ioctl_standard_iw_point+0x151/0x3f0
 [&lt;ffffffff81693d52&gt;] ioctl_standard_call+0xb2/0xe0
 [&lt;ffffffff81597df7&gt;] ? rtnl_lock+0x17/0x20
 [&lt;ffffffff816945a0&gt;] ? iw_handler_get_private+0x70/0x70
 [&lt;ffffffff81693ca0&gt;] ? call_commit_handler+0x40/0x40
 [&lt;ffffffff81693256&gt;] wireless_process_ioctl+0x176/0x1c0
 [&lt;ffffffff81693e79&gt;] wext_handle_ioctl+0x69/0xc0
 [&lt;ffffffff8159fe79&gt;] dev_ioctl+0x309/0x5e0
 [&lt;ffffffff810be9c7&gt;] ? call_rcu+0x17/0x20
 [&lt;ffffffff8156a472&gt;] sock_ioctl+0x142/0x2e0
 [&lt;ffffffff811e0c70&gt;] do_vfs_ioctl+0x300/0x520
 [&lt;ffffffff81101514&gt;] ? __audit_syscall_entry+0xb4/0x110
 [&lt;ffffffff81101514&gt;] ? __audit_syscall_entry+0xb4/0x110
 [&lt;ffffffff810102bc&gt;] ? do_audit_syscall_entry+0x6c/0x70
 [&lt;ffffffff811e0f11&gt;] SyS_ioctl+0x81/0xa0
 [&lt;ffffffff816ba1d2&gt;] system_call_fastpath+0x12/0x17

Additional routines that generate this BUG are rtw_joinbss_cmd(),
rtw_dynamic_chk_wk_cmd(), rtw_lps_ctrl_wk_cmd(), rtw_rpt_timer_cfg_cmd(),
rtw_ps_cmd(), report_survey_event(), report_join_res(), survey_timer_hdl(),
and rtw_check_bcn_info().

Signed-off-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Cc: navin patidar &lt;navin.patidar@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: rtl8188eu: unneeded NULL check</title>
<updated>2014-11-07T17:47:29+00:00</updated>
<author>
<name>Sudip Mukherjee</name>
<email>sudipm.mukherjee@gmail.com</email>
</author>
<published>2014-11-07T11:20:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=d48037f9169f653d1124eb75157293d875e7e57f'/>
<id>d48037f9169f653d1124eb75157293d875e7e57f</id>
<content type='text'>
before these NULL checks we are already checking it for NULL, and if
it is NULL then we are jumping to the error label and handling
the error before returning.
So we can reach this part of the code only if the variable is known
to be not NULL, and if we already know that it is not NULL, then no
need to check it again.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
before these NULL checks we are already checking it for NULL, and if
it is NULL then we are jumping to the error label and handling
the error before returning.
So we can reach this part of the code only if the variable is known
to be not NULL, and if we already know that it is not NULL, then no
need to check it again.

Signed-off-by: Sudip Mukherjee &lt;sudip@vectorindia.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
