Re: [PATCH 1/2] staging: slicoss: fix coding style spacing issues

2016-05-30 Thread Dan Carpenter
On Sun, May 29, 2016 at 08:31:06AM -0500, Jaime Arrocha wrote: > struct slic_cmdqueue { > struct slic_hostcmd *head; > struct slic_hostcmd *tail; > - int count; > - spinlock_t lock; > + int count; > + spinlock_t lock; > }; The original code

[PATCH 2/2] Drivers: hv: don't leak memory in vmbus_establish_gpadl()

2016-05-30 Thread Vitaly Kuznetsov
In some cases create_gpadl_header() allocates submessages but we never free them. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index 2b109e8..a68830c 100644 --- a/driv

[PATCH 1/2] Drivers: hv: get rid of redundant messagecount in create_gpadl_header()

2016-05-30 Thread Vitaly Kuznetsov
We use messagecount only once in vmbus_establish_gpadl() to check if it is safe to iterate through the submsglist. We can just initialize the list header in all cases in create_gpadl_header() instead. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/channel.c | 38 -

[PATCH 0/2] Drivers: hv: fix memory leak while establishing GPADL

2016-05-30 Thread Vitaly Kuznetsov
kmemleak helped me to identify a memory leak on GPADL establishment. Do some minor refactoring and fix the issue. Vitaly Kuznetsov (2): Drivers: hv: get rid of redundant messagecount in create_gpadl_header() Drivers: hv: don't leak memory in vmbus_establish_gpadl() drivers/hv/channel.c |

Re: [PATCH] staging: iio: fix ad7606_spi regression

2016-05-30 Thread Geert Uytterhoeven
On Mon, May 30, 2016 at 3:50 PM, Arnd Bergmann wrote: > As pointed out by Geert Uytterhoeven, the patch was incorrect > and breaks the driver, which was fortunately pointed out by > this gcc warning: > > drivers/staging/iio/adc/ad7606_spi.c: In function ‘ad7606_spi_read_block’: > drivers/staging/i

[PATCH] staging: iio: fix ad7606_spi regression

2016-05-30 Thread Arnd Bergmann
As pointed out by Geert Uytterhoeven, the patch was incorrect and breaks the driver, which was fortunately pointed out by this gcc warning: drivers/staging/iio/adc/ad7606_spi.c: In function ‘ad7606_spi_read_block’: drivers/staging/iio/adc/ad7606_spi.c:34: warning: ‘data’ is used uninitialized in

Re: [PATCH v2 1/4] staging : comedi : fix type issues in s626.c

2016-05-30 Thread Luis de Bethencourt
On 28/05/16 06:26, Ravishankar Karkala Mallikarjunayya wrote: > This is a patch to the s626.c file that fixes up a type issues like > i.e Prefer kernel type 'u8' over 'uint8_t' > Prefer kernel type 'u16' over 'uint16_t' > Prefer kernel type 'u32' over 'uint32_t' > Prefer kernel type 's1

Re: [PATCH v2 2/4] Staging: comedi: Fix WARNING issue in s626.c

2016-05-30 Thread Luis de Bethencourt
On 28/05/16 06:26, Ravishankar Karkala Mallikarjunayya wrote: > This is a patch to the s626.c file that fixes up a Block comments > issues found by the checkpatch.pl tool. > > i.e. Block comments use a trailing */ on a separate line > > Signed-off-by: Ravishankar Karkala Mallikarjunayya We can

Re: [PATCH v2 3/4] Staging: comedi:Fix unsigned int to bare use of unsigned issue in s626.c

2016-05-30 Thread Luis de Bethencourt
On 28/05/16 06:26, Ravishankar Karkala Mallikarjunayya wrote: > This is a patch to the s626.c file that fixes up a > WARNING: Prefer 'unsigned int' to bare use of 'unsigned' > found by the checkpatch.pl tool > > Signed-off-by: Ravishankar Karkala Mallikarjunayya The patch looks good :) adding th

[PATCH 0/2] PCI: hv: fix a couple of issues in hv_pci_onchannelcallback()

2016-05-30 Thread Vitaly Kuznetsov
kmemleak helped me to identify a memory leak in hv_pci_onchannelcallback() and while fixing it I stumbled upon an unrelated issue(s) there. Vitaly Kuznetsov (2): PCI: hv: don't leak buffer in hv_pci_onchannelcallback() PCI: hv: handle all pending messages in hv_pci_onchannelcallback() driver

[PATCH 1/2] PCI: hv: don't leak buffer in hv_pci_onchannelcallback()

2016-05-30 Thread Vitaly Kuznetsov
We don't free buffer on several code paths in hv_pci_onchannelcallback(), put kfree() to the end of the function to fix the issue. Direct { kfree(); return; } can now be replaced with a simple 'break'; Signed-off-by: Vitaly Kuznetsov --- drivers/pci/host/pci-hyperv.c | 11 +-- 1 file cha

[PATCH 2/2] PCI: hv: handle all pending messages in hv_pci_onchannelcallback()

2016-05-30 Thread Vitaly Kuznetsov
When we have an interrupt from host we have a bit set in event page indicating there are messages for the particular channel. We need to read them all as we won't get signaled for what was on the queue before we cleared the bit in vmbus_on_event(). This applies to all Hyper-V drivers and the pass-t

Re: [PATCH v2 4/4] Staging: comedi: fix line over 80 characters issue in s626.c

2016-05-30 Thread Luis de Bethencourt
On 28/05/16 06:26, Ravishankar Karkala Mallikarjunayya wrote: > This is a patch to the s626.c file that fixes up a line over 80 > characters issues found by the checkpatch.pl tool. > > Signed-off-by: Ravishankar Karkala Mallikarjunayya Looks good :) This is the only instance of the line over 8

Re: [PATCH 2/2] staging: slicoss: fix camel case check

2016-05-30 Thread Luis de Bethencourt
On 29/05/16 14:31, Jaime Arrocha wrote: > From: Jaime Arrocha > > Fixed several checks about camel case use provided by checkpatch.pl. > CHECK: Avoid CamelCase > Changes verified to work by compiling module. > > Signed-off-by: Jaime Arrocha Purpose of the patch is good but it fails to apply in