<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/staging/pi433, branch v4.19.16</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v4.19.16</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v4.19.16'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2018-07-12T19:49:24+00:00</updated>
<entry>
<title>staging: pi433: fix error return code in pi433_probe()</title>
<updated>2018-07-12T19:49:24+00:00</updated>
<author>
<name>Wei Yongjun</name>
<email>weiyongjun1@huawei.com</email>
</author>
<published>2018-07-11T13:15:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1ba60ad56c409f23ac244adb7734208e53f8a985'/>
<id>urn:sha1:1ba60ad56c409f23ac244adb7734208e53f8a985</id>
<content type='text'>
Fix to return a negative error code from the kthread_run() error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: Make only one statement per line</title>
<updated>2018-07-11T11:12:34+00:00</updated>
<author>
<name>Sophie Matter</name>
<email>sophie.matter@web.de</email>
</author>
<published>2018-07-11T09:45:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=75971225d8700ce968fe876a971d714913b845c7'/>
<id>urn:sha1:75971225d8700ce968fe876a971d714913b845c7</id>
<content type='text'>
Lines containing multiple statements were broken into multiple
lines, increasing readability and complying with the coding standard.
This also fixes several checkpatch.pl errors complaining about
the lines being too long.

Signed-off-by: Sophie Matter &lt;sophie.matter@web.de&gt;
Signed-off-by: Rico Schrage &lt;rico.schrage@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: Use preferred commenting style</title>
<updated>2018-07-11T11:12:34+00:00</updated>
<author>
<name>Sophie Matter</name>
<email>sophie.matter@web.de</email>
</author>
<published>2018-07-11T09:45:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=368928160477d7315a2b06cf640e34374aa36fcb'/>
<id>urn:sha1:368928160477d7315a2b06cf640e34374aa36fcb</id>
<content type='text'>
For multi-line comments, the preferred commenting style from the
coding style Documentation was applied to the comments, meaning
almost blank lines at the beginning and end of the comment.
One changed comment includes a line over 80 characters, causing
checkpatch.pl to complain, however breaking this line would not
make much sense, so it is kept like it is.

Signed-off-by: Sophie Matter &lt;sophie.matter@web.de&gt;
Signed-off-by: Rico Schrage &lt;rico.schrage@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: Comply with 80 character column limit</title>
<updated>2018-07-11T11:12:33+00:00</updated>
<author>
<name>Sophie Matter</name>
<email>sophie.matter@web.de</email>
</author>
<published>2018-07-11T09:45:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=63688e61d5629c3b931562315bd0373335269880'/>
<id>urn:sha1:63688e61d5629c3b931562315bd0373335269880</id>
<content type='text'>
Lines have been split where it makes sense to shorten them in order
to comply with the coding standards and fix checkpatch.pl warnings.
There are still lines left that are too long, however breaking
those would impair readability.

Changes in v2:
 - now working on staging-next branch of the staging tree
 - the changes to the defines previously made are deleted
   due to readability

Signed-off-by: Sophie Matter &lt;sophie.matter@web.de&gt;
Signed-off-by: Rico Schrage &lt;rico.schrage@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: cleanup comments in rf69.h</title>
<updated>2018-06-28T13:00:13+00:00</updated>
<author>
<name>Valentin Vidic</name>
<email>Valentin.Vidic@CARNet.hr</email>
</author>
<published>2018-06-25T12:04:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e8b8fc8a38b5ea3c10e2eb88b7805187ae7be6c5'/>
<id>urn:sha1:e8b8fc8a38b5ea3c10e2eb88b7805187ae7be6c5</id>
<content type='text'>
Fixes checkpatch warning:

  WARNING: line over 80 characters

Signed-off-by: Valentin Vidic &lt;Valentin.Vidic@CARNet.hr&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: add SPDX-License-Identifier tag</title>
<updated>2018-06-28T13:00:13+00:00</updated>
<author>
<name>Valentin Vidic</name>
<email>Valentin.Vidic@CARNet.hr</email>
</author>
<published>2018-06-25T11:52:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ecfacacf3ff0feef2387b4c7440b256aa798065d'/>
<id>urn:sha1:ecfacacf3ff0feef2387b4c7440b256aa798065d</id>
<content type='text'>
Use GPL-2.0+ based on the license text in each of the files.

Signed-off-by: Valentin Vidic &lt;Valentin.Vidic@CARNet.hr&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: replace simple switch statements</title>
<updated>2018-06-28T13:00:13+00:00</updated>
<author>
<name>Valentin Vidic</name>
<email>Valentin.Vidic@CARNet.hr</email>
</author>
<published>2018-06-24T16:31:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8679339524c11497b7b7019fa7e24fe8e9a78a91'/>
<id>urn:sha1:8679339524c11497b7b7019fa7e24fe8e9a78a91</id>
<content type='text'>
Use const array to map switch cases to resulting values.

Signed-off-by: Valentin Vidic &lt;Valentin.Vidic@CARNet.hr&gt;
Reviewed-by: Marcus Wolf &lt;Marcus.Wolf@Wolf-Entwicklungen.de&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: fix race condition in pi433_open</title>
<updated>2018-06-28T13:00:13+00:00</updated>
<author>
<name>Hugo Lefeuvre</name>
<email>hle@owl.eu.com</email>
</author>
<published>2018-06-20T13:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=983000d7fa5d7538915810b58c9e63cb6118eb1e'/>
<id>urn:sha1:983000d7fa5d7538915810b58c9e63cb6118eb1e</id>
<content type='text'>
The device structure contains a useless non-atomic users counter which
is subject to race conditions. It has probably been created to handle
the case where remove is executed while operations are still executing
on open fds but this will never happen because of reference counts.

Drop the users counter and move rx buffer {de,}allocation to probe()
and remove(). Remove associated dead code from open() and release().
Remove related TODO entry from ioctl().

Signed-off-by: Hugo Lefeuvre &lt;hle@owl.eu.com&gt;
Reviewed-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: fix race condition in pi433_ioctl</title>
<updated>2018-06-17T07:05:12+00:00</updated>
<author>
<name>Hugo Lefeuvre</name>
<email>hle@owl.eu.com</email>
</author>
<published>2018-06-14T01:04:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6de4ef65a8c6f53ce7eef06666410bc3b6e4b624'/>
<id>urn:sha1:6de4ef65a8c6f53ce7eef06666410bc3b6e4b624</id>
<content type='text'>
In the PI433_IOC_WR_TX_CFG case in pi433_ioctl, instance-&gt;tx_cfg is
modified via

copy_from_user(&amp;instance-&gt;tx_cfg, argp, sizeof(struct pi433_tx_cfg)))

without any kind of synchronization. In the case where two threads
would execute this same command concurrently the tx_cfg field might
enter in an inconsistent state.

Additionally: if ioctl(PI433_IOC_WR_TX_CFG) and write() execute
concurrently the tx config might be modified while it is being
copied to the fifo, resulting in potential data corruption.

Fix: Get instance-&gt;tx_cfg_lock before modifying tx config in the
PI433_IOC_WR_TX_CFG case in pi433_ioctl.

Also, do not copy data directly from user space to instance-&gt;tx_cfg.
Instead use a temporary buffer allowing future checks for correctness
of copied data and simpler code.

Signed-off-by: Hugo Lefeuvre &lt;hle@owl.eu.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: pi433: break long lines in pi433_if.c</title>
<updated>2018-04-25T13:58:04+00:00</updated>
<author>
<name>Simon Sandström</name>
<email>simon@nikanor.nu</email>
</author>
<published>2018-04-23T17:44:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5de3b09027c4b5a3f21b992aa0f61b26ab391135'/>
<id>urn:sha1:5de3b09027c4b5a3f21b992aa0f61b26ab391135</id>
<content type='text'>
Breaks long lines in pi433_if.c, fixing checkpatch.pl warnings:
"WARNING: line over 80 characters"

Signed-off-by: Simon Sandström &lt;simon@nikanor.nu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
