[PATCH] staging/lustre/llite: Close atomic_open race with several openers

2016-07-14 Thread Oleg Drokin
Right now, if it's an open of a negative dentry, a race is possible with several openers who all try to instantiate/rehash the same dentry and would hit a BUG_ON in d_add. But in fact if we got a negative dentry in atomic_open, that means we just revalidated it so no point in talking to MDS at all,

Re: [PATCH] Enclose multiple statements macros in a do while loop

2016-07-14 Thread Greg KH
On Thu, Jul 14, 2016 at 05:01:51PM +0800, Sunbing wrote: > The formatting of macros definetion in ks7010/michael_mic.c is not > consistent with the general kernel coding style. > > Fix it by the result of scripts/checkpatch.pl. > > No functional changes. > > Signed-off-by: Sunbing We need a "r

[PATCH] staging: slicoss: handle allocation failure in slic_init_adapter

2016-07-14 Thread Lino Sanfilippo
The memory allocation in slic_init_adapter() can fail. Return an error in this case and unwind properly. Also make sure that the allocated memory is properly freed in case of an error in the calling probe() function. By doing this also replace the alloc() followed by memset to zero the memory with

Re: [PATCH] staging: octeon: Use IS_ENABLED() instead of checking for built-in or module

2016-07-14 Thread David Daney
On 07/14/2016 10:06 AM, Javier Martinez Canillas wrote: The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Signed-off-by: Javier Martinez Canillas Acked-by: David Daney --- drivers/staging/o

[PATCH] staging: octeon: Use IS_ENABLED() instead of checking for built-in or module

2016-07-14 Thread Javier Martinez Canillas
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Signed-off-by: Javier Martinez Canillas --- drivers/staging/octeon/ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

Re: [PATCH 1/4] sm750fb/sm750_hw.c: corrected alignment

2016-07-14 Thread Stefan Wolz
Hello, i want to remind you about the patches I sent 3 weeks ago (June 23rd). I did not receive any response until now, so I'm wondering if the mails got lost or forgotten. If you didn't receive any or if something was wrong with them, please tell me. Awaiting your response, Stefan Wolz __

[PATCH] staging: rtl8723au: hal: check BT_Active and BT_State with correct bit pattern

2016-07-14 Thread Colin King
From: Colin Ian King BT_Active and BT_State are being masked with 0x00ff so it the subsequent comparisons with 0x are therefore a buggy check. Instead, check them against 0x00ff. Unfortunately I couldn't find a datasheet or hardware to see if 0x is an expected invalid bi

[PATCH] Enclose multiple statements macros in a do while loop

2016-07-14 Thread Sunbing
The formatting of macros definetion in ks7010/michael_mic.c is not consistent with the general kernel coding style. Fix it by the result of scripts/checkpatch.pl. No functional changes. Signed-off-by: Sunbing --- drivers/staging/ks7010/michael_mic.c | 20 +--- 1 file changed, 1