<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/staging/vt6655, branch v5.10.257</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v5.10.257</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v5.10.257'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2022-10-26T11:25:52+00:00</updated>
<entry>
<title>staging: vt6655: fix potential memory leak</title>
<updated>2022-10-26T11:25:52+00:00</updated>
<author>
<name>Nam Cao</name>
<email>namcaov@gmail.com</email>
</author>
<published>2022-09-09T14:13:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1b3cebeca99e8e0aa4fa57faac8dbf41e967317a'/>
<id>urn:sha1:1b3cebeca99e8e0aa4fa57faac8dbf41e967317a</id>
<content type='text'>
[ Upstream commit c8ff91535880d41b49699b3829fb6151942de29e ]

In function device_init_td0_ring, memory is allocated for member
td_info of priv-&gt;apTD0Rings[i], with i increasing from 0. In case of
allocation failure, the memory is freed in reversed order, with i
decreasing to 0. However, the case i=0 is left out and thus memory is
leaked.

Modify the memory freeing loop to include the case i=0.

Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Signed-off-by: Nam Cao &lt;namcaov@gmail.com&gt;
Link: https://lore.kernel.org/r/20220909141338.19343-1-namcaov@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>staging: vt6655: fix some erroneous memory clean-up loops</title>
<updated>2022-10-26T11:25:37+00:00</updated>
<author>
<name>Nam Cao</name>
<email>namcaov@gmail.com</email>
</author>
<published>2022-09-12T17:04:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=95ac62e8545be2b0a8cae0beef7c682e2e470e48'/>
<id>urn:sha1:95ac62e8545be2b0a8cae0beef7c682e2e470e48</id>
<content type='text'>
[ Upstream commit 2a2db520e3ca5aafba7c211abfd397666c9b5f9d ]

In some initialization functions of this driver, memory is allocated with
'i' acting as an index variable and increasing from 0. The commit in
"Fixes" introduces some clean-up codes in case of allocation failure,
which free memory in reverse order with 'i' decreasing to 0. However,
there are some problems:
  - The case i=0 is left out. Thus memory is leaked.
  - In case memory allocation fails right from the start, the memory
    freeing loops will start with i=-1 and invalid memory locations will
    be accessed.

One of these loops has been fixed in commit c8ff91535880 ("staging:
vt6655: fix potential memory leak"). Fix the remaining erroneous loops.

Link: https://lore.kernel.org/linux-staging/Yx9H1zSpxmNqx6Xc@kadam/
Fixes: 5341ee0adb17 ("staging: vt6655: check for memory allocation failures")
Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Tested-by: Philipp Hortmann &lt;philipp.g.hortmann@gmail.com&gt;
Signed-off-by: Nam Cao &lt;namcaov@gmail.com&gt;
Link: https://lore.kernel.org/r/20220912170429.29852-1-namcaov@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>staging: vt6655: Add spaces around arithmetic operators</title>
<updated>2020-09-13T07:20:38+00:00</updated>
<author>
<name>Sebastian Fuentes</name>
<email>sefu1789@gmail.com</email>
</author>
<published>2020-09-12T05:23:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9a9c1827e720fe25ee9cfbca6e10b7f78fcd39f7'/>
<id>urn:sha1:9a9c1827e720fe25ee9cfbca6e10b7f78fcd39f7</id>
<content type='text'>
This addresses the checkpatch.pl warning "spaces preferred around that
'+/-/*'"

Signed-off-by: Sebastian Fuentes &lt;sefu1789@gmail.com&gt;
Link: https://lore.kernel.org/r/20200912052357.GA4707@ubuntu
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: vt6655: Use fallthrough pseudo-keyword</title>
<updated>2020-07-10T11:52:46+00:00</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>gustavoars@kernel.org</email>
</author>
<published>2020-07-07T19:43:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=deb34767b2b23d330aa226d5ef4209f52acfb127'/>
<id>urn:sha1:deb34767b2b23d330aa226d5ef4209f52acfb127</id>
<content type='text'>
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva &lt;gustavoars@kernel.org&gt;
Link: https://lore.kernel.org/r/20200707194350.GA3255@embeddedor
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: vt6655/device_main.c: use generic power management</title>
<updated>2020-07-01T13:39:21+00:00</updated>
<author>
<name>Vaibhav Gupta</name>
<email>vaibhavgupta40@gmail.com</email>
</author>
<published>2020-06-29T08:28:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7a46931ba9a25ce73761f4015f004229df44ef13'/>
<id>urn:sha1:7a46931ba9a25ce73761f4015f004229df44ef13</id>
<content type='text'>
Drivers should not use legacy power management as they have to manage power
states and related operations, for the device, themselves. This driver was
handling them with the help of PCI helper functions like
pci_save/restore_state(), pci_enable/disable_device(), etc.

With generic PM, all essentials will be handled by the PCI core. Driver
needs to do only device-specific operations.

The driver was also using pci_enable_wake(...,..., 0) to disable wake. Use
device_wakeup_disable() instead.

Compile-tested only.

Signed-off-by: Vaibhav Gupta &lt;vaibhavgupta40@gmail.com&gt;
Link: https://lore.kernel.org/r/20200629082819.216405-5-vaibhavgupta40@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drivers: staging: vt6655: replace CamelCase names on function s_uGetRTSCTSRsvTime</title>
<updated>2020-06-25T13:40:27+00:00</updated>
<author>
<name>Rodolfo C. Villordo</name>
<email>rodolfovillordo@gmail.com</email>
</author>
<published>2020-06-24T10:02:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=79e88fd45bd26ea2770b79e70cfb824a4e2e7049'/>
<id>urn:sha1:79e88fd45bd26ea2770b79e70cfb824a4e2e7049</id>
<content type='text'>
Replace function and variables name from CamelCase style to snake_case style.
Remove Hungarian notation.

Signed-off-by: Rodolfo C. Villordo &lt;rodolfovillordo@gmail.com&gt;
Link: https://lore.kernel.org/r/20200624100256.GA17118@ip-172-31-24-31.ec2.internal
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: vt6656: vt6655: removing unused macros definition Makefiles</title>
<updated>2020-05-15T13:49:13+00:00</updated>
<author>
<name>Matej Dujava</name>
<email>mdujava@kocurkovo.cz</email>
</author>
<published>2020-05-13T19:15:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3abbab51321f51bdb1c64f2296644110c7a61f62'/>
<id>urn:sha1:3abbab51321f51bdb1c64f2296644110c7a61f62</id>
<content type='text'>
This patch is removing definition of CFLAGS in Makefile of vt6656 and
vt6655, as those are defining macros that are not used. This will remove
undef of one macro from vt6655/device_main.c, as it is only undef and it is
not used anywhere else, so it is safe to remove it.

Macros are removed from vt665x/Makefile and vt6655/device_main.c.

Signed-off-by: Matej Dujava &lt;mdujava@kocurkovo.cz&gt;
Link: https://lore.kernel.org/r/1589397351-24655-2-git-send-email-mdujava@kocurkovo.cz
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: vt6655: fix LONG_LINE warning</title>
<updated>2020-05-05T10:33:00+00:00</updated>
<author>
<name>Matej Dujava</name>
<email>mdujava@kocurkovo.cz</email>
</author>
<published>2020-05-03T15:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0729bb9b2a97a279c4b7c7be8565d494aab3d6e9'/>
<id>urn:sha1:0729bb9b2a97a279c4b7c7be8565d494aab3d6e9</id>
<content type='text'>
This patch will fix LONG_LINE error from checkpatch, by using ternary
operator.

Signed-off-by: Matej Dujava &lt;mdujava@kocurkovo.cz&gt;
Link: https://lore.kernel.org/r/1588520570-14388-3-git-send-email-mdujava@kocurkovo.cz
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: vt6655: return early if not bNeedAck</title>
<updated>2020-05-05T10:32:59+00:00</updated>
<author>
<name>Matej Dujava</name>
<email>mdujava@kocurkovo.cz</email>
</author>
<published>2020-05-03T15:42:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3fc29573cf3e38624962f1a74ee18cbec2a2556e'/>
<id>urn:sha1:3fc29573cf3e38624962f1a74ee18cbec2a2556e</id>
<content type='text'>
This patch will check for bNeedAck before making bb_get_frame_time call, so
in case we dont need uAckTime, we can return early.

Signed-off-by: Matej Dujava &lt;mdujava@kocurkovo.cz&gt;
Link: https://lore.kernel.org/r/1588520570-14388-2-git-send-email-mdujava@kocurkovo.cz
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>staging: vt6655: extract index manupulation out of function call</title>
<updated>2020-05-05T10:31:19+00:00</updated>
<author>
<name>Matej Dujava</name>
<email>mdujava@kocurkovo.cz</email>
</author>
<published>2020-05-03T13:29:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e3b8577aa167ca5612b7723b6949dc888921ac8d'/>
<id>urn:sha1:e3b8577aa167ca5612b7723b6949dc888921ac8d</id>
<content type='text'>
This patch will remove if/else by selecting proper argument before
function call, also index is updated before function call.

Signed-off-by: Matej Dujava &lt;mdujava@kocurkovo.cz&gt;
Link: https://lore.kernel.org/r/1588512552-12297-6-git-send-email-mdujava@kocurkovo.cz
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
