Re: [PATCH] staging: greybus: Fix null pointer dereference

2018-08-23 Thread Johan Hovold
On Fri, Aug 24, 2018 at 12:07:11AM -0400, Ding Xiang wrote: > If fw is null then fw->size will trigger null pointer dereference > > Signed-off-by: Ding Xiang > --- > drivers/staging/greybus/bootrom.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/greybus

[PATCH] staging: greybus: Fix null pointer dereference

2018-08-23 Thread Ding Xiang
If fw is null then fw->size will trigger null pointer dereference Signed-off-by: Ding Xiang --- drivers/staging/greybus/bootrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/bootrom.c b/drivers/staging/greybus/bootrom.c index e85ffae..3af28a0 1006

[PATCH] staging: erofs: fix potential overflow in z_erofs_vle_normalaccess_readpage{, s}

2018-08-23 Thread Gao Xiang
As Dan reported in the LKP mailing list: https://lists.01.org/pipermail/kbuild-all/2018-August/051558.html New smatch warnings: drivers/staging/erofs/unzip_vle.c:1359 z_erofs_vle_normalaccess_readpages() warn: should '()->index << 12' be a 64 bit type? Old smatch warnings: drivers/staging/erofs/

Re: KASAN: null-ptr-deref Write in binder_update_page_range

2018-08-23 Thread Minchan Kim
On Thu, Aug 23, 2018 at 07:03:34PM +0900, Dae R. Jeong wrote: > > Could you test this patch? I found that bug a month ago but didn't submit > > yet. > > I don't have a reproducer now. I manually analzed a root cause of the > crash using a fuzzer's log. The log reported a race on 'alloc->vma'. > Be

[PATCH] Drivers: hv: vmbus: Use raw_smp_processor_id() in vmbus_connect()

2018-08-23 Thread Dexuan Cui
With CONFIG_DEBUG_PREEMPT=y, I always see this warning: BUG: using smp_processor_id() in preemptible [] Fix the false warning by using raw_smp_processor_id(). Here vmbus_connect() sends a message to the host and waits for the host's response. The host will deliver the response message a

[PATCH v5 4/4] staging: mt7621-mmc: Fix debug macro IRQ_MSG and its usages

2018-08-23 Thread Nishad Kamdar
Replace all usages of IRQ_MSG with with dev_ without __func__ or __LINE__ or current->comm and current->pid. Remove the do {} while(0) loop for the single statement macro. Drop IRQ_MSG from dbg.h. Issue found by checkpatch. Signed-off-by: Nishad Kamdar --- Changes in v5: - No change --- driver

[PATCH v5 3/4] staging: mt7621-mmc: Remove macro INIT_MSG and its usages

2018-08-23 Thread Nishad Kamdar
Removed all usages of INIT_MSG and dropped it from dbg.h. Signed-off-by: Nishad Kamdar --- Changes in v5: - No change --- drivers/staging/mt7621-mmc/dbg.h | 7 --- drivers/staging/mt7621-mmc/sd.c | 16 2 files changed, 23 deletions(-) diff --git a/drivers/staging/mt7621

[PATCH v5 2/4] staging: mt7621-mmc: Fix debug macro ERR_MSG and its usages

2018-08-23 Thread Nishad Kamdar
Replace all usages of ERR_MSG with with dev_ without __func__ or __LINE__ or current->comm and current->pid. Remove the do {} while(0) loop for the single statement macro. Delete commented ERR_MSG() usage. Drop ERR_MSG from dbg.h. Issue found by checkpatch. Signed-off-by: Nishad Kamdar --- Change

[PATCH v5 1/4] staging: mt7621-mmc: Remove commented code for N_MSG

2018-08-23 Thread Nishad Kamdar
This patch removes the dead code for N_MSG(). Signed-off-by: Nishad Kamdar --- Changes in v5: - Remove commented code for N_MSG() --- drivers/staging/mt7621-mmc/dbg.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/staging/mt7621-mmc/dbg.h b/drivers/staging/mt7621-mmc/dbg.h

[PATCH v5 0/4] staging: mt7621-mmc: Fix debug macros and their usages

2018-08-23 Thread Nishad Kamdar
The patchset fixes the four debug macros N_MSG, ERR_MSG, INIT_MSG and IRQ_MSG. Each patch fixes one particular macro and its usages. For N_MSG, removes the commented code in dbg.h. For ERR_MSG and IRQ_MSG, replaces printk with dev_ without __func__ or __LINE__ or current->comm and current->pid. R

Re: [PATCH v4 1/4] staging: mt7621-mmc: Fix debug macro N_MSG

2018-08-23 Thread Nishad Kamdar
On Wed, Aug 22, 2018 at 02:38:44PM +0300, Dan Carpenter wrote: > On Wed, Aug 22, 2018 at 04:40:56PM +0530, Nishad Kamdar wrote: > > On Wed, Aug 22, 2018 at 12:09:36PM +0300, Dan Carpenter wrote: > > > On Wed, Aug 22, 2018 at 02:04:55PM +0530, Nishad Kamdar wrote: > > > > This patch fixes the debug

Re: [PATCH v4 2/4] staging: mt7621-mmc: Fix debug macro ERR_MSG and its usages

2018-08-23 Thread Nishad Kamdar
On Wed, Aug 22, 2018 at 12:13:42PM +0300, Dan Carpenter wrote: > On Wed, Aug 22, 2018 at 02:13:07PM +0530, Nishad Kamdar wrote: > > diff --git a/drivers/staging/mt7621-mmc/sd.c > > b/drivers/staging/mt7621-mmc/sd.c > > index 04d23cc7cd4a..6b2c72fc61f2 100644 > > --- a/drivers/staging/mt7621-mmc/sd

Re: [PATCH v4 1/4] staging: mt7621-mmc: Fix debug macro N_MSG

2018-08-23 Thread Nishad Kamdar
On Wed, Aug 22, 2018 at 01:26:41PM +0200, Greg Kroah-Hartman wrote: > On Wed, Aug 22, 2018 at 04:40:56PM +0530, Nishad Kamdar wrote: > > On Wed, Aug 22, 2018 at 12:09:36PM +0300, Dan Carpenter wrote: > > > On Wed, Aug 22, 2018 at 02:04:55PM +0530, Nishad Kamdar wrote: > > > > This patch fixes the d

Re: [PATCH 12/24] staging: wilc1000: move static variable 'terminated_handle' to wilc_vif struct

2018-08-23 Thread Ajay Singh
On Thu, 23 Aug 2018 11:11:18 +0300 Claudiu Beznea wrote: > On 14.08.2018 09:50, Ajay Singh wrote: > > Remove the use of static variable 'terminated_handle' and instead > > move in wilc_vif struct. > > After moving this variable to wilc_vif struct its not required to > > keep 'terminated_handle',

Re: [PATCH 23/24] staging: wilc1000: move 'wilc_connecting' static variable to 'wilc_vif' struct

2018-08-23 Thread Ajay Singh
Hi Dan, On Thu, 23 Aug 2018 15:37:40 +0300 Dan Carpenter wrote: > On Thu, Aug 23, 2018 at 04:57:48PM +0530, Ajay Singh wrote: > > Hi Greg, > > > > On Thu, 23 Aug 2018 12:55:27 +0200 > > Greg KH wrote: > > > > > On Tue, Aug 14, 2018 at 12:20:15PM +0530, Ajay Singh wrote: > > > > --- a/driv

Re: [PATCH 23/24] staging: wilc1000: move 'wilc_connecting' static variable to 'wilc_vif' struct

2018-08-23 Thread Dan Carpenter
On Thu, Aug 23, 2018 at 04:57:48PM +0530, Ajay Singh wrote: > Hi Greg, > > On Thu, 23 Aug 2018 12:55:27 +0200 > Greg KH wrote: > > > On Tue, Aug 14, 2018 at 12:20:15PM +0530, Ajay Singh wrote: > > > --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h > > > +++ b/drivers/staging/wilc1000/wilc_wfi

Re: [PATCH 19/24] staging: wilc1000: avoid line over 80 chars in wilc_wlan_txq_filter_dup_tcp_ack()

2018-08-23 Thread Ajay Singh
On Thu, 23 Aug 2018 11:11:28 +0300 Claudiu Beznea wrote: > On 14.08.2018 09:50, Ajay Singh wrote: > > Cleanup patch to avoid line over 80 chars checkpatch issue > > introduced in previous code refactor commit. > > > > Signed-off-by: Ajay Singh > > --- > > drivers/staging/wilc1000/wilc_wlan.c |

Re: [PATCH 24/24] staging: wilc1000: remove unnecessary static variable 'p2p_listen_state'

2018-08-23 Thread Ajay Singh
On Thu, 23 Aug 2018 11:13:04 +0300 Claudiu Beznea wrote: > > > On 14.08.2018 09:50, Ajay Singh wrote: > > Remove the use of unnecessary static variable 'p2p_listen_state'. > > Already 'p2p_listen_state' is present in 'wilc_priv' struct. So > > making use of that variable as its getting set in c

Re: [PATCH 23/24] staging: wilc1000: move 'wilc_connecting' static variable to 'wilc_vif' struct

2018-08-23 Thread Ajay Singh
Hi Greg, On Thu, 23 Aug 2018 12:55:27 +0200 Greg KH wrote: > On Tue, Aug 14, 2018 at 12:20:15PM +0530, Ajay Singh wrote: > > --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h > > +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h > > @@ -151,6 +151,7 @@ struct wilc_vif { > > struct timer_

Re: feedback on mainlining wilc1000 staging driver

2018-08-23 Thread Kalle Valo
Ajay Singh writes: >> >>> We need help to review and identify if there are any pending items >> >>> for wilc1000 driver, so we can address those issues and make it >> >>> ready to move to the wireless subsystem. >> >> >> >> I think the best way to get that forward is to submit a patch (or >> >>

Re: [PATCH 23/24] staging: wilc1000: move 'wilc_connecting' static variable to 'wilc_vif' struct

2018-08-23 Thread Greg KH
On Tue, Aug 14, 2018 at 12:20:15PM +0530, Ajay Singh wrote: > --- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h > +++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h > @@ -151,6 +151,7 @@ struct wilc_vif { > struct timer_list periodic_rssi; > struct rf_info periodic_stat; > stru

Re: [PATCH 20/24] staging: wilc1000: avoid line over 80 chars in tcp_process()

2018-08-23 Thread Ajay Singh
On Thu, 23 Aug 2018 11:12:08 +0300 Claudiu Beznea wrote: > On 14.08.2018 09:50, Ajay Singh wrote: > > Cleanup patch to avoid line over 80 chars issue reported by > > checkpatch.pl script. > > > > Signed-off-by: Ajay Singh > > --- > > drivers/staging/wilc1000/wilc_wlan.c | 7 ++- > > 1 file

Re: [PATCH 11/24] staging: wilc1000: move hif specific static variables to 'wilc' structure

2018-08-23 Thread Ajay Singh
On Thu, 23 Aug 2018 11:11:09 +0300 Claudiu Beznea wrote: > On 14.08.2018 09:50, Ajay Singh wrote: > > Avoid use of static variable and move it in 'wilc' structure > > related to hif and added NULL before accessing hif_workqueue in > > wilc_enqueue_work(). > > > > Below variables are moved to 'wi

Re: KASAN: null-ptr-deref Write in binder_update_page_range

2018-08-23 Thread Dae R. Jeong
> Could you test this patch? I found that bug a month ago but didn't submit > yet. I don't have a reproducer now. I manually analzed a root cause of the crash using a fuzzer's log. The log reported a race on 'alloc->vma'. Because I don't have a reproducer, I can't test the patch. I'm sorry. __

Re: [PATCH 10/24] staging: wilc1000: move wilc_multicast_mac_addr_list to 'wilc_vif' struct

2018-08-23 Thread Ajay Singh
On Thu, 23 Aug 2018 11:10:48 +0300 Claudiu Beznea wrote: > On 14.08.2018 09:50, Ajay Singh wrote: > > Instead of using 'wilc_multicast_mac_addr_list' as global variable > > move it part of wilc_vif struct. Rename > > 'wilc_multicast_mac_addr_list' variable to 'mc_mac_addr_list' as > > its now par

Re: [PATCH 06/24] staging: wilc1000: move during_ip_timer & wilc_optaining_ip to 'wilc_vif' struct

2018-08-23 Thread Ajay Singh
On Thu, 23 Aug 2018 11:09:42 +0300 Claudiu Beznea wrote: > On 14.08.2018 09:49, Ajay Singh wrote: > > Move global variable 'wilc_during_ip_timer' and 'wilc_optaining_ip' > > to 'wilc_vif' structure. > > > > Rename these variables like below > > > > wilc_during_ip_timer -> during_ip_timer > > wi

Re: [PATCH 00/24] staging: wilc1000: avoid use of static and global variable

2018-08-23 Thread Ajay Singh
Hi Claudiu, On Thu, 23 Aug 2018 11:09:29 +0300 Claudiu Beznea wrote: > Hi Ajay, > > Few comments on this series. See per patch replies. > Thank you for your time to review. I will check and update my replies on the patches. Regards, Ajay ___ devel

Re: [PATCH 24/24] staging: wilc1000: remove unnecessary static variable 'p2p_listen_state'

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:50, Ajay Singh wrote: > Remove the use of unnecessary static variable 'p2p_listen_state'. > Already 'p2p_listen_state' is present in 'wilc_priv' struct. So making > use of that variable as its getting set in channel ready and > remain on channel expired callback. > > Signed-off

Re: [PATCH 23/24] staging: wilc1000: move 'wilc_connecting' static variable to 'wilc_vif' struct

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:50, Ajay Singh wrote: > Move static variable 'wilc_connecting' as part of 'wilc_vif' private > struct. Remove "wilc_" prefix from name as its already part of wilc_vif > struct. > > Signed-off-by: Ajay Singh > --- > drivers/staging/wilc1000/host_interface.c | 4 ++-- >

Re: [PATCH 20/24] staging: wilc1000: avoid line over 80 chars in tcp_process()

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:50, Ajay Singh wrote: > Cleanup patch to avoid line over 80 chars issue reported by > checkpatch.pl script. > > Signed-off-by: Ajay Singh > --- > drivers/staging/wilc1000/wilc_wlan.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/stagi

Re: [PATCH 12/24] staging: wilc1000: move static variable 'terminated_handle' to wilc_vif struct

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:50, Ajay Singh wrote: > Remove the use of static variable 'terminated_handle' and instead move > in wilc_vif struct. > After moving this variable to wilc_vif struct its not required to keep > 'terminated_handle', so changed it to boolean type. You can remove it at all and use w

Re: [PATCH 19/24] staging: wilc1000: avoid line over 80 chars in wilc_wlan_txq_filter_dup_tcp_ack()

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:50, Ajay Singh wrote: > Cleanup patch to avoid line over 80 chars checkpatch issue introduced in > previous code refactor commit. > > Signed-off-by: Ajay Singh > --- > drivers/staging/wilc1000/wilc_wlan.c | 11 ++- > 1 file changed, 6 insertions(+), 5 deletions(-) >

Re: [PATCH 11/24] staging: wilc1000: move hif specific static variables to 'wilc' structure

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:50, Ajay Singh wrote: > Avoid use of static variable and move it in 'wilc' structure related to > hif and added NULL before accessing hif_workqueue in wilc_enqueue_work(). > > Below variables are moved to 'wilc' struct: > struct workqueue_struct *hif_workqueue; > struct mutex

Re: [PATCH 10/24] staging: wilc1000: move wilc_multicast_mac_addr_list to 'wilc_vif' struct

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:50, Ajay Singh wrote: > Instead of using 'wilc_multicast_mac_addr_list' as global variable move > it part of wilc_vif struct. Rename 'wilc_multicast_mac_addr_list' > variable to 'mc_mac_addr_list' as its now part of 'wilc_vif' struct. > > Signed-off-by: Ajay Singh > --- > dri

Re: [PATCH 06/24] staging: wilc1000: move during_ip_timer & wilc_optaining_ip to 'wilc_vif' struct

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:49, Ajay Singh wrote: > Move global variable 'wilc_during_ip_timer' and 'wilc_optaining_ip' to > 'wilc_vif' structure. > > Rename these variables like below > > wilc_during_ip_timer -> during_ip_timer > wilc_optaining_ip -> obtaining_ip. Is there any reason you choose to have

Re: [PATCH 00/24] staging: wilc1000: avoid use of static and global variable

2018-08-23 Thread Claudiu Beznea
Hi Ajay, Few comments on this series. See per patch replies. Thank you, Claudiu Beznea On 14.08.2018 09:49, Ajay Singh wrote: > This patch set mainly contains changes to avoid the use of static > and global variables. Also contains few patch to avoid the checkpatch > warning arise due to code re

Re: [PATCH 09/24] staging: wilc1000: move static variable clients_count to 'wilc' structure

2018-08-23 Thread Claudiu Beznea
On 14.08.2018 09:50, Ajay Singh wrote: > Avoid use of static variable 'clients_count' and move it part of 'wilc' > structure. > > Signed-off-by: Ajay Singh > --- > drivers/staging/wilc1000/host_interface.c | 9 - > drivers/staging/wilc1000/wilc_wfi_netdevice.h | 1 + > 2 files cha

Re: [PATCH 00/17] staging:rtl8192u: Coding Style changes

2018-08-23 Thread Dan Carpenter
Looks good. Thanks! regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v7 0/8] Cedrus driver for the Allwinner Video Engine, using media requests

2018-08-23 Thread Paul Kocialkowski
Hi Ezequiel, On Wed, 2018-08-22 at 14:25 -0300, Ezequiel Garcia wrote: > Hey Paul, > > On Thu, 2018-08-09 at 11:04 +0200, Paul Kocialkowski wrote: > > This is the seventh iteration of the updated Cedrus driver, > > that supports the Video Engine found on most Allwinner SoCs, starting > > with the