Re: [PATCH v3] ARM: imx: fix error handling in ipu device registration

2014-05-17 Thread Emil Goode
t of 4. kfree(NULL) is perfectly legal. I believe pdev could potentially be NULL, so it's the dereference that is the problem. Best regards, Emil Goode -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org Mor

Re: [PATCH v3] ARM: imx: fix error handling in ipu device registration

2014-05-17 Thread Emil Goode
that it's not very pretty. Now that Uwe solved the issue regarding converting the function to platform_device_register_full(), I will look into sending a second patch that would remove these lines. Thank you! Best regards, Emil Goode -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v3] ARM: imx: fix error handling in ipu device registration

2014-05-17 Thread Emil Goode
Hello Uwe, I was to quick to resend the patch, sorry. On Sat, May 17, 2014 at 09:18:21PM +0200, Uwe Kleine-König wrote: > Hello Emil, > > On Sat, May 17, 2014 at 08:40:33PM +0200, Emil Goode wrote: > > If we fail to allocate struct platform_device pdev we > > dereference it

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-17 Thread Emil Goode
Hello Uwe, On Sat, May 17, 2014 at 09:05:46PM +0200, Uwe Kleine-König wrote: > Hello Emil, > > On Sat, May 17, 2014 at 05:35:40PM +0200, Emil Goode wrote: > > On Fri, May 16, 2014 at 09:31:39PM +0200, Uwe Kleine-König wrote: > > > On Fri, May 16, 2014 at 01:49:10PM +

[PATCH v3] ARM: imx: fix error handling in ipu device registration

2014-05-17 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I have rearranged the error handling a bit to fix the issue and also make it more clear. Signed-off-by: Emil Goode --- v3: Made subject line more specific. v2: Changed to return -ENOMEM instead of ret

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-17 Thread Emil Goode
Hello Uwe, On Fri, May 16, 2014 at 09:31:39PM +0200, Uwe Kleine-König wrote: > Hello Walter, > > On Fri, May 16, 2014 at 01:49:10PM +0200, walter harms wrote: > > Am 16.05.2014 13:16, schrieb Emil Goode: > > > Hello Walter, > > > > > > On Fri, May

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-17 Thread Emil Goode
Hello Uwe, On Fri, May 16, 2014 at 09:31:39PM +0200, Uwe Kleine-König wrote: Hello Walter, On Fri, May 16, 2014 at 01:49:10PM +0200, walter harms wrote: Am 16.05.2014 13:16, schrieb Emil Goode: Hello Walter, On Fri, May 16, 2014 at 12:40:19PM +0200, walter harms wrote: Am

[PATCH v3] ARM: imx: fix error handling in ipu device registration

2014-05-17 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I have rearranged the error handling a bit to fix the issue and also make it more clear. Signed-off-by: Emil Goode emilgo...@gmail.com --- v3: Made subject line more specific. v2: Changed to return

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-17 Thread Emil Goode
Hello Uwe, On Sat, May 17, 2014 at 09:05:46PM +0200, Uwe Kleine-König wrote: Hello Emil, On Sat, May 17, 2014 at 05:35:40PM +0200, Emil Goode wrote: On Fri, May 16, 2014 at 09:31:39PM +0200, Uwe Kleine-König wrote: On Fri, May 16, 2014 at 01:49:10PM +0200, walter harms wrote: Am

Re: [PATCH v3] ARM: imx: fix error handling in ipu device registration

2014-05-17 Thread Emil Goode
Hello Uwe, I was to quick to resend the patch, sorry. On Sat, May 17, 2014 at 09:18:21PM +0200, Uwe Kleine-König wrote: Hello Emil, On Sat, May 17, 2014 at 08:40:33PM +0200, Emil Goode wrote: If we fail to allocate struct platform_device pdev we dereference it after the goto label err

Re: [PATCH v3] ARM: imx: fix error handling in ipu device registration

2014-05-17 Thread Emil Goode
); 3 out of 4 of the lines are bad. I agree that it's not very pretty. Now that Uwe solved the issue regarding converting the function to platform_device_register_full(), I will look into sending a second patch that would remove these lines. Thank you! Best regards, Emil Goode

Re: [PATCH v3] ARM: imx: fix error handling in ipu device registration

2014-05-17 Thread Emil Goode
that is the problem. Best regards, Emil Goode -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-16 Thread Emil Goode
gt; > On Fri, May 16, 2014 at 11:54:05AM +0200, Emil Goode wrote: > > If we fail to allocate struct platform_device pdev we > > dereference it after the goto label err. > > > > I have rearranged the error handling a bit to fix the issue > > and also mak

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-16 Thread Emil Goode
> to be buggy like a swamp picnic. Thank you for the colorful reply, I guess there is no need for me to further defend my choice of labels :) Best regards, Emil Goode -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-16 Thread Emil Goode
Hello Walter, On Fri, May 16, 2014 at 12:40:19PM +0200, walter harms wrote: > > > Am 16.05.2014 11:54, schrieb Emil Goode: > > If we fail to allocate struct platform_device pdev we > > dereference it after the goto label err. > > > > I have rearranged the erro

[PATCH v2] ARM: imx: fix error handling

2014-05-16 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I have rearranged the error handling a bit to fix the issue and also make it more clear. Signed-off-by: Emil Goode --- v2: Changed to return -ENOMEM instead of ret where possible and updated

[PATCH v2] ARM: imx: fix error handling

2014-05-16 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I have rearranged the error handling a bit to fix the issue and also make it more clear. Signed-off-by: Emil Goode emilgo...@gmail.com --- v2: Changed to return -ENOMEM instead of ret where possible

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-16 Thread Emil Goode
Hello Walter, On Fri, May 16, 2014 at 12:40:19PM +0200, walter harms wrote: Am 16.05.2014 11:54, schrieb Emil Goode: If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I have rearranged the error handling a bit to fix the issue and also

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-16 Thread Emil Goode
in the middle of the success handling. Whenever I see new creative error handling like this it drives me nuts because obviously it's going to be buggy like a swamp picnic. Thank you for the colorful reply, I guess there is no need for me to further defend my choice of labels :) Best regards, Emil

Re: [PATCH v2] ARM: imx: fix error handling

2014-05-16 Thread Emil Goode
, 2014 at 11:54:05AM +0200, Emil Goode wrote: If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I have rearranged the error handling a bit to fix the issue and also make it more clear. Signed-off-by: Emil Goode emilgo...@gmail.com --- v2

Re: [PATCH] ARM: imx: clean up error handling

2014-05-15 Thread Emil Goode
Hello Dan, Thanks for the review and sorry for the late reply. On Thu, May 15, 2014 at 11:32:13PM +0300, Dan Carpenter wrote: > On Thu, May 15, 2014 at 09:24:30PM +0200, Emil Goode wrote: > > If we fail to allocate struct platform_device pdev we > > dereference it after the

[PATCH] ARM: imx: clean up error handling

2014-05-15 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I have rearranged the error handling a bit to fix the issue and also make it more clear. Signed-off-by: Emil Goode --- arch/arm/mach-imx/devices/platform-ipu-core.c | 22 +- 1

[PATCH] ARM: imx: clean up error handling

2014-05-15 Thread Emil Goode
If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I have rearranged the error handling a bit to fix the issue and also make it more clear. Signed-off-by: Emil Goode emilgo...@gmail.com --- arch/arm/mach-imx/devices/platform-ipu-core.c | 22

Re: [PATCH] ARM: imx: clean up error handling

2014-05-15 Thread Emil Goode
Hello Dan, Thanks for the review and sorry for the late reply. On Thu, May 15, 2014 at 11:32:13PM +0300, Dan Carpenter wrote: On Thu, May 15, 2014 at 09:24:30PM +0200, Emil Goode wrote: If we fail to allocate struct platform_device pdev we dereference it after the goto label err. I

[PATCH] ax88179_178a: don't send commands to detached device

2014-05-14 Thread Emil Goode
:1.0 (unregistered net_device): Failed to write reg index 0x0001: -19 Signed-off-by: Emil Goode --- drivers/net/usb/ax88179_178a.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c index 054e59c..fe20ca8 100644

[PATCH] ax88179_178a: don't send commands to detached device

2014-05-14 Thread Emil Goode
:1.0 (unregistered net_device): Failed to write reg index 0x0001: -19 Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/net/usb/ax88179_178a.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c index 054e59c

[PATCH] net: cassini: use nested lock annotation

2014-05-08 Thread Emil Goode
In the cas_lock_tx function we acquire multiple locks in a loop and need to use nested lock annotation to prevent lockdep warnings. Reported-by: Meelis Roos Signed-off-by: Emil Goode --- drivers/net/ethernet/sun/cassini.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] net: cassini: use nested lock annotation

2014-05-08 Thread Emil Goode
In the cas_lock_tx function we acquire multiple locks in a loop and need to use nested lock annotation to prevent lockdep warnings. Reported-by: Meelis Roos mr...@linux.ee Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/net/ethernet/sun/cassini.c |2 +- 1 file changed, 1 insertion

[PATCH] staging: lustre: remove unused variables

2014-05-06 Thread Emil Goode
The following commit left some unused variables behind. commit 80db2734acbc78db12798cfb611d6acc7fe389e6 Author: Fredrick John Berchmans Date: Fri May 2 19:50:15 2014 -0700 staging: lustre use kernel socket sockopt apis Signed-off-by: Emil Goode --- drivers/staging/lustre/lustre/libcfs

[PATCH] staging: lustre: remove unused variables

2014-05-06 Thread Emil Goode
The following commit left some unused variables behind. commit 80db2734acbc78db12798cfb611d6acc7fe389e6 Author: Fredrick John Berchmans fredrickprasha...@gmail.com Date: Fri May 2 19:50:15 2014 -0700 staging: lustre use kernel socket sockopt apis Signed-off-by: Emil Goode emilgo

[PATCH 1/2] brcmsmac: fix deadlock on missing firmware

2014-03-09 Thread Emil Goode
in .start() callback") This patch fixes the bug by removing the call to brcms_remove() and moves the brcms_request_fw() call to the top of the .start callback to not initiate anything unless firmware is installed. Signed-off-by: Emil Goode --- drivers/net/wireless/brcm80211/brcm

[PATCH 2/2] brcmsmac: update comment to reflect the code

2014-03-09 Thread Emil Goode
The brcms_attach function is defined as static but the comment is saying that it should not be static or gcc will issue a warning. I believe we can remove the comment as I don't se a problem with this function being defined as static. Signed-off-by: Emil Goode --- drivers/net/wireless/brcm80211

[PATCH 1/2] brcmsmac: fix deadlock on missing firmware

2014-03-09 Thread Emil Goode
) This patch fixes the bug by removing the call to brcms_remove() and moves the brcms_request_fw() call to the top of the .start callback to not initiate anything unless firmware is installed. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | 14

[PATCH 2/2] brcmsmac: update comment to reflect the code

2014-03-09 Thread Emil Goode
The brcms_attach function is defined as static but the comment is saying that it should not be static or gcc will issue a warning. I believe we can remove the comment as I don't se a problem with this function being defined as static. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/net

[PATCH Resend] net: asix: add missing flag to struct driver_info

2014-02-13 Thread Emil Goode
time from within the rx_process function in the usbnet module. Signed-off-by: Emil Goode Reported-by: Bjørn Mork --- drivers/net/usb/asix_devices.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c index 9765a7d

Re: [PATCH v2] usbnet: remove generic hard_header_len check

2014-02-13 Thread Emil Goode
On Thu, Feb 13, 2014 at 04:56:58PM +, David Laight wrote: > From: Of Emil Goode > > This patch removes a generic hard_header_len check from the usbnet > > module that is causing dropped packages under certain circumstances > > for devices that send rx packets that

[PATCH v2] usbnet: remove generic hard_header_len check

2014-02-13 Thread Emil Goode
one list to queue skbs for cleanup. The changes place full responsibility on the rx_fixup callback functions that clone skbs to only pass valid skbs to the usbnet_skb_return function. Signed-off-by: Emil Goode Reported-by: Igor Gnatenko --- v2: Added a comment in the changelog about the remo

Re: [PATCH] usbnet: remove generic hard_header_len check

2014-02-13 Thread Emil Goode
On Thu, Feb 13, 2014 at 10:05:39AM +0100, Bjørn Mork wrote: > Emil Goode writes: > > > This patch removes a generic hard_header_len check from the usbnet > > module that is causing dropped packages under certain circumstances > > for devices that send rx packets t

Re: [PATCH] usbnet: remove generic hard_header_len check

2014-02-13 Thread Emil Goode
On Thu, Feb 13, 2014 at 10:05:39AM +0100, Bjørn Mork wrote: Emil Goode emilgo...@gmail.com writes: This patch removes a generic hard_header_len check from the usbnet module that is causing dropped packages under certain circumstances for devices that send rx packets that cross urb

[PATCH v2] usbnet: remove generic hard_header_len check

2014-02-13 Thread Emil Goode
list to queue skbs for cleanup. The changes place full responsibility on the rx_fixup callback functions that clone skbs to only pass valid skbs to the usbnet_skb_return function. Signed-off-by: Emil Goode emilgo...@gmail.com Reported-by: Igor Gnatenko i.gnatenko.br...@gmail.com --- v2: Added

Re: [PATCH v2] usbnet: remove generic hard_header_len check

2014-02-13 Thread Emil Goode
On Thu, Feb 13, 2014 at 04:56:58PM +, David Laight wrote: From: Of Emil Goode This patch removes a generic hard_header_len check from the usbnet module that is causing dropped packages under certain circumstances for devices that send rx packets that cross urb boundaries. One

[PATCH Resend] net: asix: add missing flag to struct driver_info

2014-02-13 Thread Emil Goode
time from within the rx_process function in the usbnet module. Signed-off-by: Emil Goode emilgo...@gmail.com Reported-by: Bjørn Mork bj...@mork.no --- drivers/net/usb/asix_devices.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/asix_devices.c b/drivers/net

[PATCH] usbnet: remove generic hard_header_len check

2014-02-12 Thread Emil Goode
that clone skbs to only pass valid skbs to the usbnet_skb_return function. Signed-off-by: Emil Goode Reported-by: Igor Gnatenko --- An alternative solution is to add the ETH_HLEN check to usbnet_skb_return() and add short skbs to the skb->done list to be cleaned up in rx_process(). drivers/

[PATCH] usbnet: remove generic hard_header_len check

2014-02-12 Thread Emil Goode
that clone skbs to only pass valid skbs to the usbnet_skb_return function. Signed-off-by: Emil Goode emilgo...@gmail.com Reported-by: Igor Gnatenko i.gnatenko.br...@gmail.com --- An alternative solution is to add the ETH_HLEN check to usbnet_skb_return() and add short skbs to the skb-done list

Re: [PATCH 1/2 v2] usbnet: fix bad header length bug

2014-02-10 Thread Emil Goode
On Mon, Feb 10, 2014 at 02:05:20PM +0100, Bjørn Mork wrote: > Oliver Neukum writes: > > On Mon, 2014-02-10 at 13:00 +0100, Emil Goode wrote: > >> On Mon, Feb 10, 2014 at 07:40:58AM +0100, Oliver Neukum wrote: > > > >> > Well, then how about simply removin

Re: [PATCH 1/2 v2] usbnet: fix bad header length bug

2014-02-10 Thread Emil Goode
On Mon, Feb 10, 2014 at 07:40:58AM +0100, Oliver Neukum wrote: > On Mon, 2014-02-10 at 00:06 +0100, Emil Goode wrote: > > The AX88772B occasionally send rx packets that cross urb boundaries > > and the remaining partial packet is sent with no hardware header. > > When the

Re: [PATCH 1/2 v2] usbnet: fix bad header length bug

2014-02-10 Thread Emil Goode
On Mon, Feb 10, 2014 at 07:40:58AM +0100, Oliver Neukum wrote: On Mon, 2014-02-10 at 00:06 +0100, Emil Goode wrote: The AX88772B occasionally send rx packets that cross urb boundaries and the remaining partial packet is sent with no hardware header. When the buffer with a partial packet

Re: [PATCH 1/2 v2] usbnet: fix bad header length bug

2014-02-10 Thread Emil Goode
On Mon, Feb 10, 2014 at 02:05:20PM +0100, Bjørn Mork wrote: Oliver Neukum oli...@neukum.org writes: On Mon, 2014-02-10 at 13:00 +0100, Emil Goode wrote: On Mon, Feb 10, 2014 at 07:40:58AM +0100, Oliver Neukum wrote: Well, then how about simply removing the check? It seems to have

[PATCH 1/2 v2] usbnet: fix bad header length bug

2014-02-09 Thread Emil Goode
is discarding small skbs, which I believe has caused some confusion. Signed-off-by: Emil Goode Reported-by: Igor Gnatenko --- v2: This patch solves the bug by introducing a new flag instead of setting hard_header_len to 0. I realize that there are already a lot of flags but hard_header_len

[PATCH 2/2] net: asix: add missing flag to struct driver_info

2014-02-09 Thread Emil Goode
time from within the rx_process function in the usbnet module. Signed-off-by: Emil Goode Reported-by: Bjørn Mork --- drivers/net/usb/asix_devices.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb/asix_devices.c index 7ced4ed

[PATCH 2/2] net: asix: add missing flag to struct driver_info

2014-02-09 Thread Emil Goode
time from within the rx_process function in the usbnet module. Signed-off-by: Emil Goode emilgo...@gmail.com Reported-by: Bjørn Mork bj...@mork.no --- drivers/net/usb/asix_devices.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/usb

[PATCH 1/2 v2] usbnet: fix bad header length bug

2014-02-09 Thread Emil Goode
is discarding small skbs, which I believe has caused some confusion. Signed-off-by: Emil Goode emilgo...@gmail.com Reported-by: Igor Gnatenko i.gnatenko.br...@gmail.com --- v2: This patch solves the bug by introducing a new flag instead of setting hard_header_len to 0. I realize

Re: [PATCH] net: asix: fix bad header length bug

2014-02-07 Thread Emil Goode
On Fri, Feb 07, 2014 at 10:38:04AM +0100, Bjørn Mork wrote: > Emil Goode writes: > > On Thu, Feb 06, 2014 at 03:28:13PM +, David Laight wrote: > >> From: Igor Gnatenko > >> > On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: > >> > > The AX88772

Re: [PATCH] net: asix: fix bad header length bug

2014-02-07 Thread Emil Goode
On Fri, Feb 07, 2014 at 10:38:04AM +0100, Bjørn Mork wrote: Emil Goode emilgo...@gmail.com writes: On Thu, Feb 06, 2014 at 03:28:13PM +, David Laight wrote: From: Igor Gnatenko On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: The AX88772B occasionally send rx packets that cross

Re: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
On Thu, Feb 06, 2014 at 03:28:13PM +, David Laight wrote: > From: Igor Gnatenko > > On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: > > > The AX88772B occasionally send rx packets that cross urb boundaries > > > and the remaining partial packet is sent

Re: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
Hello David, Thank's for the review. On Thu, Feb 06, 2014 at 01:37:12PM +, David Laight wrote: > From: Emil Goode > > The AX88772B occasionally send rx packets that cross urb boundaries > > and the remaining partial packet is sent with no header. > > When the buffer

[PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
packages and error messages in dmesg. This can be reproduced by using ping with a packet size between 1965-1976. The bug has been reported here: https://bugzilla.kernel.org/show_bug.cgi?id=29082 Signed-off-by: Emil Goode --- drivers/net/usb/asix_devices.c |1 + 1 file changed, 1 insertion

[PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
packages and error messages in dmesg. This can be reproduced by using ping with a packet size between 1965-1976. The bug has been reported here: https://bugzilla.kernel.org/show_bug.cgi?id=29082 Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/net/usb/asix_devices.c |1 + 1 file

Re: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
Hello David, Thank's for the review. On Thu, Feb 06, 2014 at 01:37:12PM +, David Laight wrote: From: Emil Goode The AX88772B occasionally send rx packets that cross urb boundaries and the remaining partial packet is sent with no header. When the buffer with a partial packet is of less

Re: [PATCH] net: asix: fix bad header length bug

2014-02-06 Thread Emil Goode
On Thu, Feb 06, 2014 at 03:28:13PM +, David Laight wrote: From: Igor Gnatenko On Thu, 2014-02-06 at 13:56 +0100, Emil Goode wrote: The AX88772B occasionally send rx packets that cross urb boundaries and the remaining partial packet is sent with no header. When the buffer

[PATCH] ACPI: thermal: remove const from thermal_zone_device_ops declaration

2014-01-07 Thread Emil Goode
tree parser Signed-off-by: Emil Goode --- drivers/acpi/thermal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 1fd21ad..8349a55 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -861,7 +861,7

[PATCH] ACPI: thermal: remove const from thermal_zone_device_ops declaration

2014-01-07 Thread Emil Goode
thermal: introduce device tree parser Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/acpi/thermal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 1fd21ad..8349a55 100644 --- a/drivers/acpi/thermal.c +++ b

[PATCH] xhci: Add missing unlocks on error paths

2013-06-19 Thread Emil Goode
This patch adds missing unlocks on error paths in the xhci_free_streams and xhci_configure_endpoint functions. Signed-off-by: Emil Goode --- drivers/usb/host/xhci.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 6779c92..2c49f00

[PATCH] xhci: Add missing unlocks on error paths

2013-06-19 Thread Emil Goode
This patch adds missing unlocks on error paths in the xhci_free_streams and xhci_configure_endpoint functions. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/usb/host/xhci.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c

[PATCH] USB: EHCI: Remove double assignment of .start in ehci_msp_hc_driver

2013-06-16 Thread Emil Goode
This patch removes a double assignment of .start in struct hc_driver ehci_msp_hc_driver and also makes the code look more tidy. Signed-off-by: Emil Goode --- drivers/usb/host/ehci-pmcmsp.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/host/ehci-pmcmsp.c b

[PATCH] USB: EHCI: Remove double assignment of .start in ehci_msp_hc_driver

2013-06-16 Thread Emil Goode
This patch removes a double assignment of .start in struct hc_driver ehci_msp_hc_driver and also makes the code look more tidy. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/usb/host/ehci-pmcmsp.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb

[PATCH] ASoC: Fix double assignment of .owner in struct snd_soc_card

2013-06-14 Thread Emil Goode
In struct snd_soc_card zylonite .owner is assigned THIS_MODULE twice, remove one of them. Signed-off-by: Emil Goode --- sound/soc/pxa/zylonite.c |1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/pxa/zylonite.c b/sound/soc/pxa/zylonite.c index ceb6566..db8aadf 100644 --- a/sound

[PATCH] ASoC: Fix double assignment of .owner in struct snd_soc_card

2013-06-14 Thread Emil Goode
In struct snd_soc_card zylonite .owner is assigned THIS_MODULE twice, remove one of them. Signed-off-by: Emil Goode emilgo...@gmail.com --- sound/soc/pxa/zylonite.c |1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/pxa/zylonite.c b/sound/soc/pxa/zylonite.c index ceb6566..db8aadf

Re: [PATCH] staging: tidspbridge: Fix potential NULL pointer dereference

2013-06-12 Thread Emil Goode
Thank you Dan! That's right, It's of course not NULL after freed. Yes the code looks strange here, I'm not sure what was intended. Best regards, Emil On Wed, Jun 12, 2013 at 08:08:17AM -0700, Dan Carpenter wrote: > 1) This patch doesn't do anything. "dcd_key" points to freed memory > but it's

[PATCH] staging: tidspbridge: Fix potential NULL pointer dereference

2013-06-12 Thread Emil Goode
We free dcd_key on line 897 and then dereference it a few lines below. This patch adds a NULL check to make sure we can use dcd_key. Signed-off-by: Emil Goode --- drivers/staging/tidspbridge/rmgr/dbdcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH] staging: tidspbridge: Fix potential NULL pointer dereference

2013-06-12 Thread Emil Goode
We free dcd_key on line 897 and then dereference it a few lines below. This patch adds a NULL check to make sure we can use dcd_key. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/staging/tidspbridge/rmgr/dbdcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] staging: tidspbridge: Fix potential NULL pointer dereference

2013-06-12 Thread Emil Goode
Thank you Dan! That's right, It's of course not NULL after freed. Yes the code looks strange here, I'm not sure what was intended. Best regards, Emil On Wed, Jun 12, 2013 at 08:08:17AM -0700, Dan Carpenter wrote: 1) This patch doesn't do anything. dcd_key points to freed memory but it's not

Re: [PATCH v2] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-10 Thread Emil Goode
nday, June 10, 2013 9:01 AM, Emil Goode wrote: > > > > This patch fixes some issues in the error handling and simplifies > > the code by converting to devm* functions. > > > > If the kzalloc call fails it is unnecessary to use the label no_res > > and pass a NULL

Re: [PATCH v2] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-10 Thread Emil Goode
, 2013 9:01 AM, Emil Goode wrote: This patch fixes some issues in the error handling and simplifies the code by converting to devm* functions. If the kzalloc call fails it is unnecessary to use the label no_res and pass a NULL pointer to kfree. If the devm_kzalloc call fails on line 110

[PATCH v2] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Emil Goode
remove the NULL check after the platform_get_resource call. Signed-off-by: Emil Goode --- This patch is only build tested v2: Fix change log typo and remove error messages for kzalloc calls drivers/mtd/nand/orion_nand.c | 49 + 1 file changed, 15 insertions

Re: [PATCH] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Emil Goode
Hello, Sorry for not responding earlier, I was away from my computer. Thanks for the review, I will send a second version that applies on top of Andy's patch and fix that typo in the change log. Best regards, Emil On Mon, Jun 10, 2013 at 12:15:22AM +0300, Andy Shevchenko wrote: > On Sun, Jun

[PATCH] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Emil Goode
remove the NULL check after the platform_get_resource call. Signed-off-by: Emil Goode --- The patch is only build tested drivers/mtd/nand/orion_nand.c | 39 +++ 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/drivers/mtd/nand/orion_nand.c b

[PATCH] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Emil Goode
remove the NULL check after the platform_get_resource call. Signed-off-by: Emil Goode emilgo...@gmail.com --- The patch is only build tested drivers/mtd/nand/orion_nand.c | 39 +++ 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/drivers/mtd/nand

Re: [PATCH] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Emil Goode
Hello, Sorry for not responding earlier, I was away from my computer. Thanks for the review, I will send a second version that applies on top of Andy's patch and fix that typo in the change log. Best regards, Emil On Mon, Jun 10, 2013 at 12:15:22AM +0300, Andy Shevchenko wrote: On Sun, Jun 9,

[PATCH v2] mtd: orion_nand: Improve error handling in orion_nand_probe

2013-06-09 Thread Emil Goode
remove the NULL check after the platform_get_resource call. Signed-off-by: Emil Goode emilgo...@gmail.com --- This patch is only build tested v2: Fix change log typo and remove error messages for kzalloc calls drivers/mtd/nand/orion_nand.c | 49 + 1 file

[PATCH] uio: uio_pruss: Fix potential NULL pointer dereference

2013-06-06 Thread Emil Goode
In function pruss_probe we free gdev and try to use it on the next line. I have moved the dereference to above the kfree of gdev. Signed-off-by: Emil Goode --- drivers/uio/uio_pruss.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/uio/uio_pruss.c b/drivers/uio

[PATCH] uio: uio_pruss: Fix potential NULL pointer dereference

2013-06-06 Thread Emil Goode
In function pruss_probe we free gdev and try to use it on the next line. I have moved the dereference to above the kfree of gdev. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/uio/uio_pruss.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/uio

[PATCH] OMAPDSS: Remove kfree for memory allocated with devm_kzalloc

2013-06-05 Thread Emil Goode
It's not necessary to free memory allocated with devm_kzalloc in a remove function and using kfree leads to a double free. Signed-off-by: Emil Goode --- drivers/video/omap2/displays/panel-picodlp.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/omap2/displays/panel

Re: [PATCH] net: ipv6: Fix incompatible pointer type warning

2013-06-05 Thread Emil Goode
Hello David, I'm sorry, the patch applies to the linux-next tree. In the future I will be very careful about sending patches that fix problems related to the merging of different trees. Best regards, Emil Goode On Tue, Jun 04, 2013 at 05:14:56PM -0700, David Miller wrote: > From: Emil Go

Re: [PATCH] net: ipv6: Fix incompatible pointer type warning

2013-06-05 Thread Emil Goode
Hello David, I'm sorry, the patch applies to the linux-next tree. In the future I will be very careful about sending patches that fix problems related to the merging of different trees. Best regards, Emil Goode On Tue, Jun 04, 2013 at 05:14:56PM -0700, David Miller wrote: From: Emil Goode

[PATCH] OMAPDSS: Remove kfree for memory allocated with devm_kzalloc

2013-06-05 Thread Emil Goode
It's not necessary to free memory allocated with devm_kzalloc in a remove function and using kfree leads to a double free. Signed-off-by: Emil Goode emilgo...@gmail.com --- drivers/video/omap2/displays/panel-picodlp.c |2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/omap2

[PATCH] net: ipv6: Fix incompatible pointer type warning

2013-06-03 Thread Emil Goode
dd IPv6 support to the ping socket.") Sparse output: net/ipv6/ping.c: In function ‘pingv6_init’: net/ipv6/ping.c:87:27: warning: assignment from incompatible pointer type [enabled by default] Signed-off-by: Emil Goode --- include/net/ping.h |2 +- net/ipv6/ping.c|2 +- 2 files c

[PATCH] net: ipv6: Fix incompatible pointer type warning

2013-06-03 Thread Emil Goode
socket.) Sparse output: net/ipv6/ping.c: In function ‘pingv6_init’: net/ipv6/ping.c:87:27: warning: assignment from incompatible pointer type [enabled by default] Signed-off-by: Emil Goode emilgo...@gmail.com --- include/net/ping.h |2 +- net/ipv6/ping.c|2 +- 2 files

Re: [PATCH] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-02 Thread Emil Goode
Maybe wait and see if %pa gets more usage and if the discussion comes up again. Best regards, Emil On Sat, Jun 01, 2013 at 04:22:18PM -0700, Joe Perches wrote: > On Sun, 2013-06-02 at 01:06 +0200, Emil Goode wrote: > > Maybe there should be another format specifier %da an

Re: [PATCH] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-02 Thread Emil Goode
Maybe wait and see if %pa gets more usage and if the discussion comes up again. Best regards, Emil On Sat, Jun 01, 2013 at 04:22:18PM -0700, Joe Perches wrote: On Sun, 2013-06-02 at 01:06 +0200, Emil Goode wrote: Maybe there should be another format specifier %da and Randy's clarifying

Re: [PATCH] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-01 Thread Emil Goode
Hello Joe and Randy, Maybe there should be another format specifier %da and Randy's clarifying comment can be added there to the documentation? Best regards, Emil Goode On Sat, Jun 01, 2013 at 03:16:00PM -0700, Joe Perches wrote: > On Sat, 2013-06-01 at 14:56 -0700, Randy Dunlap wr

[PATCH v2] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-01 Thread Emil Goode
w lines below. I have moved this code up and pass the variable buf to dev_dbg. Signed-off-by: Emil Goode --- v2: Remove 0x from string as it will print as 0x0x This applies on top of commit 43d5ad743c6f ("usb: musb: host: fix build warning") I also added braces to the else statement for

Re: [PATCH] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-01 Thread Emil Goode
I see, will send a second version. Thank's Emil On Sat, Jun 01, 2013 at 11:29:10AM -0700, Joe Perches wrote: > On Sat, 2013-06-01 at 20:02 +0200, Emil Goode wrote: > > This patch makes use of the new format specifier %pa that was introduced > > by the f

[PATCH] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-01 Thread Emil Goode
w lines below. I have moved this code up and pass the variable buf to dev_dbg. Signed-off-by: Emil Goode --- I also added braces to the else statement for consistency. (Didn't want to send a separate patch for that) drivers/usb/musb/musb_host.c | 12 +--- 1 file changed, 5 insertions

Re: [PATCH] usb: musb: Fix format specifier warning

2013-06-01 Thread Emil Goode
Hello, Thank's for your pointers. I will send a patch that applies on top of Felipe's patch. Best regards, Emil Goode On Sat, Jun 01, 2013 at 04:15:03PM +0300, Andy Shevchenko wrote: > On Sat, Jun 1, 2013 at 1:39 AM, Randy Dunlap wrote: > > On 05/31/13 15:34, Andy Shevche

Re: [PATCH] usb: musb: Fix format specifier warning

2013-06-01 Thread Emil Goode
Hello, Thank's for your pointers. I will send a patch that applies on top of Felipe's patch. Best regards, Emil Goode On Sat, Jun 01, 2013 at 04:15:03PM +0300, Andy Shevchenko wrote: On Sat, Jun 1, 2013 at 1:39 AM, Randy Dunlap rdun...@infradead.org wrote: On 05/31/13 15:34, Andy Shevchenko

[PATCH] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-01 Thread Emil Goode
have moved this code up and pass the variable buf to dev_dbg. Signed-off-by: Emil Goode emilgo...@gmail.com --- I also added braces to the else statement for consistency. (Didn't want to send a separate patch for that) drivers/usb/musb/musb_host.c | 12 +--- 1 file changed, 5 insertions

Re: [PATCH] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-01 Thread Emil Goode
I see, will send a second version. Thank's Emil On Sat, Jun 01, 2013 at 11:29:10AM -0700, Joe Perches wrote: On Sat, 2013-06-01 at 20:02 +0200, Emil Goode wrote: This patch makes use of the new format specifier %pa that was introduced by the following commit

[PATCH v2] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-01 Thread Emil Goode
have moved this code up and pass the variable buf to dev_dbg. Signed-off-by: Emil Goode emilgo...@gmail.com --- v2: Remove 0x from string as it will print as 0x0x This applies on top of commit 43d5ad743c6f (usb: musb: host: fix build warning) I also added braces to the else statement for consistency

Re: [PATCH] usb: musb: use the new %pa format specifier for dma_addr_t

2013-06-01 Thread Emil Goode
Hello Joe and Randy, Maybe there should be another format specifier %da and Randy's clarifying comment can be added there to the documentation? Best regards, Emil Goode On Sat, Jun 01, 2013 at 03:16:00PM -0700, Joe Perches wrote: On Sat, 2013-06-01 at 14:56 -0700, Randy Dunlap wrote: It's

<    1   2   3   >