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
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.
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
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
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