[PATCH] staging: android: vsoc: fix copy_from_user overrun

2019-04-14 Thread Vincent Stehlé
The `np->permission' structure is smaller than the `np' structure but sizeof(*np) worth of data is copied in there. Fix the size passed to copy_from_user() to avoid overrun. Fixes: 3d2ec9dcd5539d42 ("staging: Android: Add 'vsoc' driver for cuttlefish.") Signed

[PATCH next] rtlwifi: rtl8192de: fix missing curly braces

2017-01-10 Thread Vincent Stehlé
ownload_fw() warn: curly braces intended? ...and the following coccinelle warning: drivers/net/wireless/realtek/rtlwifi/rtl8192de/fw.c:325:2-38: code aligned with following code on line 326 Fixes: c93ac39da006457f ("rtlwifi: Remove some redundant code") Signed-off-by: Vincent Stehlé

[PATCH next] staging: wilc1000: avoid NULL pointer dereference on error

2015-10-06 Thread Vincent Stehlé
were not started or created yet in that case anyway. This fixes the following coccinelle error: drivers/staging/wilc1000/host_interface.c:6100:17-33: ERROR: pstrWFIDrv is NULL but dereferenced. Signed-off-by: Vincent Stehlé Cc: Johnny Kim Cc: Rachel Kim Cc: Dean Lee Cc: Chris Park Cc

[PATCH linux-next] staging: emxx_udc: replace strict_strtol call

2014-06-28 Thread Vincent Stehlé
udc.c:3287:3: error: implicit declaration of function ‘strict_strtol’ [-Werror=implicit-function-declaration] Signed-off-by: Vincent Stehlé Cc: Greg Kroah-Hartman Cc: Magnus Damm --- Hi, This compilation error can be seen with e.g. linux next-20140627 and arm allmodconfig. Best regards, V.

[PATCH linux-next] staging: r8192ee: Adapt flush function prototype

2014-06-07 Thread Vincent Stehlé
ialization from incompatible pointer type [enabled by default] .flush = rtl_op_flush, ^ drivers/staging/rtl8192ee/core.c:1599:2: warning: (near initialization for ‘rtl92e_ops.flush’) [enabled by default] Signed-off-by: Vincent Stehlé Cc: Greg Kroah-Hartman Cc: Larry Finger --- Hi,

[PATCH linux-next] imx-drm: imx-tve: remove unused variable

2014-05-25 Thread Vincent Stehlé
d variable ‘ret’ [-Wunused-variable] Signed-off-by: Vincent Stehlé Cc: Andrzej Hajda Cc: Daniel Vetter Cc: Greg Kroah-Hartman --- Hi, This can be seen with e.g. linux next-20140523 and arm allmodconfig. Best regards, V. drivers/staging/imx-drm/imx-tve.c | 1 - 1 file changed, 1 deletion(-)

[PATCH linux-next 1/2] staging: dgap: fix missing header inclusion

2013-12-31 Thread Vincent Stehlé
Include slab.h to fix the following compilation error: drivers/staging/dgap/dgap_fep5.c: In function ‘dgap_do_config_load’: drivers/staging/dgap/dgap_fep5.c:78:2: error: implicit declaration of function ‘kzalloc’ [-Werror=implicit-function-declaration] Signed-off-by: Vincent Stehlé Cc

[PATCH linux-next 2/2] staging: dgap: fix checkpatch warnings

2013-12-31 Thread Vincent Stehlé
Remove a few spaces at beginning and end of line. Remove single statement braces {}. Remove two FSF boilerplate paragraphs. Signed-off-by: Vincent Stehlé Cc: Lidza Louina Cc: Greg Kroah-Hartman Cc: Scott H Kilau Cc: eng.li...@digi.com --- Hi, This can be seen with e.g. linux next-20131224