[PATCH v2] Staging: rtl8192e prohibit deferencing of NULL pointer

2014-06-18 Thread Andreas Platschek
v2: removed braces from if statement If ieee == NULL we jump to rx_dropped. Therefore we have to check again, if ieee == NULL before we use it. Signed-off-by: Andreas Platschek --- drivers/staging/rtl8192e/rtllib_rx.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[PATCH v2] Staging: rtl8192e prohibit deferencing of NULL pointer

2014-06-18 Thread Andreas Platschek
v2: removed braces from if statement If ieee == NULL we jump to rx_dropped. Therefore we have to check again, if ieee == NULL before we use it. Signed-off-by: Andreas Platschek --- drivers/staging/rtl8192e/rtllib_rx.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

[PATCH] Staging: rtl8192e prohibit deferencing of NULL pointer

2014-06-18 Thread Andreas Platschek
If ieee == NULL we jump to rx_dropped. Therefore we have to check again, if ieee != NULL before we use it. Signed-off-by: Andreas Platschek --- drivers/staging/rtl8192e/rtllib_rx.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b

[PATCH] staging: lustre: check length of char array

2014-05-19 Thread Andreas Platschek
l.c:388:39:right side has type int Signed-off-by: Andreas Platschek --- drivers/staging/lustre/lustre/obdclass/llog_ioctl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/obdclass/llog_ioctl.c b/drivers/staging/lustre/lustre/obdcl