Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 11:08:36PM -0400, Oleg Drokin wrote: > Hello! > > On May 3, 2014, at 10:33 PM, Greg Kroah-Hartman wrote: > >> I don't think I saw complaints about proc files, the complaints I saw were > >> mostly about > >> reading env variables directly and the like so that was the focus

[PATCH v2] staging: lustre: return -EFAULT instead of bytes remaining

2014-05-03 Thread Vitaly Osipov
return -EFAULT instead of the value returned by copy_from_user() Signed-off-by: Vitaly Osipov --- Revised against today's staging-next branch. .../lustre/lustre/libcfs/linux/linux-module.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lus

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Oleg Drokin
Hello! On May 3, 2014, at 10:33 PM, Greg Kroah-Hartman wrote: >> I don't think I saw complaints about proc files, the complaints I saw were >> mostly about >> reading env variables directly and the like so that was the focus of this >> patch. >> Did I miss some side discussion? Any pointers? > N

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 09:20:06PM -0400, Oleg Drokin wrote: > > On May 3, 2014, at 7:29 PM, Greg Kroah-Hartman wrote: > > > On Sun, Apr 27, 2014 at 10:21:52PM -0400, Oleg Drokin wrote: > >> Insted of meddling directly in process environment variables > >> (which is also not possible on certain p

Re: [PATCH] sysctl: Fix division by zero in percpu_pagelist_fraction handler

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 09:28:03PM -0400, Oleg Drokin wrote: > percpu_pagelist_fraction_sysctl_handler calls proc_dointvec_minmax > and blindly assumes that return value of 0 means success. > In fact the other valid case is when it got a zero length input. > > After that it proceeds to a division

[PATCH] sysctl: Fix division by zero in percpu_pagelist_fraction handler

2014-05-03 Thread Oleg Drokin
percpu_pagelist_fraction_sysctl_handler calls proc_dointvec_minmax and blindly assumes that return value of 0 means success. In fact the other valid case is when it got a zero length input. After that it proceeds to a division by percpu_pagelist_fraction value which is conveniently set to a defaul

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Oleg Drokin
On May 3, 2014, at 7:29 PM, Greg Kroah-Hartman wrote: > On Sun, Apr 27, 2014 at 10:21:52PM -0400, Oleg Drokin wrote: >> Insted of meddling directly in process environment variables >> (which is also not possible on certain platforms due to not exported >> symbols), create jobid_name proc file to

Re: [PATCH] staging: rtl8712: fix potential leaks in r8712_set_key()

2014-05-03 Thread Greg KH
On Thu, May 01, 2014 at 11:54:02PM +0200, Christian Engelmayer wrote: > Fix potential leaks in the error paths of r8712_set_key(). In case the > algorithm specific checks fail, the function returns without enqueuing > or freeing the already allocated command and parameter structs. Use a > centraliz

Re: [PATCH] staging: rtl8821ae: mark pointer in pci_iounmap as __iomem

2014-05-03 Thread Greg KH
On Sat, May 03, 2014 at 05:10:48PM +0200, Martin Kepplinger wrote: > pci_iounmap is used that way in drivers/net/wireless/rtlwifi and this > fixes sparse warnings. > > Signed-off-by: Martin Kepplinger > --- > drivers/staging/rtl8821ae/pci.c |4 ++-- > 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH v2] staging: rtl8188eu: fix potential leak in rtw_set_key()

2014-05-03 Thread Greg KH
On Thu, May 01, 2014 at 12:30:57PM +0200, Christian Engelmayer wrote: > Fix a potential leak in the error path of rtw_set_key(). In case the requested > algorithm is not supported by the driver, the function returns without > enqueuing or freeing the already allocated command and parameter structs.

Re: [PATCH] staging: rtl8723au: Remove unused pointer in rtw_wdev_free()

2014-05-03 Thread Greg KH
On Sat, Apr 26, 2014 at 10:10:29PM +0200, Christian Engelmayer wrote: > Pointer 'pwdev_priv' in function rtw_wdev_free() is unused - thus remove it. > > Signed-off-by: Christian Engelmayer > --- > Compile tested and applies against v3.15-rc2 as well as branch staging-next > of tree git.kernel.org

Re: [PATCH 00/22] staging: comedi: pass subdevice around instead of async

2014-05-03 Thread Greg Kroah-Hartman
On Fri, May 02, 2014 at 08:53:54PM +0100, Ian Abbott wrote: > On 02/05/14 18:40, Hartley Sweeten wrote: > > On Friday, May 02, 2014 5:50 AM, Ian Abbott wrote: > >> For comedi subdevices that support asynchronous commands, the `async` > >> member of `struct comedi_subdevice` points to a `struct come

Re: [PATCH 00/32] staging: comedi: continue async command cleanup

2014-05-03 Thread gre...@linuxfoundation.org
On Tue, Apr 29, 2014 at 08:07:55PM +, Hartley Sweeten wrote: > On Tuesday, April 29, 2014 12:59 PM, H Hartley Sweeten wrote: > > Remove some unnecessary pacer divisor calculations. The divisors are > > calculated > > as part of the (*do_cmdtest) and don't need done in the (*do_cmd). > > > > Re

Re: [PATCH 1/6] staging: comedi: addi_apci_1564: remove eeprom support code

2014-05-03 Thread Greg KH
On Mon, Apr 28, 2014 at 12:40:05PM +0300, Dan Carpenter wrote: > Nice, Chase, you've become an expert on comedi, it seems. > > I can't say how happy comedi patches make me these days. Ian, you and > Hartley are doing a fantastic job. Same here, it's great to see all of this cleanup happening. M

Re: [PATCH] staging: android: fix missing a blank line after declarations

2014-05-03 Thread Greg KH
On Tue, Apr 29, 2014 at 08:32:21PM +0300, Dan Carpenter wrote: > On Wed, Apr 30, 2014 at 01:59:12AM +0900, Seunghun Lee wrote: > > This patch fixes "Missing a blank line after declarations" warnings. > > > > Signed-off-by: Seunghun Lee > > Quite a few of these are false checkpatch.pl false posit

Re: [PATCH] staging: lustre: return -EFAULT instead of bytes remaining

2014-05-03 Thread Greg Kroah-Hartman
On Sun, Apr 27, 2014 at 01:02:03AM +1000, Vitaly Osipov wrote: > return -EFAULT instead of the value returned by copy_from_user() > > Signed-off-by: Vitaly Osipov > --- > .../lustre/lustre/libcfs/linux/linux-module.c | 11 --- This patch doesn't apply at all, can you refresh it ag

Re: [PATCH] staging/lustre: Replace jobid acquiring with per node setting

2014-05-03 Thread Greg Kroah-Hartman
On Sun, Apr 27, 2014 at 10:21:52PM -0400, Oleg Drokin wrote: > Insted of meddling directly in process environment variables > (which is also not possible on certain platforms due to not exported > symbols), create jobid_name proc file to represent this info > (to be filled by job scheduler epilogue

[PATCH] staging: comedi: ii_pci20kc: fix usage of uninit scalar in ii20k_attach()

2014-05-03 Thread Christian Engelmayer
This driver supports the PCI-20001C-1a and PCI-20001C-2a carrier boards. The -2a version has 32 on-board DIO channels. In case this variant is detected, local variable 'has_dio' is set accordingly. Otherwise it is left uninitialized and the following subdevice instantiation depends on the stack. De

[PATCH] staging: binder: fix usage of uninit scalar in binder_transaction()

2014-05-03 Thread Christian Engelmayer
Fix the error path when a cookie mismatch is detected. In that case the function jumps to the exit label without setting the uninitialized, local variable 'return_error'. Detected by Coverity - CID 201453. Signed-off-by: Christian Engelmayer --- Compile tested and applies against branch staging-n

CE MESSAGE PROVIENT DE NOTRE �QUIPE DE SUPPORT TECHNIQUE 2

2014-05-03 Thread Maintenance/mise � niveau
CE MESSAGE PROVIENT DE NOTRE ÉQUIPE DE SUPPORT TECHNIQUE : Ce message est envoyé automatiquement par notre équipe de courrier web. Si vous recevez ce message, que cela signifie que votre adresse e-mail est sur le point d'être mis hors tension ; C'était en raison d'un code de script erreur co

CE MESSAGE PROVIENT DE NOTRE �QUIPE DE SUPPORT TECHNIQUE 2

2014-05-03 Thread Maintenance/mise � niveau
CE MESSAGE PROVIENT DE NOTRE ÉQUIPE DE SUPPORT TECHNIQUE : Ce message est envoyé automatiquement par notre équipe de courrier web. Si vous recevez ce message, que cela signifie que votre adresse e-mail est sur le point d'être mis hors tension ; C'était en raison d'un code de script erreur co

Re: [patch] staging: rtl8723au: fix some confusing indenting

2014-05-03 Thread Jes Sorensen
Dan Carpenter writes: > The break and the "unknown++" are at the same indent level so my static > checker complains. The if statement should be indented more. > > Signed-off-by: Dan Carpenter Urgh yes, that should be cleaned up! Acked-by: Jes Sorensen > > diff --git a/drivers/staging/rtl8723

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Christian Engelmayer
On Sat, 3 May 2014 23:06:50 +0300, Dan Carpenter wrote: > Many of my other comments apply. > > > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > > index 23d539d..1d4475d 100644 > > --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux

[patch] staging: lustre: info leak in lnet_ping()

2014-05-03 Thread Dan Carpenter
On 64 bit systems there is a 4 byte hole after the last member of the struct. We should clear it to avoid disclosing stack information. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/lustre/lnet/lnet/api-ni.c b/drivers/staging/lustre/lnet/lnet/api-ni.c index 85b8d81..d4cacb90 100644

[patch] staging: rtl8723au: fix some confusing indenting

2014-05-03 Thread Dan Carpenter
The break and the "unknown++" are at the same indent level so my static checker complains. The if statement should be indented more. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/rtl8723au/core/rtw_mlme_ext.c b/drivers/staging/rtl8723au/core/rtw_mlme_ext.c index eb7b98e..4ad80e7 10

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Dan Carpenter
Many of my other comments apply. > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > index 23d539d..1d4475d 100644 > --- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > +++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c > @@ -170,7 +

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 06:12:11PM +0200, Rickard Strandqvist wrote: > Hi > > The static code analysis program called cppcheck. > http://cppcheck.sourceforge.net/ > > I found code that I think are bugs, or at least inappropriate or > unnecessary code, in the files: > drivers/staging/tidspbridge/p

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Dan Carpenter
This patch wasn't sent in the correct way. The subject should be: [PATCH] staging: tidspbridge: silence some uninitialized variable warnings On Sat, May 03, 2014 at 06:12:11PM +0200, Rickard Strandqvist wrote: > Hi > > The static code analysis program called cppcheck. > http://cppcheck.sourcefo

Re: Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Greg Kroah-Hartman
On Sat, May 03, 2014 at 06:33:11PM +0200, Rickard Strandqvist wrote: > Hi > > The static code analysis program called cppcheck. > http://cppcheck.sourceforge.net/ > > I found code that I think are bugs, or at least inappropriate or > unnecessary code, in the files: > drivers/staging/rtl8712/rtl87

Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Rickard Strandqvist
Hi The static code analysis program called cppcheck. http://cppcheck.sourceforge.net/ I found code that I think are bugs, or at least inappropriate or unnecessary code, in the files: drivers/staging/tidspbridge/pmgr/dspapi.c drivers/staging/tidspbridge/rmgr/node.c I have created a patch, and in

Found some errors and other oddities, largely by means of a static code analysis program

2014-05-03 Thread Rickard Strandqvist
Hi The static code analysis program called cppcheck. http://cppcheck.sourceforge.net/ I found code that I think are bugs, or at least inappropriate or unnecessary code, in the files: drivers/staging/rtl8712/rtl871x_ioctl_linux.c drivers/staging/rtl8712/rtl871x_mlme.c drivers/staging/rtl8712/usb_i

[PATCH] staging: rtl8821ae: mark pointer in pci_iounmap as __iomem

2014-05-03 Thread Martin Kepplinger
pci_iounmap is used that way in drivers/net/wireless/rtlwifi and this fixes sparse warnings. Signed-off-by: Martin Kepplinger --- drivers/staging/rtl8821ae/pci.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8821ae/pci.c b/drivers/staging/rtl8821ae

[PATCH 14/15] staging: rtl8188eu: Remove rtl8188eu_init_recvbuf() function

2014-05-03 Thread navin patidar
rtl8188eu_init_recvbuf() function definition is empty now, so remove it. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c|4 drivers/staging/rtl8188eu/hal/usb_ops_linux.c |2 -- drivers/staging/rtl8188eu/include/rtl8188e_recv.h |1 - 3 file

[PATCH 15/15] staging: rtl8188eu: Remove 'u8 *pbuf' from struct recv_buf

2014-05-03 Thread navin patidar
Instead of using pbuf to pass sbk data pointer to usb_fill_bulk_urb(), we can use precvbuf->pskb->data to do that. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/usb_ops_linux.c |5 + drivers/staging/rtl8188eu/include/rtw_recv.h |1 - drivers/staging/rtl8188eu/os_dep

[PATCH 13/15] staging: rtl8188eu: Remove 'u32 ref_cnt' from struct recv_buf

2014-05-03 Thread navin patidar
Driver isn't making any use of value stored in variable ref_cnt. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c |2 -- drivers/staging/rtl8188eu/include/rtw_recv.h |1 - drivers/staging/rtl8188eu/os_dep/recv_linux.c |1 - 3 files changed, 4 deletio

[PATCH 12/15] staging: rtl8188eu: Remove 'u32 len' from struct recv_buf

2014-05-03 Thread navin patidar
Remove unused variable 'u32 len'. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c |1 - drivers/staging/rtl8188eu/include/rtw_recv.h |1 - drivers/staging/rtl8188eu/os_dep/recv_linux.c |1 - 3 files changed, 3 deletions(-) diff --git a/drivers/stag

[PATCH 09/15] staging: rtl8188eu: Remove 'irp_pending' from struct recv_buf

2014-05-03 Thread navin patidar
irp_pending is initialized to false inside rtw_os_recvbuf_resource_alloc() and value of irq_pending never changed after that, so 'if (!precvbuf->irp_pending)' inside rtw_os_read_port() function will be always true. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/include/rtw_recv.h |

[PATCH 11/15] staging: rtl8188eu: Remove 'alloc_sz' from struct recv_buf

2014-05-03 Thread navin patidar
Driver isn't making any use of value stored in alloc_sz variable. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c |1 - drivers/staging/rtl8188eu/include/rtw_recv.h |1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188

[PATCH 10/15] staging: rtl8188eu: Remove 'pallocated_buf' from struct recv_buf

2014-05-03 Thread navin patidar
pallocated_buf is not being used by driver. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/include/rtw_recv.h |1 - drivers/staging/rtl8188eu/os_dep/recv_linux.c |1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/stagi

[PATCH 08/15] staging: rtl8188eu: Remove pdata, phead, ptail and pend from struct recv_buf

2014-05-03 Thread navin patidar
Driver is not making use of value stored in removed variables. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c |8 drivers/staging/rtl8188eu/hal/usb_ops_linux.c |9 - drivers/staging/rtl8188eu/include/rtw_recv.h |4 drivers/sta

[PATCH 07/15] staging: rtl8188eu: Remove 'int transfer_len' from struct recv_buf

2014-05-03 Thread navin patidar
Driver is not making any use of value stored in this variable. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c |2 -- drivers/staging/rtl8188eu/hal/usb_ops_linux.c |1 - drivers/staging/rtl8188eu/include/rtw_recv.h |1 - drivers/staging/rtl8188eu/os

[PATCH 06/15] staging: rtl8188eu: Remove 'dma_addr_t dma_transfer_addr' from struct recv_buf

2014-05-03 Thread navin patidar
Remove unused variable dma_transfer_addr. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/include/rtw_recv.h |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/include/rtw_recv.h b/drivers/staging/rtl8188eu/include/rtw_recv.h index 4a19a06..bf9af77 100644

[PATCH 05/15] staging: rtl8188eu: Remove 'spinlock_t recvbuf_lock' from struct recv_buf

2014-05-03 Thread navin patidar
recvbuf_lock is initialized inside rtl8188eu_init_recv_priv() but never used. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c |1 - drivers/staging/rtl8188eu/include/rtw_recv.h |1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu

[PATCH 03/15] staging: rtl8188eu: Remove function rtw_enqueue_recvbuf()

2014-05-03 Thread navin patidar
rtw_enqueue_recvbuf() is not being used by driver. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_recv.c| 12 drivers/staging/rtl8188eu/include/rtw_recv.h |1 - 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_recv.c b

[PATCH 04/15] staging: rtl8188eu: Remove 'struct list_head list' from struct recv_buf

2014-05-03 Thread navin patidar
Users of 'struct list_head list' variable e.g. rtw_enqueue_recvbuf(), rtw_enqueue_recvbuf_to_head() and rtw_dequeue_recvbuf() are already removed. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c |1 - drivers/staging/rtl8188eu/include/rtw_recv.h |1 - 2

[PATCH 02/15] staging: rtl8188eu: Remove function rtw_enqueue_recvbuf_to_head()

2014-05-03 Thread navin patidar
rtw_enqueue_recvbuf_to_head() is not being used by driver. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_recv.c| 12 drivers/staging/rtl8188eu/include/rtw_recv.h |1 - 2 files changed, 13 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_r

[PATCH 01/15] staging: rtl8188eu: Remove function rtw_dequeue_recvbuf()

2014-05-03 Thread navin patidar
rtw_dequeue_recvbuf() is not being used by driver. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/core/rtw_recv.c| 25 - drivers/staging/rtl8188eu/include/rtw_recv.h |1 - 2 files changed, 26 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/

[PATCH 00/15] staging: rtl8188eu: clean-up struct recv_buf

2014-05-03 Thread navin patidar
Following patches remove unnecessary member variables of struct recv_buf. navin patidar (15): staging: rtl8188eu: Remove function rtw_dequeue_recvbuf() staging: rtl8188eu: Remove function rtw_enqueue_recvbuf_to_head() staging: rtl8188eu: Remove function rtw_enqueue_recvbuf() staging: rtl81

[PATCH 3/4] staging: comedi: addi_apci_1564: absorb apci1564_reset()

2014-05-03 Thread Chase Southwood
This is the only reset fuction used by this driver. We can remove it from the boardinfo and absorb the code from hwdrv_apci1564.c into the driver. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- .../comedi/drivers/addi-data/hwdrv_apci1564.c | 32 --

[PATCH 4/4] staging: comedi: addi_apci_1564: call apci1564_interrupt() directly

2014-05-03 Thread Chase Southwood
Remove the boardinfo about the interrupt function and just call it directly. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- drivers/staging/comedi/drivers/addi_apci_1564.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/comedi/d

[PATCH 2/4] staging: comedi: addi_apci_1564: don't allocate unused subdevices

2014-05-03 Thread Chase Southwood
The addi-data common code always allocates 7 subdevices. This driver cannot or will not use the ones we are currently allocating for analog input and output or EEPROM, so just don't allocate these subdevices at all. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- drive

[PATCH 1/4] staging: comedi: addi_apci_1564: board has 32 digital outputs

2014-05-03 Thread Chase Southwood
This board always has 32 digital outputs. Remove the test when initializing the subdevice. Also, since this board is the only one supported by this driver, remove the boardinfo about the digital outputs and just use the data directly in the subdevice init. Signed-off-by: Chase Southwood Cc: Ian

[PATCH 0/4] staging: comedi: addi_apci_1564: Further cleanups

2014-05-03 Thread Chase Southwood
Latest patchset in a continuing cleanup of addi_apci_1564.c. Main focus is on the auto_attach() function, but also cleaning up some of the old addi common code wrappers. To be applied on top of my prior patchset to this file (the one beginning with [PATCH 1/6] staging: comedi: addi_apci_1564: rem

[PATCH 6/6 v3] staging: comedi: addi_apci_1564: remove use of devpriv->s_EeParameters

2014-05-03 Thread Chase Southwood
This driver no longer reads the eeprom to find the board specific data, all the necessary data is in the boardinfo. Use the boardinfo directly instead of passing through devpriv->s_EeParameters. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- 2: Incorrect patch title fix