Re: [PATCH net-next] rds: debug: fix null check on static array

2017-12-06 Thread David Miller
From: Prashant Bhole Date: Wed, 6 Dec 2017 10:47:04 +0900 > t_name cannot be NULL since it is an array field of a struct. > Replacing null check on static array with string length check using > strnlen() > > Signed-off-by: Prashant Bhole Applied, thank you.

Re: [PATCH net-next] rds: debug: fix null check on static array

2017-12-06 Thread Santosh Shilimkar
On 12/6/2017 3:32 AM, Sowmini Varadhan wrote: On (12/06/17 10:47), Prashant Bhole wrote: t_name cannot be NULL since it is an array field of a struct. Replacing null check on static array with string length check using strnlen() t_name is always initialized for all rds transports today, and

Re: [PATCH net-next] rds: debug: fix null check on static array

2017-12-06 Thread Sowmini Varadhan
On (12/06/17 10:47), Prashant Bhole wrote: > > t_name cannot be NULL since it is an array field of a struct. > Replacing null check on static array with string length check using > strnlen() t_name is always initialized for all rds transports today, and would be all zeros unless someone stomped

[PATCH net-next] rds: debug: fix null check on static array

2017-12-05 Thread Prashant Bhole
t_name cannot be NULL since it is an array field of a struct. Replacing null check on static array with string length check using strnlen() Signed-off-by: Prashant Bhole --- net/rds/connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rds/connection.c b/net/rd