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