[PATCH AUTOSEL 4.9 12/29] staging: rtl8188eu: fix null dereference when kzalloc fails

2019-10-18 Thread Sasha Levin
From: Connor Kuehl [ Upstream commit 955c1532a34305f2f780b47f0c40cc7c65500810 ] If kzalloc() returns NULL, the error path doesn't stop the flow of control from entering rtw_hal_read_chip_version() which dereferences the null pointer. Fix this by adding a 'goto' to the error path to more graceful

[PATCH AUTOSEL 4.14 29/56] HID: hyperv: Use in-place iterator API in the channel callback

2019-10-18 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit 6a297c90efa68b2864483193b8bfb0d19478600c ] Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui Acked-by: Jiri Kosina Signed-off-by: Sasha

[PATCH AUTOSEL 4.14 25/56] staging: rtl8188eu: fix null dereference when kzalloc fails

2019-10-18 Thread Sasha Levin
From: Connor Kuehl [ Upstream commit 955c1532a34305f2f780b47f0c40cc7c65500810 ] If kzalloc() returns NULL, the error path doesn't stop the flow of control from entering rtw_hal_read_chip_version() which dereferences the null pointer. Fix this by adding a 'goto' to the error path to more graceful

[PATCH AUTOSEL 4.19 062/100] staging: rtl8188eu: fix null dereference when kzalloc fails

2019-10-18 Thread Sasha Levin
From: Connor Kuehl [ Upstream commit 955c1532a34305f2f780b47f0c40cc7c65500810 ] If kzalloc() returns NULL, the error path doesn't stop the flow of control from entering rtw_hal_read_chip_version() which dereferences the null pointer. Fix this by adding a 'goto' to the error path to more graceful

[PATCH AUTOSEL 4.19 066/100] HID: hyperv: Use in-place iterator API in the channel callback

2019-10-18 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit 6a297c90efa68b2864483193b8bfb0d19478600c ] Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui Acked-by: Jiri Kosina Signed-off-by: Sasha

[PATCH AUTOSEL 4.19 025/100] staging: mt7621-pinctrl: use pinconf-generic for 'dt_node_to_map' and 'dt_free_map'

2019-10-18 Thread Sasha Levin
From: Sergio Paracuellos [ Upstream commit 0ca1f90861b6d64386261096b42bfc81ce11948a ] Instead of reimplement afunction to do 'dt_node_to_map' task like 'rt2880_pinctrl_dt_node_to_map' make use of 'pinconf_generic_dt_node_to_map_all' generic function for this task. Also use its equivalent functio

[PATCH AUTOSEL 5.3 15/89] staging: rtl8188eu: fix null dereference when kzalloc fails

2019-10-18 Thread Sasha Levin
From: Connor Kuehl [ Upstream commit 955c1532a34305f2f780b47f0c40cc7c65500810 ] If kzalloc() returns NULL, the error path doesn't stop the flow of control from entering rtw_hal_read_chip_version() which dereferences the null pointer. Fix this by adding a 'goto' to the error path to more graceful

[PATCH AUTOSEL 5.3 21/89] HID: hyperv: Use in-place iterator API in the channel callback

2019-10-18 Thread Sasha Levin
From: Dexuan Cui [ Upstream commit 6a297c90efa68b2864483193b8bfb0d19478600c ] Simplify the ring buffer handling with the in-place API. Also avoid the dynamic allocation and the memory leak in the channel callback function. Signed-off-by: Dexuan Cui Acked-by: Jiri Kosina Signed-off-by: Sasha

[PATCH 2/3] binder: Prevent repeated use of ->mmap() via NULL mapping

2019-10-18 Thread Jann Horn
binder_alloc_mmap_handler() attempts to detect the use of ->mmap() on a binder_proc whose binder_alloc has already been initialized by checking whether alloc->buffer is non-zero. Before commit 880211667b20 ("binder: remove kernel vm_area for buffer space"), alloc->buffer was a kernel mapping addre

Re: [PATCH] staging: iio: ad9834: add a check for devm_clk_get

2019-10-18 Thread Jonathan Cameron
On Thu, 17 Oct 2019 12:56:33 + "Ardelean, Alexandru" wrote: > On Wed, 2019-10-16 at 22:25 +0800, Chuhong Yuan wrote: > > ad9834_probe misses a check for devm_clk_get and may cause problems. > > Add a check like what ad9832 does to fix it. > > > > This could also use a Fixes tag, but not a

[PATCH] binder: Remove incorrect comment about vm_insert_page() behavior

2019-10-18 Thread Jann Horn
vm_insert_page() does increment the page refcount, and just to be sure, I've confirmed it by printing page_count(page[0].page_ptr) before and after vm_insert_page(). It's 1 before, 2 afterwards, as expected. Signed-off-by: Jann Horn --- drivers/android/binder_alloc.c | 1 - 1 file changed, 1 del

Re: [PATCH] binder: Remove incorrect comment about vm_insert_page() behavior

2019-10-18 Thread Christian Brauner
On Fri, Oct 18, 2019 at 05:39:46PM +0200, Jann Horn wrote: > vm_insert_page() does increment the page refcount, and just to be sure, > I've confirmed it by printing page_count(page[0].page_ptr) before and after > vm_insert_page(). It's 1 before, 2 afterwards, as expected. > > Signed-off-by: Jann H

[PATCH] staging: wilc1000: handle mgmt frames for both interfaces during concurrent mode

2019-10-18 Thread Ajay.Kathat
From: Ajay Singh During concurrent mode(AP/STA + P2P), pass the mgmt frames received from firmware to appropriate interface. Iterate the complete interface list to pass frames on the interface which has registered to receive mgmt frame. Added extra time for 'remain_on_ch' timer to ensure that tim

Re: [PATCH] staging: rtl8723bs: reduce stack usage of rtw_cfg80211_unlink_bss

2019-10-18 Thread Dan Carpenter
On Fri, Oct 18, 2019 at 11:48:37AM +0100, Sudip Mukherjee wrote: > The build of xtensa allmodconfig gives warning of: > In function 'rtw_cfg80211_unlink_bss': > warning: the frame size of 1136 bytes is larger than 1024 bytes > > Instead of having 'select_network' structure as a variable use it as

[PATCH] staging: rtl8723bs: reduce stack usage of rtw_cfg80211_unlink_bss

2019-10-18 Thread Sudip Mukherjee
The build of xtensa allmodconfig gives warning of: In function 'rtw_cfg80211_unlink_bss': warning: the frame size of 1136 bytes is larger than 1024 bytes Instead of having 'select_network' structure as a variable use it as a pointer. Signed-off-by: Sudip Mukherjee --- drivers/staging/rtl8723bs/

Re: [PATCH] staging: rtl8192e: initializing the wep buffer

2019-10-18 Thread Dan Carpenter
On Thu, Oct 17, 2019 at 11:57:58PM -0500, Kangjie Lu wrote: > The "wep" buffer is not initialized. To avoid memory disclosures, > the fix initializes it, as peer functions like rtllib_ccmp_set_key > do. > > Signed-off-by: Kangjie Lu > --- > drivers/staging/rtl8192e/rtllib_crypt_wep.c | 1 + > 1

[PATCH 2/4] staging: KPC2000: kpc2000_spi.c: Fix style issues (misaligned brace)

2019-10-18 Thread Chandra Annamaneni
Resolved: ERROR: else should follow close brace '}' Signed-off-by: Chandra Annamaneni --- Previous versions of these patches were not split into different patches, did not have different patch numbers and did not have the keyword staging. The previous version of this patch had the wrong descrip