[PATCH 2/2] staging: Add NULL checks against return values of skb_clone() and dev_alloc_skb()

2013-10-27 Thread RUC_SoftSec
When there is no enough memory, functions skb_clone() and dev_alloc_skb() may return NULL pointers, they should be checked against NULL before used. This bug is found by a static analysis tool developed by RUC_SoftSec, supported by China.X.Orion. Signed-off-by: RUC_SoftSec --- drivers/staging

[PATCH 1/1] staging: Add NULL checks to return value of skb_clone() and dev_alloc_skb()

2013-10-27 Thread RUC_SoftSec
Function skb_clone() and dev_alloc_skb() may return NULL pointers if there is no enough memroy, their return values should be checked against NULL before used. This bug is found by a static tool developed by RUC_SoftSec, supported by China.X.Orion. Signed-off-by: RUC_SoftSec --- drivers

[PATCH 1/1] staging: check return value of dev_alloc_skb() against NULL

2013-10-27 Thread RUC_SoftSec
Function dev_alloc_skb() may return a NULL pointer if there is no enough memory, it should be checked against NULL before used. This bug is found by a static analysis tool developed by RUC_SoftSec, supported by China.X.Orion. Signed-off-by: RUC_SoftSec --- drivers/staging/rtl8192u

[PATCH 1/1] staging: Add a NULL check to return value of dev_alloc_skb()

2013-10-27 Thread RUC_SoftSec
Function dev_alloc_skb() may return a NULL pointer when there is no enough memory, its return value should be checked before used. This bug is found by a static analysis tool developed by RUC_SoftSec, supported by China.X.Orion. Signed-off-by: RUC_SoftSec --- .../staging/rtl8192e/rtl8192e