[PATCH] Net: ethernet: mediatek - Fix possible NULL derefrence.

2017-01-27 Thread Shailendra Verma
of_match_device could return NULL, and so can cause a NULL pointer dereference later. Signed-off-by: Shailendra Verma --- drivers/net/ethernet/mediatek/mtk_eth_soc.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet

[PATCH] atm:he - Do not initialise statics to 0.

2015-06-04 Thread Shailendra Verma
According to false is always '0' and Static variables are initialised to 0 by GCC. Signed-off-by: Shailendra Verma --- drivers/atm/he.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 0237271..a8da3a5 100644 --- a/driver

[PATCH] atm:he - Change 0 to false for bool type variable initialization.

2015-05-26 Thread Shailendra Verma
The variable sdh is bool type so initializing it with false value instead of 0. Signed-off-by: Shailendra Verma --- drivers/atm/he.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 93dca2e..eb5bebc 100644 --- a/drivers/atm

[PATCH] ray_cs: Change 1 to true for bool type variable.

2015-05-26 Thread Shailendra Verma
The variable translate is bool type.So assigning true instead of 1. Signed-off-by: Shailendra Verma --- drivers/net/wireless/ray_cs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 477f863..0881ba8

[PATCH] atm:he - Do not initialise statics to 0.

2015-05-25 Thread Shailendra Verma
Static variables are initialised to 0 by GCC. Fixes the following checkpatch error: ERROR: do not initialise statics to 0 or NULL FILE: drivers/atm/he.c:120: static bool sdh = 0; Signed-off-by: Shailendra Verma --- drivers/atm/he.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] atm:he - Change 1 to true for bool type variable.

2015-05-25 Thread Shailendra Verma
The variable irq_coalesce is bool type. So assign the value true instead of 1. Signed-off-by: Shailendra Verma --- drivers/atm/he.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 93dca2e..0237271 100644 --- a/drivers/atm/he.c

[PATCH] net:wireless:rndis_wlan - Use bool function return value

2015-05-25 Thread Shailendra Verma
The function rndis_bss_info_update() has bool return type. So use bool value flase instead of NULL to return. Signed-off-by: Shailendra Verma --- drivers/net/wireless/rndis_wlan.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/rndis_wlan.c b

[PATCH] net:wireless - Change 1 to true for bool type variable.

2015-05-25 Thread Shailendra Verma
The variable translate is bool type.So assigning true instead of 1. Signed-off-by: Shailendra Verma --- drivers/net/wireless/ray_cs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 477f863..0881ba8

[PATCH] net:xen-netback - Change 1 to true for bool type variable.

2015-05-25 Thread Shailendra Verma
The variable separate_tx_rx_irq is bool type so assigning true instead of 1. Signed-off-by: Shailendra Verma --- drivers/net/xen-netback/netback.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index