Re: [PATCH] staging: line6: toneport.c: Fix for possible null pointer dereference

2014-05-20 Thread Stefan Hajnoczi
On Mon, May 19, 2014 at 11:39 PM, Rickard Strandqvist rickard_strandqv...@spectrumdigital.se wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist

Re: [PATCH V2 2/2] staging: slicoss: fail on corrupt eeprom

2014-05-20 Thread Dan Carpenter
Now, those are some beautiful changelogs. ;) Thanks so much. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

RE: [PATCH] staging: ozwpan: Change Maintainer

2014-05-20 Thread Tateno, Tateno
Hi Greg, Please accept this as the acknowledgment to your reply. I will take over ozwpan maintainer role from Rupesh. Thanks Tateno From: Greg KH [gre...@linuxfoundation.org] Sent: 20 May 2014 02:29 To: Gujare, Rupesh Cc: de...@driverdev.osuosl.org;

Re: [PATCH 2/5] staging: lustre: lnet: socklnd: Clean up memset(...)

2014-05-20 Thread walter harms
Am 18.05.2014 19:27, schrieb Joe Perches: On Sun, 2014-05-18 at 18:19 +0100, Masaru Nomura wrote: Remove prohibited space and fix line over 80 characters of memset(...) to meet kernel coding style. [] diff --git a/drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c

[PATCH 1/8] staging: r8712u: Remove useless return variables

2014-05-20 Thread Peter Senna Tschudin
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that find and fixes this issue is: // smpl @@ type T; constant C;

[PATCH 2/8] staging: wlags49_h2: wl_priv: Remove useless return variables

2014-05-20 Thread Peter Senna Tschudin
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that find and fixes this issue is: // smpl @@ type T; constant C;

[PATCH 5/8] staging: et131x: Remove useless return variables

2014-05-20 Thread Peter Senna Tschudin
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that find and fixes this issue is: // smpl @@ type T; constant C;

[PATCH 6/8] USB: as102_usb_drv.c: Remove useless return variables

2014-05-20 Thread Peter Senna Tschudin
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that find and fixes this issue is: // smpl @@ type T; constant C;

[PATCH 3/8] drivers/staging: Remove useless return variables

2014-05-20 Thread Peter Senna Tschudin
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that find and fixes this issue is: // smpl @@ type T; constant C;

[PATCH 7/8] staging: ozwpan: Remove useless return variables

2014-05-20 Thread Peter Senna Tschudin
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that find and fixes this issue is: // smpl @@ type T; constant C;

Re: [PATCH 1/8] staging: r8712u: Remove useless return variables

2014-05-20 Thread walter harms
Am 20.05.2014 12:33, schrieb Peter Senna Tschudin: This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that

Re: [PATCH 3/8] drivers/staging: Remove useless return variables

2014-05-20 Thread walter harms
Am 20.05.2014 12:33, schrieb Peter Senna Tschudin: This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that

backporting stable fixes to staging after driver graduation

2014-05-20 Thread Tomas Winkler
I'd like to ask what is the policy for back porting fixes for drivers that already graduated from staging but the fix is needed in kernel version where it is still in the staging. Thanks ___ devel mailing list de...@linuxdriverproject.org

Re: backporting stable fixes to staging after driver graduation

2014-05-20 Thread Greg KH
On Tue, May 20, 2014 at 02:17:26PM +0300, Tomas Winkler wrote: I'd like to ask what is the policy for back porting fixes for drivers that already graduated from staging but the fix is needed in kernel version where it is still in the staging. Same as anything else, just provide the backported

Re: [PATCH 1/8] staging: r8712u: Remove useless return variables

2014-05-20 Thread Dan Carpenter
Those concerns are valid but the code was like that in the original so we should merge this patch as is and hope some volunteer will fix things up in a follow on patch. Fixing them in this patch would be a mistake anyway because of the one thing per patch rule. regards, dan carpenter

RE: backporting stable fixes to staging after driver graduation

2014-05-20 Thread Winkler, Tomas
On Tue, May 20, 2014 at 02:17:26PM +0300, Tomas Winkler wrote: I'd like to ask what is the policy for back porting fixes for drivers that already graduated from staging but the fix is needed in kernel version where it is still in the staging. Same as anything else, just provide the

Re: [PATCH 1/8] staging: r8712u: Remove useless return variables

2014-05-20 Thread walter harms
Am 20.05.2014 13:41, schrieb Dan Carpenter: Those concerns are valid but the code was like that in the original so we should merge this patch as is and hope some volunteer will fix things up in a follow on patch. Fixing them in this patch would be a mistake anyway because of the one thing

[PATCH 3/3] Staging: bcm: Outsourced IsFlash2x() handling

2014-05-20 Thread Matthias Beyer
This patch outsources the code from the IsFlash2x() check in bcm_char_ioctl_nvm_rw() function to shorten it. Signed-off-by: Matthias Beyer m...@beyermatthias.de --- drivers/staging/bcm/Bcmchar.c | 98 --- 1 file changed, 56 insertions(+), 42 deletions(-)

[PATCH 0/3] Staging: bcm: Bcmchar.c cleanup patches

2014-05-20 Thread Matthias Beyer
Hi, I did some cleanup for the file drivers/staging/bcm/Bcmchar.c The patches shorten some lines and do some code outsourcing from large functions into smaller ones. Can someone tell me how to compile (and maybe even test) my patches? I'm not on the ML, please keep me in CC. Regards,

[PATCH 2/3] Staging: bcm: Outsourced cmd handling to function

2014-05-20 Thread Matthias Beyer
This patch outsourced the true-branch for the IOCTL_BCM_NVM_READ command handling to shorten the bcm_char_ioctl_nvm_rw() function. Signed-off-by: Matthias Beyer m...@beyermatthias.de --- drivers/staging/bcm/Bcmchar.c | 72 ++- 1 file changed, 44

[PATCH 1/3] Staging: bcm: Fixed line lengths

2014-05-20 Thread Matthias Beyer
Signed-off-by: Matthias Beyer m...@beyermatthias.de --- drivers/staging/bcm/Bcmchar.c | 76 --- 1 file changed, 50 insertions(+), 26 deletions(-) diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index ae7490b..e5283dd 100644 ---

Re: [PATCH 2/7] staging: unisys: move uislib/platform proc entry to debugfs

2014-05-20 Thread Romer, Benjamin M
On Tue, 2014-05-20 at 10:09 +0900, Greg KH wrote: On Mon, May 19, 2014 at 10:57:08PM +0300, Dan Carpenter wrote: On Mon, May 19, 2014 at 09:42:22AM -0500, Romer, Benjamin M wrote: On Sun, 2014-05-18 at 09:49 -0700, Greg KH wrote: Also, why are these entries moving to debugfs at all? Why

[PATCH 0/3] staging/skein: more cleanup

2014-05-20 Thread Jake Edge
Clean up a few more things in skein to get it closer to mainline inclusion. The first may be questionable (so I probably should have put it last -- oh well, I can always respin), but it seemed like putting all of the threefish block functions in one file, like the skein block functions are all

[PATCH 2/3] staging/skein: comment typos

2014-05-20 Thread Jake Edge
fix some comment typos Signed-off-by: Jake Edge j...@lwn.net --- against staging-next branch of staging tree drivers/staging/skein/threefish_api.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/skein/threefish_api.h

[PATCH 3/3] staging/skein: variable/member name cleanup

2014-05-20 Thread Jake Edge
Rename a few more variables and structure member names to lower case. Signed-off-by: Jake Edge j...@lwn.net --- against staging-next branch of staging tree drivers/staging/skein/skein.c | 148 +- drivers/staging/skein/skein.h | 34

Re: [PATCH 0/3] Staging: bcm: Bcmchar.c cleanup patches

2014-05-20 Thread Tobias Klauser
On 2014-05-20 at 15:04:50 +0200, Matthias Beyer m...@beyermatthias.de wrote: Hi, I did some cleanup for the file drivers/staging/bcm/Bcmchar.c The patches shorten some lines and do some code outsourcing from large functions into smaller ones. Can someone tell me how to compile

Re: [PATCH 0/3] staging/skein: more cleanup

2014-05-20 Thread Jason Cooper
Jake, On Tue, May 20, 2014 at 07:56:12AM -0600, Jake Edge wrote: Clean up a few more things in skein to get it closer to mainline inclusion. The first may be questionable (so I probably should have put it last -- oh well, I can always respin), but it seemed like putting all of the

Re: [PATCH 2/5] dma-mapping: Add devm_ interface for dma_map_single()

2014-05-20 Thread Tejun Heo
Hello, On Tue, May 20, 2014 at 08:54:09AM +0300, Eli Billauer wrote: That seems OK to me, but the problem I'm concerned with is this: In devm_get_free_pages() it says devres = devres_alloc(devm_pages_release, sizeof(struct pages_devres), GFP_KERNEL); if

[PATCH v2 1/3] Staging: bcm: Fixed line lengths

2014-05-20 Thread Matthias Beyer
Signed-off-by: Matthias Beyer m...@beyermatthias.de --- drivers/staging/bcm/Bcmchar.c | 76 --- 1 file changed, 50 insertions(+), 26 deletions(-) diff --git a/drivers/staging/bcm/Bcmchar.c b/drivers/staging/bcm/Bcmchar.c index ae7490b..e5283dd 100644 ---

[PATCH v2 2/3] Staging: bcm: Outsourced cmd handling to function

2014-05-20 Thread Matthias Beyer
This patch outsourced the true-branch for the IOCTL_BCM_NVM_READ command handling to shorten the bcm_char_ioctl_nvm_rw() function. Signed-off-by: Matthias Beyer m...@beyermatthias.de --- drivers/staging/bcm/Bcmchar.c | 72 ++- 1 file changed, 44

[PATCH v2 3/3] Staging: bcm: Outsourced IsFlash2x() handling

2014-05-20 Thread Matthias Beyer
This patch outsources the code from the IsFlash2x() check in bcm_char_ioctl_nvm_rw() function to shorten it. Signed-off-by: Matthias Beyer m...@beyermatthias.de --- drivers/staging/bcm/Bcmchar.c | 101 -- 1 file changed, 58 insertions(+), 43 deletions(-)

[PATCH v2 0/3] Staging: bcm: Bcmchar.c cleanup patches

2014-05-20 Thread Matthias Beyer
Hi, I applied some fixes to my patches as they did not compile before. I guess I'm not able to test these patches without the appropriate hardware, unfortunately. Hope you guys like them anyway. Regards, Matthias Beyer Matthias Beyer (3): Staging: bcm: Fixed line lengths Staging: bcm:

Re: randconfig build error with next-20140520, in drivers/staging/rtl8723au/core/rtw_cmd.c

2014-05-20 Thread Jes Sorensen
Jim Davis jim.ep...@gmail.com writes: Building with the attached random configuration file, drivers/staging/rtl8723au/core/rtw_cmd.c: In function ‘dynamic_chk_wk_hdl’: drivers/staging/rtl8723au/core/rtw_cmd.c:1036:2: error: implicit declaration of function

Re: [PATCH V2 2/2] staging: slicoss: fail on corrupt eeprom

2014-05-20 Thread David Matlack
Thanks for the reviews! ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 0/3] staging/skein: more cleanup

2014-05-20 Thread Jake Edge
On Tue, 20 May 2014 10:47:57 -0400 Jason Cooper wrote: Do you have any other series pending for this driver? No and I won't be doing anything else for the next couple of days -- some darn weekly edition to deal with :) It seems like most of the straightforward stuff has been dealt with at this

Re: [PATCH 0/3] staging/skein: more cleanup

2014-05-20 Thread Jason Cooper
On Tue, May 20, 2014 at 10:24:11AM -0600, Jake Edge wrote: On Tue, 20 May 2014 10:47:57 -0400 Jason Cooper wrote: Do you have any other series pending for this driver? No and I won't be doing anything else for the next couple of days -- some darn weekly edition to deal with :) :) It

Re: [PATCH 0/3] staging/skein: more cleanup

2014-05-20 Thread Anton Saraev
On Tue, May 20, 2014 at 10:24:11AM -0600, Jake Edge wrote: On Tue, 20 May 2014 10:47:57 -0400 Jason Cooper wrote: but some kind of tests are needed to ensure nothing breaks before digging into that ... I have some test: slightly modified version of tests from

[PATCH] staging: realtek: Convert /n to \n

2014-05-20 Thread Joe Perches
Use proper line terminations. Signed-off-by: Joe Perches j...@perches.com --- drivers/staging/rtl8188eu/hal/usb_ops_linux.c | 2 +- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 +- drivers/staging/rtl8723au/hal/usb_ops_linux.c | 4 ++-- drivers/staging/rtl8723au/os_dep/usb_intf.c | 2 +-

Re: [PATCH v2 1/3] Staging: bcm: Fixed line lengths

2014-05-20 Thread Dan Carpenter
On Tue, May 20, 2014 at 05:12:44PM +0200, Matthias Beyer wrote: @@ -410,7 +412,8 @@ static int bcm_char_ioctl_gpio_set_request(void __user *argp, if (IoBuffer.InputLength sizeof(gpio_info)) return -EINVAL; - if (copy_from_user(gpio_info, IoBuffer.InputBuffer,

Re: [PATCH v2 2/3] Staging: bcm: Outsourced cmd handling to function

2014-05-20 Thread Dan Carpenter
On Tue, May 20, 2014 at 05:12:45PM +0200, Matthias Beyer wrote: This patch outsourced the true-branch for the IOCTL_BCM_NVM_READ command handling to shorten the bcm_char_ioctl_nvm_rw() function. This one is grand. I wish you had put the function ahead so we don't have to have the forward

Re: [PATCH v2 3/3] Staging: bcm: Outsourced IsFlash2x() handling

2014-05-20 Thread Dan Carpenter
On Tue, May 20, 2014 at 05:12:46PM +0200, Matthias Beyer wrote: This patch outsources the code from the IsFlash2x() check in bcm_char_ioctl_nvm_rw() function to shorten it. This patch introduces a bug. Please fix and resend. Also move the function forward so we don't need a declaration. +

[PATCH] staging: ozwpan: ozproto.c: Fix for possible null pointer dereference

2014-05-20 Thread Rickard Strandqvist
There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- drivers/staging/ozwpan/ozproto.c |5 - 1 file changed, 4

[PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix for possible null pointer dereference

2014-05-20 Thread Rickard Strandqvist
There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 127

[PATCH] staging: rtl8192u: r8192U_core.c: Fix for possible null pointer dereference

2014-05-20 Thread Rickard Strandqvist
There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- drivers/staging/rtl8192u/r8192U_core.c | 10 +++--- 1 file changed, 7

[PATCH] staging: rtl8712: usb_intf.c: Fix for possible null pointer dereference

2014-05-20 Thread Rickard Strandqvist
There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se --- drivers/staging/rtl8712/usb_intf.c |2 +- 1 file changed, 1

Re: [PATCH] staging: ozwpan: ozproto.c: Fix for possible null pointer dereference

2014-05-20 Thread Dan Carpenter
On Tue, May 20, 2014 at 11:28:59PM +0200, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. This is the empty string by default, or a module parameter. I have looked at

Re: [PATCH] staging: rtl8192u: r8192U_core.c: Fix for possible null pointer dereference

2014-05-20 Thread Dan Carpenter
On Tue, May 20, 2014 at 11:32:53PM +0200, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Could you mention in the change log which pointer you are worried about? I think

Re: [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix for possible null pointer dereference

2014-05-20 Thread Dan Carpenter
On Tue, May 20, 2014 at 11:31:16PM +0200, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. padapter can't be NULL. Just remove the check. regards, dan carpenter

Re: [PATCH] staging: rtl8712: usb_intf.c: Fix for possible null pointer dereference

2014-05-20 Thread Dan Carpenter
On Tue, May 20, 2014 at 11:34:25PM +0200, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se This

Re: [PATCH] staging: line6: toneport.c: Fix for possible null pointer dereference

2014-05-20 Thread Dan Carpenter
On Mon, May 19, 2014 at 11:39:00PM +0200, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se This

Re: [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix for possible null pointer dereference

2014-05-20 Thread Larry Finger
On 05/20/2014 04:31 PM, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist rickard_strandqv...@spectrumdigital.se ---

Re: [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix for possible null pointer dereference

2014-05-20 Thread Dan Carpenter
On Tue, May 20, 2014 at 11:31:16PM +0200, Rickard Strandqvist wrote: + if (!padapter) { + goto error_exit; + } Btw, I forgot to mention this before but please run your patches through scripts/checkpatch.pl. regards, dan carpenter

Re: [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix for possible null pointer dereference

2014-05-20 Thread josh
On Tue, May 20, 2014 at 06:26:51PM -0500, Larry Finger wrote: On 05/20/2014 04:31 PM, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist

Re: [PATCH] staging: ozwpan: ozproto.c: Fix for possible null pointer dereference

2014-05-20 Thread DaeSeok Youn
I was already sent for this. :-) https://lkml.org/lkml/2014/5/16/114 Regards, Daeseok Youn. 2014-05-21 6:48 GMT+09:00 Dan Carpenter dan.carpen...@oracle.com: On Tue, May 20, 2014 at 11:28:59PM +0200, Rickard Strandqvist wrote: There is otherwise a risk of a possible null pointer dereference.

Re: [PATCH 00/13]staging: rtl8188eu: Remove unused functions and variables

2014-05-20 Thread navin patidar
Hi Greg, Please merge this patchset, It has been pending for some time. regards, navin patidar On Wed, May 7, 2014 at 9:27 AM, navin.pati...@gmail.com wrote: From: navin patidar navin.pati...@gmail.com Following patches remove unused functions, variables and functions with empty

[GIT PULL] Staging driver fixes for 3.15-rc6

2014-05-20 Thread Greg KH
The following changes since commit 86281966c7395aa9a13a20c52e26005f5e142451: Merge tag 'iio-fixes-for-3.15b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus (2014-04-30 14:19:23 -0700) are available in the git repository at: