[uml-devel] [PATCH 2/2] um: vector: Fix an error handling path in 'vector_parse()'

2018-01-27 Thread Christophe JAILLET
if the first check fails. Fixes: ad1f62ab2bd4 ("High Performance UML Vector Network Driver") Signed-off-by: Christophe JAILLET <christophe.jail...@wanadoo.fr> --- Not sure if correct, but it looks spurious to set 'error_out' and return 0 (i.e. success) --- arch/um/drivers/vector_kern

[uml-devel] [PATCH 1/2] um: vector: Fix a memory allocation check

2018-01-27 Thread Christophe JAILLET
Checking the result of the previous 'kstrdup()' call is expected here, so we should test 'params' and not 'str' (which is known to be non-NULL at this point) Fixes: ad1f62ab2bd4 ("High Performance UML Vector Network Driver") Signed-off-by: Christophe JAILLET <christophe.jail.

[uml-devel] [PATCH] um: umid: Use strdup to simplify code

2015-07-08 Thread Christophe JAILLET
Replace a malloc+strcpy by an equivalent strdup in order to improve readability. Turn a some spaces into a tab to be consistent with the rest of the code. Signed-off-by: Christophe JAILLET christophe.jail...@wanadoo.fr --- arch/um/os-Linux/umid.c | 7 +++ 1 file changed, 3 insertions(+), 4

[uml-devel] [PATCH 1/2] um: umid: Use tab instead of spaces

2015-07-08 Thread Christophe JAILLET
Turn some spaces into a tab to be consistent with the rest of the code. Signed-off-by: Christophe JAILLET christophe.jail...@wanadoo.fr --- arch/um/os-Linux/umid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/os-Linux/umid.c b/arch/um/os-Linux/umid.c index c1dc892

[uml-devel] [PATCH 2/2] um: umid: Use strdup to simplify code

2015-07-08 Thread Christophe JAILLET
Replace a malloc+strcpy by an equivalent strdup in order to improve readability. Signed-off-by: Christophe JAILLET christophe.jail...@wanadoo.fr --- arch/um/os-Linux/umid.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/um/os-Linux/umid.c b/arch/um/os-Linux/umid.c