[PATCH] staging: rtl8192u: Add NULL check post kzalloc

2019-08-03 Thread Hariprasad Kelam
Collect returns status of kzalloc. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8192u/r8192U_core.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index fe1f279..3240442

[Patch v2] staging: rtl8192e: Make use kmemdup

2019-08-03 Thread Hariprasad Kelam
As kmemdup API does kmalloc + memcpy . We can make use of it instead of calling kmalloc and memcpy independetly. Signed-off-by: Hariprasad Kelam --- v2 - remove the netdev_info() uses for allocation failures drivers/staging/rtl8192e/rtllib_softmac.c | 24 +++- 1 file

Re: [PATCH] staging: rtl8192e: Make use kmemdup

2019-08-03 Thread Hariprasad Kelam
On Sat, Aug 03, 2019 at 10:52:04AM -0700, Joe Perches wrote: > On Sat, 2019-08-03 at 23:10 +0530, Hariprasad Kelam wrote: > > As kmemdup API does kmalloc + memcpy . We can make use of it instead of > > calling kmalloc and memcpy independetly. > [] > > diff --git

[PATCH] Fix lines greater than 80 characters

2019-08-03 Thread z3phyr
Fix checkpatch error for "line over 80 characters" Signed-off-by: z3phyr --- drivers/staging/pi433/pi433_if.h | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index

Re: [PATCH 06/34] drm/i915: convert put_page() to put_user_page*()

2019-08-03 Thread John Hubbard
On 8/2/19 11:48 AM, John Hubbard wrote: > On 8/2/19 2:19 AM, Joonas Lahtinen wrote: >> Quoting john.hubb...@gmail.com (2019-08-02 05:19:37) >>> From: John Hubbard ... > In order to deal with the merge problem, I'll drop this patch from my series, > and I'd recommend that the drm-intel-next take

[PATCH v6 2/3][v4.9.y] infiniband: fix race condition between infiniband mlx4, mlx5 driver and core dumping

2019-08-03 Thread Ajay Kaher
This patch is the extension of following upstream commit to fix the race condition between get_task_mm() and core dumping for IB->mlx4 and IB->mlx5 drivers: commit 04f5866e41fb ("coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping")' Thanks to Jason for pointing

[PATCH v6 3/3] [v4.9.y] coredump: fix race condition between collapse_huge_page() and core dumping

2019-08-03 Thread Ajay Kaher
From: Andrea Arcangeli coredump: fix race condition between collapse_huge_page() and core dumping commit 59ea6d06cfa9247b586a695c21f94afa7183af74 upstream. When fixing the race conditions between the coredump and the mmap_sem holders outside the context of the process, we focused on

[PATCH v6 0/3] [v4.9.y] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

2019-08-03 Thread Ajay Kaher
coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping [PATCH v5 1/3]: Backporting of commit 04f5866e41fb70690e28397487d8bd8eea7d712a upstream. [PATCH v5 2/3]: Extension of commit 04f5866e41fb to fix the race condition between get_task_mm() and core dumping for

[PATCH v6 1/3] [v4.9.y] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

2019-08-03 Thread Ajay Kaher
From: Andrea Arcangeli commit 04f5866e41fb70690e28397487d8bd8eea7d712a upstream. The core dumping code has always run without holding the mmap_sem for writing, despite that is the only way to ensure that the entire vma layout will not change from under it. Only using some signal serialization

[PATCH] staging: rtl8723bs: core: add spaces around '-', '+', '&','|' and '?'

2019-08-03 Thread Saurav Girepunje
Add spaces around '-', '+', '&','|' and '?' to improve readability and follow kernel coding style in rtw_ap.c Signed-off-by: Saurav Girepunje --- drivers/staging/rtl8723bs/core/rtw_ap.c | 88 - 1 file changed, 44 insertions(+), 44 deletions(-) diff --git

Re: [PATCH] staging: rtl8192e: Make use kmemdup

2019-08-03 Thread Joe Perches
On Sat, 2019-08-03 at 23:10 +0530, Hariprasad Kelam wrote: > As kmemdup API does kmalloc + memcpy . We can make use of it instead of > calling kmalloc and memcpy independetly. [] > diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c > b/drivers/staging/rtl8192e/rtllib_softmac.c [] > @@

[PATCH] staging: rtl8723bs: core: Remove Unnecessary parentheses

2019-08-03 Thread Saurav Girepunje
Remove Unnecessary parentheses around padapter->mlmepriv, pmlmeext->mlmext_info and pmlmeinfo->network in rtw_ap.c Signed-off-by: Saurav Girepunje --- drivers/staging/rtl8723bs/core/rtw_ap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v2] net: mdio-octeon: Fix Kconfig warnings and build errors

2019-08-03 Thread Randy Dunlap
On 8/2/19 11:01 PM, Nathan Chancellor wrote: > After commit 171a9bae68c7 ("staging/octeon: Allow test build on > !MIPS"), the following combination of configs cause a few Kconfig > warnings and build errors (distilled from arm allyesconfig and Randy's > randconfig builds): > >

[PATCH] staging: rtl8723bs: core: correct spelling mistake in rtw_ap.c

2019-08-03 Thread Saurav Girepunje
Correct spelling mistake in rtw_ap.c Signed-off-by: Saurav Girepunje --- drivers/staging/rtl8723bs/core/rtw_ap.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c index

[PATCH] staging: rtl8192e: Make use kmemdup

2019-08-03 Thread Hariprasad Kelam
As kmemdup API does kmalloc + memcpy . We can make use of it instead of calling kmalloc and memcpy independetly. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8192e/rtllib_softmac.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git

[PATCH] staging: rtl8188eu: core: add spaces around '-', '+', '>>','<<' and '*' in rtw_efuse.c

2019-08-03 Thread Saurav Girepunje
Add spaces around '-', '+', '>>','<<' and '*' to improve readability and follow kernel coding style. Signed-off-by: Saurav Girepunje --- drivers/staging/rtl8188eu/core/rtw_efuse.c | 128 ++--- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git

Re: [PATCH] isdn: hysdn: Fix error spaces around '*'

2019-08-03 Thread Greg KH
On Sat, Aug 03, 2019 at 04:15:05AM -0700, Joe Perches wrote: > On Sat, 2019-08-03 at 08:32 +0200, Greg KH wrote: > > On Fri, Aug 02, 2019 at 07:56:02PM +, Jose Carlos Cazarin Filho wrote: > > > Fix checkpath error: > > > CHECK: spaces preferred around that '*' (ctx:WxV) > > > +extern

Re: [PATCH] isdn: hysdn: Fix error spaces around '*'

2019-08-03 Thread Joe Perches
On Sat, 2019-08-03 at 08:32 +0200, Greg KH wrote: > On Fri, Aug 02, 2019 at 07:56:02PM +, Jose Carlos Cazarin Filho wrote: > > Fix checkpath error: > > CHECK: spaces preferred around that '*' (ctx:WxV) > > +extern hysdn_card *card_root;/* pointer to first card */ [] > > diff --git

Re: [PATCH 15/34] staging/vc04_services: convert put_page() to put_user_page*()

2019-08-03 Thread Greg Kroah-Hartman
On Thu, Aug 01, 2019 at 07:19:46PM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > For pages that were retained via get_user_pages*(), release those pages > via the new put_user_page*() routines, instead of via put_page() or > release_pages(). > > This is part a tree-wide

Re: [PATCH 10/34] genwqe: convert put_page() to put_user_page*()

2019-08-03 Thread Greg Kroah-Hartman
On Thu, Aug 01, 2019 at 07:19:41PM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > For pages that were retained via get_user_pages*(), release those pages > via the new put_user_page*() routines, instead of via put_page() or > release_pages(). > > This is part a tree-wide

[PATCH] staging: rtl8188eu: core: rtw_recv.c: Remove Unnecessary parentheses

2019-08-03 Thread Saurav Girepunje
Remove Unnecessary parentheses around precvframe->list, pmlmeext->mlmext_info and precvpriv->free_recv_queue Signed-off-by: Saurav Girepunje --- drivers/staging/rtl8188eu/core/rtw_recv.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] drivers:staging:isdn:hysdn brace same line if

2019-08-03 Thread Greg KH
On Fri, Aug 02, 2019 at 07:51:05PM +, Fernando Eckhardt Valle wrote: > Fix checkpatch error "ERROR: that open brace { should be on the previous > line" in drivers/staging/isdn/hysdn/hycapi.c:51. > > Signed-off-by: Fernando Eckhardt Valle > --- > drivers/staging/isdn/hysdn/hycapi.c | 3 +-- >

Re: [PATCH] isdn: hysdn: Fix error spaces around '*'

2019-08-03 Thread Greg KH
On Fri, Aug 02, 2019 at 07:56:02PM +, Jose Carlos Cazarin Filho wrote: > Fix checkpath error: > CHECK: spaces preferred around that '*' (ctx:WxV) > +extern hysdn_card *card_root;/* pointer to first card */ > > Signed-off-by: Jose Carlos Cazarin Filho > --- > Hello all! > This is my

Re: [PATCH] rtl8188eu: hal: phy.c

2019-08-03 Thread Greg Kroah-Hartman
On Fri, Aug 02, 2019 at 09:00:18PM +, Jose Carlos Cazarin Filho wrote: > Fix a lot of checkpath errors of the type: > -CHECK: spaces preferred around that > -CHECK: Alignment should match open parenthesis > > Signed-off-by: Jose Carlos Cazarin Filho > --- > My second commit to

Re: [PATCH] net: mdio-octeon: Fix build error and Kconfig warning

2019-08-03 Thread Nathan Chancellor
On Fri, Aug 02, 2019 at 06:39:52PM -0700, Matthew Wilcox wrote: > On Fri, Aug 02, 2019 at 06:30:31PM -0700, Nathan Chancellor wrote: > > On Fri, Aug 02, 2019 at 06:11:32PM -0700, David Miller wrote: > > > The proper way to fix this is to include either > > > > > > linux/io-64-nonatomic-hi-lo.h

[PATCH v2] net: mdio-octeon: Fix Kconfig warnings and build errors

2019-08-03 Thread Nathan Chancellor
After commit 171a9bae68c7 ("staging/octeon: Allow test build on !MIPS"), the following combination of configs cause a few Kconfig warnings and build errors (distilled from arm allyesconfig and Randy's randconfig builds): CONFIG_NETDEVICES=y CONFIG_STAGING=y CONFIG_COMPILE_TEST=y and