<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/staging/rtlwifi/halmac, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/staging/rtlwifi/halmac?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/staging/rtlwifi/halmac?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2019-05-01T08:15:42Z</updated>
<entry>
<title>staging: rtlwifi: delete the staging driver</title>
<updated>2019-05-01T08:15:42Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2019-05-01T08:15:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=ef4a0c3173736a957d1495e9a706d7e7e3334613'/>
<id>urn:sha1:ef4a0c3173736a957d1495e9a706d7e7e3334613</id>
<content type='text'>
A "real" driver for this hardware is now in the wireless-drivers-next
tree, to be merged in the next major kernel release, so this staging
driver can now be deleted as it is not needed anymore.

Note, 2 .h files remain for this driver, as they are referenced in a
separate staging driver.  That mess will be cleaned up in a follow-on
patch.

Cc: Ping-Ke Shih &lt;pkshih@realtek.com&gt;
Cc: Tzu-En Huang &lt;tehuang@realtek.com&gt;
Cc: Yan-Hsuan Chuang &lt;yhchuang@realtek.com&gt;
Cc: Stanislaw Gruszka &lt;sgruszka@redhat.com&gt;
Cc: Brian Norris &lt;briannorris@chromium.org&gt;
Cc: Kalle Valo &lt;kvalo@codeaurora.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtlwifi: halmac: halmac_api.c: Compress two lines into one line</title>
<updated>2019-04-01T17:22:22Z</updated>
<author>
<name>Payal Kshirsagar</name>
<email>payal.s.kshirsagar.98@gmail.com</email>
</author>
<published>2019-03-31T14:41:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=0514b848a82bfc2aceeb4b436912ff146c63f580'/>
<id>urn:sha1:0514b848a82bfc2aceeb4b436912ff146c63f580</id>
<content type='text'>
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.

Signed-off-by: Payal Kshirsagar &lt;payal.s.kshirsagar.98@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtlwifi: halmac: Compress two lines into one line</title>
<updated>2019-04-01T17:22:22Z</updated>
<author>
<name>Payal Kshirsagar</name>
<email>payal.s.kshirsagar.98@gmail.com</email>
</author>
<published>2019-03-31T14:41:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2e6c3a037f6b9134786c2a4468b7733501fb58bf'/>
<id>urn:sha1:2e6c3a037f6b9134786c2a4468b7733501fb58bf</id>
<content type='text'>
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.

Signed-off-by: Payal Kshirsagar &lt;payal.s.kshirsagar.98@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtlwifi: halmac: halmac_88xx: Compress two lines into one line</title>
<updated>2019-04-01T17:22:22Z</updated>
<author>
<name>Payal Kshirsagar</name>
<email>payal.s.kshirsagar.98@gmail.com</email>
</author>
<published>2019-03-31T14:41:32Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=d3830cc03ee0021aa78e19c1b8c5589ba1308a97'/>
<id>urn:sha1:d3830cc03ee0021aa78e19c1b8c5589ba1308a97</id>
<content type='text'>
Challenge suggested by coccinelle.
Compresses two lines into one line and remove unnecessary variable.

Signed-off-by: Payal Kshirsagar &lt;payal.s.kshirsagar.98@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx</title>
<updated>2019-02-21T09:58:11Z</updated>
<author>
<name>Nathan Chancellor</name>
<email>natechancellor@gmail.com</email>
</author>
<published>2019-02-21T05:25:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e8edc32d70a4e09160835792eb5d1af71a0eec14'/>
<id>urn:sha1:e8edc32d70a4e09160835792eb5d1af71a0eec14</id>
<content type='text'>
Clang warns:

drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_func_88xx.c:2472:11:
warning: implicit conversion from enumeration type 'enum
halmac_cmd_process_status' to different enumeration type 'enum
halmac_ret_status' [-Wenum-conversion]
                        return HALMAC_CMD_PROCESS_ERROR;
                        ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Fix this by using the proper enum for allocation failures,
HALMAC_RET_MALLOC_FAIL, which is used in the rest of this file.

Fixes: e4b08e16b7d9 ("staging: r8822be: check kzalloc return or bail")
Link: https://github.com/ClangBuiltLinux/linux/issues/375
Signed-off-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
Reviewed-by: Nicholas Mc Guire &lt;hofrat@osadl.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: r8822be: check kzalloc return or bail</title>
<updated>2019-02-19T10:12:08Z</updated>
<author>
<name>Nicholas Mc Guire</name>
<email>hofrat@osadl.org</email>
</author>
<published>2019-02-15T09:24:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=e4b08e16b7d9d030b6475ef48f94d734a39f3c81'/>
<id>urn:sha1:e4b08e16b7d9d030b6475ef48f94d734a39f3c81</id>
<content type='text'>
The kzalloc() in halmac_parse_psd_data_88xx() can fail and return NULL
so check the psd_set-&gt;data after allocation and if allocation failed
return HALMAC_CMD_PROCESS_ERROR.

Signed-off-by: Nicholas Mc Guire &lt;hofrat@osadl.org&gt;
Fixes: 938a0447f094 ("staging: r8822be: Add code for halmac sub-drive")
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtlwifi: Return -ENOMEM instead of -1</title>
<updated>2018-10-02T22:18:36Z</updated>
<author>
<name>Aymen Qader</name>
<email>qader.aymen@gmail.com</email>
</author>
<published>2018-09-29T17:24:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=3e15dddeadcbe45adc654d11f38191e76feacd05'/>
<id>urn:sha1:3e15dddeadcbe45adc654d11f38191e76feacd05</id>
<content type='text'>
Use the ENOMEM constant instead of -1 for kzalloc failure checks in
rtl_halmac.c

Signed-off-by: Aymen Qader &lt;qader.aymen@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtlwifi: Remove empty halmac_pcie_reg.h</title>
<updated>2018-07-13T09:37:34Z</updated>
<author>
<name>Bjorn Helgaas</name>
<email>bhelgaas@google.com</email>
</author>
<published>2018-07-12T15:33:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=a796528951e25a9ee635bd22d0a6e2c4fb2bd45c'/>
<id>urn:sha1:a796528951e25a9ee635bd22d0a6e2c4fb2bd45c</id>
<content type='text'>
halmac_pcie_reg.h is empty, so remove it and the only include of it.

Signed-off-by: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtlwifi: Fix a possible sleep-in-atomic-context bug in _is_fw_read_cmd_down()</title>
<updated>2018-06-28T13:10:51Z</updated>
<author>
<name>Jia-Ju Bai</name>
<email>baijiaju1990@gmail.com</email>
</author>
<published>2018-06-20T02:58:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=ac5e4875e6d81f7f24a70247770c32585d773839'/>
<id>urn:sha1:ac5e4875e6d81f7f24a70247770c32585d773839</id>
<content type='text'>
The driver may sleep with holding a spinlock.
The function call path (from bottom to top) in Linux-4.16.7 is:

[FUNC] schedule
drivers/staging/rtlwifi/halmac/rtl_halmac.c, 884:
		schedule in _is_fw_read_cmd_down
drivers/staging/rtlwifi/halmac/rtl_halmac.c, 912:
		_is_fw_read_cmd_down in rtl_halmac_send_h2c
drivers/staging/rtlwifi/halmac/rtl_halmac.c, 907:
		_raw_spin_lock_irqsave in rtl_halmac_send_h2c

To fix this bug, schedule() is replaced with mdelay(1).

This bug is found by my static analysis tool (DSAC-2) and checked by
my code review.

Signed-off-by: Jia-Ju Bai &lt;baijiaju1990@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: rtlwifi: Replace license boilerplate with SPDX identifiers</title>
<updated>2018-05-07T02:01:29Z</updated>
<author>
<name>Nathan Chancellor</name>
<email>natechancellor@gmail.com</email>
</author>
<published>2018-05-06T05:55:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=a67cfe3905a374b309353a235fd6bfba6ad367e4'/>
<id>urn:sha1:a67cfe3905a374b309353a235fd6bfba6ad367e4</id>
<content type='text'>
This satisfies a checkpatch.pl warning and is the preferred method for
notating the license due to its lack of ambiguity.

Signed-off-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
