[PATCH 02/11] net: llc: fix a setting of error value to size_t

2015-10-23 Thread LABBE Corentin
The variable copied is a size_t, so setting a negative value to it is invalid. The patch add an "err" variable for getting the error code. Signed-off-by: LABBE Corentin --- net/llc/af_llc.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git

[PATCH 02/11] net: llc: fix a setting of error value to size_t

2015-10-23 Thread LABBE Corentin
The variable copied is a size_t, so setting a negative value to it is invalid. The patch add an "err" variable for getting the error code. Signed-off-by: LABBE Corentin --- net/llc/af_llc.c | 20 1 file changed, 12 insertions(+), 8 deletions(-)